Questions tagged [excursion]
2 questions
22
votes
1 answer
Get content of a buffer
So buffer-string gets the content of the current buffer. But it doesn't allow specifying other buffers.
How can I get around that? Do I need something like save-window-excursion to make it work?

Maciej Goszczycki
- 1,777
- 13
- 18
6
votes
1 answer
How to preserve the visual height of the cursor after an operation?
Q: How do I find the visual line number of point (so that I can restore it after an operation)?
By “visual line number”, I'm referring to the number N of lines
between the top of the window (or the screen) and the cursor, not
the top of the…

Malabarba
- 22,878
- 6
- 78
- 163