* Scrolling up at the end of buffer
@ 2020-12-04 11:57 Evgeny Zajcev
2020-12-04 12:25 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Evgeny Zajcev @ 2020-12-04 11:57 UTC (permalink / raw
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]
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?
Thanks
--
lg
[-- Attachment #2: Type: text/html, Size: 1007 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scrolling up at the end of buffer
2020-12-04 11:57 Scrolling up at the end of buffer Evgeny Zajcev
@ 2020-12-04 12:25 ` Eli Zaretskii
2020-12-04 12:40 ` Evgeny Zajcev
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2020-12-04 12:25 UTC (permalink / raw
To: Evgeny Zajcev; +Cc: emacs-devel
> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> 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?
(FWIW, I don't see this behavior as unexpected or "nasty".)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scrolling up at the end of buffer
2020-12-04 12:25 ` Eli Zaretskii
@ 2020-12-04 12:40 ` Evgeny Zajcev
2020-12-04 12:54 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Evgeny Zajcev @ 2020-12-04 12:40 UTC (permalink / raw
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]
пт, 4 дек. 2020 г. в 15:25, Eli Zaretskii <eliz@gnu.org>:
> > From: Evgeny Zajcev <lg.zevlg@gmail.com>
> > 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
[-- Attachment #2: Type: text/html, Size: 1924 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scrolling up at the end of buffer
2020-12-04 12:40 ` Evgeny Zajcev
@ 2020-12-04 12:54 ` Eli Zaretskii
2020-12-04 13:52 ` Evgeny Zajcev
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2020-12-04 12:54 UTC (permalink / raw
To: Evgeny Zajcev; +Cc: emacs-devel
> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> Date: Fri, 4 Dec 2020 15:40:31 +0300
> Cc: emacs-devel <emacs-devel@gnu.org>
>
> (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?
But there is: the context lines.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scrolling up at the end of buffer
2020-12-04 12:54 ` Eli Zaretskii
@ 2020-12-04 13:52 ` Evgeny Zajcev
2020-12-04 15:43 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Evgeny Zajcev @ 2020-12-04 13:52 UTC (permalink / raw
To: Eli Zaretskii; +Cc: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1257 bytes --]
пт, 4 дек. 2020 г. в 15:54, Eli Zaretskii <eliz@gnu.org>:
> > From: Evgeny Zajcev <lg.zevlg@gmail.com>
> > Date: Fri, 4 Dec 2020 15:40:31 +0300
> > Cc: emacs-devel <emacs-devel@gnu.org>
> >
> > (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?
>
> But there is: the context lines.
>
But they are invisible :)
As I understand, context lines is option to skip less lines then window
height when scrolling. However, it heavily affects how scrolling is done.
For example in non-0 context lines setup, when you scroll down (with M-v)
from the very bottom of the buffer and only one line is display in the
buffer at moment, scrolling won't even move a point! just show more
content. At least now, I see this context lines concept very complex,
undocumented, triggering unexpected results.
For me, scrolling is just a way to *move* your point fast in a predictable
way, showing maximum content to the user, that is not what we get with
default Emacs settings right now.
I would like to have scroll behaviour I got with setting context lines to
0, but yet skip less lines then window height :))
--
lg
[-- Attachment #2: Type: text/html, Size: 1831 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scrolling up at the end of buffer
2020-12-04 13:52 ` Evgeny Zajcev
@ 2020-12-04 15:43 ` Eli Zaretskii
2020-12-04 16:06 ` Christopher Dimech
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2020-12-04 15:43 UTC (permalink / raw
To: Evgeny Zajcev; +Cc: emacs-devel
> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> Date: Fri, 4 Dec 2020 16:52:18 +0300
> Cc: emacs-devel <emacs-devel@gnu.org>
>
> For me, scrolling is just a way to *move* your point fast in a predictable way, showing maximum content to
> the user, that is not what we get with default Emacs settings right now.
That's because Emacs always behaved differently in this regard. It is
very natural to me, probably because I'm accustomed to it (and miss it
in other applications). To each his/her own.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Scrolling up at the end of buffer
2020-12-04 15:43 ` Eli Zaretskii
@ 2020-12-04 16:06 ` Christopher Dimech
0 siblings, 0 replies; 7+ messages in thread
From: Christopher Dimech @ 2020-12-04 16:06 UTC (permalink / raw
To: Eli Zaretskii; +Cc: Evgeny Zajcev, emacs-devel
> Sent: Friday, December 04, 2020 at 4:43 PM
> From: "Eli Zaretskii" <eliz@gnu.org>
> To: "Evgeny Zajcev" <lg.zevlg@gmail.com>
> Cc: emacs-devel@gnu.org
> Subject: Re: Scrolling up at the end of buffer
>
> > From: Evgeny Zajcev <lg.zevlg@gmail.com>
> > Date: Fri, 4 Dec 2020 16:52:18 +0300
> > Cc: emacs-devel <emacs-devel@gnu.org>
> >
> > For me, scrolling is just a way to *move* your point fast in a predictable way, showing maximum content to
> > the user, that is not what we get with default Emacs settings right now.
>
> That's because Emacs always behaved differently in this regard. It is
> very natural to me, probably because I'm accustomed to it (and miss it
> in other applications). To each his/her own.
Natural and being accustomed to it are two different things. Being accustomed to
something is likely not natural for the rest. Perhaps it could be described?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-12-04 16:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-04 11:57 Scrolling up at the end of buffer Evgeny Zajcev
2020-12-04 12:25 ` Eli Zaretskii
2020-12-04 12:40 ` Evgeny Zajcev
2020-12-04 12:54 ` Eli Zaretskii
2020-12-04 13:52 ` Evgeny Zajcev
2020-12-04 15:43 ` Eli Zaretskii
2020-12-04 16:06 ` Christopher Dimech
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.