Questions tagged [window-point]
8 questions
9
votes
3 answers
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 apply to my case here. E.g. those answers involve…

kjo
- 3,145
- 14
- 42
3
votes
2 answers
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.
I though this will be very trivial…

Geradlus_RU
- 625
- 7
- 17
3
votes
2 answers
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? Experimenting, I commented out this code and re-ran,…

zugzwang
- 319
- 1
- 14
1
vote
2 answers
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 and an update happens in between, the window point…

C4ffeine Add1ct
- 460
- 3
- 8
1
vote
1 answer
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’ve jumped to is visible, but will not return it…

emdash
- 86
- 6
1
vote
1 answer
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
- 481
- 7
- 23
0
votes
1 answer
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 not advance, even though point
is reported at…

Reb.Cabin
- 711
- 6
- 19
0
votes
2 answers
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" move but not the "right" move. Any…

user3915365
- 11
- 2