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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Dani Moncayo <dmoncayo@HIDDEN>; Keywords: confirmed; dated Thu, 14 Nov 2013 14:00:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 15894 <at> debbugs.gnu.org:


Received: (at 15894) by debbugs.gnu.org; 14 Nov 2013 17:27:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 14 12:27:06 2013
Received: from localhost ([127.0.0.1]:52406 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Vh0h5-0002gd-05
	for submit <at> debbugs.gnu.org; Thu, 14 Nov 2013 12:27:05 -0500
Received: from mtaout22.012.net.il ([80.179.55.172]:60099)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>)
 id 1Vh0h1-0002g2-EM; Thu, 14 Nov 2013 12:27:00 -0500
Received: from conversion-daemon.a-mtaout22.012.net.il by
 a-mtaout22.012.net.il (HyperSendmail v2007.08) id
 <0MW900M00KCOAO00@HIDDEN>;
 Thu, 14 Nov 2013 19:26:53 +0200 (IST)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0MW900M1EKGS0LB0@HIDDEN>;
 Thu, 14 Nov 2013 19:26:53 +0200 (IST)
Date: Thu, 14 Nov 2013 19:26:37 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#15894: 24.3.50; unwarranted horizontal auto-scrolling
In-reply-to: <CAH8Pv0hrqd9ot6gCtW_6hAA_fcGbDMk=a1M9vKBnCcwJdks1UQ@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Dani Moncayo <dmoncayo@HIDDEN>
Message-id: <83k3gazygi.fsf@HIDDEN>
References: <CAH8Pv0hrqd9ot6gCtW_6hAA_fcGbDMk=a1M9vKBnCcwJdks1UQ@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 15894
Cc: control <at> debbugs.gnu.org, 15894 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

severity 15894 wishlist
thanks

> Date: Thu, 14 Nov 2013 14:59:09 +0100
> From: Dani Moncayo <dmoncayo@HIDDEN>
> 
> >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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15894; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Nov 2013 13:59:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 14 08:59:34 2013
Received: from localhost ([127.0.0.1]:51606 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VgxSH-0003bM-Eg
	for submit <at> debbugs.gnu.org; Thu, 14 Nov 2013 08:59:33 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46213)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <dmoncayo@HIDDEN>) id 1VgxSD-0003b6-60
 for submit <at> debbugs.gnu.org; Thu, 14 Nov 2013 08:59:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1VgxS6-0007M9-RI
 for submit <at> debbugs.gnu.org; Thu, 14 Nov 2013 08:59:23 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45025)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1VgxS6-0007M5-OG
 for submit <at> debbugs.gnu.org; Thu, 14 Nov 2013 08:59:22 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47909)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1VgxRx-00027l-97
 for bug-gnu-emacs@HIDDEN; Thu, 14 Nov 2013 08:59:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1VgxRv-00071V-Bh
 for bug-gnu-emacs@HIDDEN; Thu, 14 Nov 2013 08:59:13 -0500
Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:57094)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dmoncayo@HIDDEN>) id 1VgxRv-00071I-3w
 for bug-gnu-emacs@HIDDEN; Thu, 14 Nov 2013 08:59:11 -0500
Received: by mail-la0-f52.google.com with SMTP id ev20so1614269lab.11
 for <bug-gnu-emacs@HIDDEN>; Thu, 14 Nov 2013 05:59:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=+2HFZj3UDa67/WDXGQlNC5YFaKGaVakzNU+Z2JyXJzw=;
 b=oDoeUlPfMeRM/2tGTi64NLa2FsFiZ5KNtMF+m6S1X+BjCdV7rG5Oz4yytgflImM0JD
 h19RFOw3Hyd3UO63ytidvkNNEockOiEN36uuGyWyRNkxEiuRje3VQrcWkf6a+hoDDo6w
 kJovy0YQcHTBx4Q+zjXjpL84j90Z4qdjY8qhpwlCm6WcG8BXGYhVlfVZYomSEgLX5iE6
 k6RZN8Fd8AG9TMhIiAEjI1y0LXdQoNba0Og8V9bzRRV1RBpgGdLBTQgEerr4gicSnvM4
 VsH9jfa3+i5n+7EoURcgLJ3F84Hw0vUsd61Tuz0Jew5fAqu8ckd4Ivdk8lrVIWPh10OZ
 rjow==
MIME-Version: 1.0
X-Received: by 10.152.140.7 with SMTP id rc7mr906186lab.12.1384437549782; Thu,
 14 Nov 2013 05:59:09 -0800 (PST)
Received: by 10.114.176.231 with HTTP; Thu, 14 Nov 2013 05:59:09 -0800 (PST)
Date: Thu, 14 Nov 2013 14:59:09 +0100
Message-ID: <CAH8Pv0hrqd9ot6gCtW_6hAA_fcGbDMk=a1M9vKBnCcwJdks1UQ@HIDDEN>
Subject: 24.3.50; unwarranted horizontal auto-scrolling
From: Dani Moncayo <dmoncayo@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

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




Acknowledgement sent to Dani Moncayo <dmoncayo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#15894; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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