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

To reply to this bug, email your comments to 15894 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15894; Package emacs. (Thu, 14 Nov 2013 14:00:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dani Moncayo <dmoncayo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 14 Nov 2013 14:00:06 GMT) Full text and rfc822 format available.

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

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; unwarranted horizontal auto-scrolling
Date: Thu, 14 Nov 2013 14:59:09 +0100
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).

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-11-12 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1'

Important settings:
  value of $LANG: ESN
  locale-coding-system: cp1252
  default enable-multibyte-characters: t


-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15894; Package emacs. (Thu, 14 Nov 2013 17:28:03 GMT) Full text and rfc822 format available.

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.




Severity set to 'wishlist' from 'normal' Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 14 Nov 2013 17:28:04 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Mon, 30 Sep 2019 13:49:02 GMT) Full text and rfc822 format available.

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.