пт, 4 дек. 2020 г. в 15:25, Eli Zaretskii : > > From: Evgeny Zajcev > > Date: Fri, 4 Dec 2020 14:57:23 +0300 > > > > I've got nasty unexpected thing. Consider scenario in "emacs -q": > > 1) Open file that does not fit into Emacs window (C-x C-f /etc/services > RET) > > 2) Goto bottom with M-> > > 3) Show maximum content with C- - C-l (-1 arg to C-l) > > 4) At this moment point is at the `eobp`, nothing to be shown below the > point, now press C-v > > > > I was expecting C-v to signal "End of buffer" error, however got ugly > scrolling resulting in showing a single > > line at the top. > > > > Second C-v triggers "End of buffer" > > > > If I recenter with -2 argument to C-l, then C-v triggers "End of buffer" > as expected. > > > > Is there something in Emacs I can set to stop behaving like this? > > Set next-screen-context-lines to 1 or less? > > Thanks! setting it to 0 does what I want (FWIW, I don't see this behavior as unexpected or "nasty".) > It was unexpected default behaviour, because why scrolling if there is nothing to show more? -- lg