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

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

bug#27932: 26.0.50; Feature request: prevent scroll commands from changi


From: martin rudalics
Subject: bug#27932: 26.0.50; Feature request: prevent scroll commands from changing the buffer location of point
Date: Thu, 03 Aug 2017 19:56:38 +0200

> I'd like to be able to configure Emacs so that scroll commands _never_
> move point (cursor) from its _buffer_ location.
>
> That could lead to situations where the point/cursor is not visible
> (it is out of the visible portion of text).  In that situations, any
> command which moves the cursor/point (e.g. C-f) or changes buffer text
> should trigger an auto-scroll to get the point/cursor back to the
> visible area (window), preserving its _buffer_ location.
>
> That feature could be enabled by giving some special value (e.g.
> 'never) to the variable "scroll-preserve-screen-position".
>
> I don't know how complex is that to implement, but I think some users
> may like it.

‘scroll-restore-mode’ in ELPA should "in principle" emulate that.  But
it has its quirks.

martin






reply via email to

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