Questions tagged [window-point]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
76 views

Window Point Reset After Update

I have a buffer which is updated periodically using run-at-time, and in order to maintain the point in each window I use set-window-point, but I find that in sometimes when something is interrupted ...
C4ffeine Add1ct's user avatar
1 vote
1 answer
53 views

Is there a library to make `'evil-goto-mark` restore the screen position of the marker?

I use emacs and evil. If I set a marker using 'evil-set-marker, scroll elsewhere in the file, and then execute 'evil-goto-mark or 'evil-goto-mark-line, the window will scroll back until the position I’...
emdash's user avatar
  • 86
0 votes
1 answer
72 views

Inconsistent point in an elisp program and in a visible non-focused process buffer

I am able to collect output data from a process, but I don't understand the coordination of point and process-mark. In particular, the visible cursor in a non-selected window visiting the buffer does ...
Reb.Cabin's user avatar
  • 711
1 vote
1 answer
89 views

How can I get the value of left top and right bottom point value of current window?

How can I get the value of left top and right bottom point value of current working window(the window currently focusing on)?
Saddle Point's user avatar
0 votes
2 answers
72 views

windmove: write a function to move two times (e.g. down and right)?

I'm using the windmove package to move my cursor between windows. In addition, I want to define a function to move twice, e.g. down first and right second. The following function only do the "down" ...
user3915365's user avatar
9 votes
3 answers
2k views

How to persistently move the cursor in a buffer other than the current one?

NB: The post How to move point to the end of another buffer, using `with-current-buffer` and `goto-char`? presumably asks the same question as this one, but the answers given to it do not readily ...
kjo's user avatar
  • 3,207
3 votes
2 answers
1k views

How to move point to the end of another buffer, using `with-current-buffer` and `goto-char`?

I'm trying to implement «effective append» for log buffer, e.g. if a point is at point-max position then insert text and move point to new point-max, otherwise append text and preserve point position. ...
Geradlus_RU's user avatar
3 votes
2 answers
542 views

What is the purpose of this code in `append-to-buffer`?

The append-to-buffer function's definition ends with: (dolist (window windows) (when (= (window-point window) point) (set-window-point window (point)))))))) What is the purpose of this? ...
zugzwang's user avatar
  • 319