Questions tagged [scroll]

7 questions
2
votes
1 answer

Stop scrolling when the last line appears

As the title states, I expect some behavior like the GIF shown. By contrast, here is what my Emacs does now. It keeps scrolling even when the last line has appeared, so you can see the empty area was moved to screen. You can reproduce this…
shynur
  • 5,253
  • 1
  • 4
  • 25
0
votes
1 answer

How can I scroll efficiently (quickly) up/down by one line without disturbing the cursor?

Having (global-set-key "\M-n" "\C-u1\C-v") (global-set-key "\M-p" "\C-u1\M-v") does exactly what I want, but it's exceedingly slow for my machine and for my key-repeat-rate setting. It's as if it's doing way too much by hooking on and invoking…
Sam7919
  • 369
  • 1
  • 12
0
votes
3 answers

How to detect the number of lines scrolled from scroll up/down?

When running scroll-up or scroll-down, it's possible emacs isn't scrolling the number of lines requested (if you hit the start/end of the buffer for eg). Is there a convenient way to know how many lines were actually scrolled?
ideasman42
  • 8,786
  • 1
  • 32
  • 114