GNU bug report logs - #15894
24.3.50; unwarranted horizontal auto-scrolling

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Thu, 14 Nov 2013 14:00:04 UTC

Severity: wishlist

Tags: confirmed

Found in version 24.3.50

Full log


Message #8 received at 15894 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: control <at> debbugs.gnu.org, 15894 <at> debbugs.gnu.org
Subject: Re: bug#15894: 24.3.50; unwarranted horizontal auto-scrolling
Date: Thu, 14 Nov 2013 19:26:37 +0200
severity 15894 wishlist
thanks

> Date: Thu, 14 Nov 2013 14:59:09 +0100
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> 
> >From "emacs -Q":
> 1. M-x toggle-truncate-lines
> 2. Visit a file with a single long line (say, about 300 characters)
> 3. Move point to the right until horizontal auto-scrolling take
>    place. (note that now the point is centered horizontally in the
>    window - ok).
> 4. Now move the point a bit to the left, but not too much, so that
>    horizontal auto-scrolling doesn't happen again, and thereby the point
>    ends up in a position closer to the left edge of the window.
> 5. C-x b C-x b (i.e. display another buffer and then display our buffer
>    again).
> 
> I observe that the cursor is re-centered horizontally, which IMO is not
> TRT.  The cursor should be at the same position it was last time I
> displayed the buffer (i.e. where I put it).

This isn't a bug, but a missing feature.  Emacs was never coded to
support what you expect.  The amount of hscroll is recorded in the
window object, so when another buffer is displayed in a window, that
information is thrown away and recomputed from scratch.  IOW, Emacs
does not remember what was the hscroll with which the buffer was last
displayed.

Patches are welcome to add such a feature.




This bug report was last modified 5 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.