bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: split window after entering view-mode: scroll length not adjusted


From: Eli Zaretskii
Subject: Re: split window after entering view-mode: scroll length not adjusted
Date: Mon, 27 Aug 2001 18:30:45 +0300 (IDT)

On 27 Aug 2001, Miles Bader wrote:

> "Eli Zaretskii" <eliz@is.elta.co.il> writes:
> > > > This is a feature: the page size used by SPC and DEL does not change
> > > > automatically when you resize the window.  Use `z' and `w' to update
> > > > the page size as well.
> > > 
> > > Please, consider to change the default (for version 22 or something);
> > > alway obey the rule of "less surprise".
> > 
> > view-mode emulates programs (such as Less) which behave in this way.
> > People who are used to that won't be surprised.
> 
> ??????
> 
> If you resize the terminal window that `less' is displaying its output
> in, the paging commands (SPC, b) will page by the new size, not the old
> one.

The OP wasn't talking about resizing the terminal window (which
produces SIGWINCH and triggers recomputation in Less).

> I too find view-mode's behavior in this case pretty annoying...

Then either uze `z' and `w' instead if SPC and DEL, or rebind SPC and
DEL to call View-scroll-page-{for,back}ward-set-page-size instead of
their default bindings.  If you look at the code, it's pretty much
obvious this is done on purpose, and I certainly can see circumstances
where it's useful.  I can also see why someone might want a different
behavior, but that's why Emacs has customizations.

This thread started with a bug report (``I am pleased to say that I
have found a bug in view mode.'').  I can surely say one thing: a bug
this isn't.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]