GNU bug report logs - #30747
Emacs lacks a command to horizontally recenter

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: 積丹尼 Dan Jacobson <jidanni@HIDDEN>; dated Thu, 8 Mar 2018 06:44:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 30747) by debbugs.gnu.org; 26 Jun 2021 12:59:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 26 08:59:16 2021
Received: from localhost ([127.0.0.1]:47273 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lx7u0-0003gl-Hb
	for submit <at> debbugs.gnu.org; Sat, 26 Jun 2021 08:59:16 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35718)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lx7tv-0003gT-O8
 for 30747 <at> debbugs.gnu.org; Sat, 26 Jun 2021 08:59:15 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:56772)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lx7tp-0003Cp-W7; Sat, 26 Jun 2021 08:59:06 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4085
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1lx7tp-0003Hy-KK; Sat, 26 Jun 2021 08:59:05 -0400
Date: Sat, 26 Jun 2021 15:58:56 +0300
Message-Id: <83czs8rddb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87pmw8bxki.fsf@HIDDEN> (message from Lars Ingebrigtsen on Sat, 
 26 Jun 2021 14:49:17 +0200)
Subject: Re: bug#30747: Emacs lacks a command to horizontally recenter
References: <87r2ovtgmg.fsf@HIDDEN> <87tulmc88r.fsf@HIDDEN>
 <83zgveq9bo.fsf@HIDDEN> <87pmw8bxki.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 30747
Cc: 30747 <at> debbugs.gnu.org, jidanni@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Cc: jidanni@HIDDEN,  30747 <at> debbugs.gnu.org
> Date: Sat, 26 Jun 2021 14:49:17 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> > Since lines are generally not all of the same width, such horizontal
> > scrolling can only guarantee to center one line, and sometimes cannot
> > center it at all (if it's narrower than the window).  I wonder whether
> > the OP indeed understands what he will get as result of implementing
> > this feature.
> 
> The centring would be based on the current line, yes.

So when one goes one line up or down, one would need to recenter?

>                                                        But horizontal
> centring is mostly useful when you have a display that's much wider than
> your window width, which can happen i deeply nested threads in Gnus, for
> instance.

Doesn't auto-hscroll-mode = current-line take care of that?




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

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


Received: (at 30747) by debbugs.gnu.org; 26 Jun 2021 12:49:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 26 08:49:29 2021
Received: from localhost ([127.0.0.1]:47255 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lx7kW-0003RH-V6
	for submit <at> debbugs.gnu.org; Sat, 26 Jun 2021 08:49:29 -0400
Received: from quimby.gnus.org ([95.216.78.240]:55404)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1lx7kV-0003R4-9W
 for 30747 <at> debbugs.gnu.org; Sat, 26 Jun 2021 08:49:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=GTCjF5qU6BUgg9eNVj7Mq1tvXVyEAgJ+WuNi3tYauko=; b=KxfFv2PZgU9sJE6n2CO0MYTMJi
 8c11MmyHx59CZO8yPvb9yVWBricVuVnXJWUxJgTOGsg4/vZok8BWDM9jmt/BJ5grE619J3ZyTbhIh
 vK1NtNa4MSUSZdCg7863A9DlfITDDbtcyn16hhIBOHYiysC0xhDLXLbwB7fQ8QwbawnU=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1lx7kM-0002Bu-Cm; Sat, 26 Jun 2021 14:49:20 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#30747: Emacs lacks a command to horizontally recenter
References: <87r2ovtgmg.fsf@HIDDEN> <87tulmc88r.fsf@HIDDEN>
 <83zgveq9bo.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEWYko+IgX2CfHhj
 XFlEPTsQCgsuKCb///+EZiqRAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UGGgwvDsYHjsQAAAGbSURB
 VDjLrdLBcuMgDABQZdvp2Yn7A4n3A9qI+twZhM6daeDcGYP+/xMqwLhx3OxpdYHkjRDIgt2ALoow
 x6irc85bxB47OCCmyRpDRGOkkY3CKcO+x+RXYYcj7DRjC/jaAcCu/3sDE56OO4D9adhknAsc+k0G
 HvsO/uBtjaigNQ5DhUCI3OAMHfRzhsUO+3EGLa8Zg6uAaLhBf85QMiJJ5NQAcamxKo4D5hpuC4hL
 8Wswd8DQL5AWGNBcQchACgS4gQuRNQrmB6ILrgKtwRpxuWs5wNACEkcqIAUkQyg3msbpTfesOVGB
 Zgju4gpIDmCSBmm+VeQMelw7ao4LSQVeHjEv9SiRtPzPC6SgYG1p5xGegvgPnbSHXAt8etEZyqMH
 j/r7S9cHSe+PkDtm9IO/HvbTkxYekFlsRGAvEvRYvePLmw/PpXL0HrTJLCy510Yrf1K5bPJANfL0
 uDotRTyU+6WyXwX4O/Ev0GfpA8L/OOqqt/lzeCm7exlyB8JtjZ/ZW0NIjfOHmmNdIuQmcrPYdvro
 mkGx9phtE/kGW3RYtTjs+U0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDYtMjZUMTI6NDc6MTQr
 MDA6MDCWduhJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA2LTI2VDEyOjQ3OjE0KzAwOjAw5ytQ
 9QAAAABJRU5ErkJggg==
X-Now-Playing: David Bowie's _The Width of a Circle (2)_: "The Prettiest
 Star (Alternative Mix)"
Date: Sat, 26 Jun 2021 14:49:17 +0200
In-Reply-To: <83zgveq9bo.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 25 Jun
 2021 17:59:23 +0300")
Message-ID: <87pmw8bxki.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Eli Zaretskii <eliz@HIDDEN> writes: > Since lines are
 generally
 not all of the same width, such horizontal > scrolling can only guarantee
 to center one line, and sometimes cannot > center it at all (if it's narrower
 than the window). I [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 30747
Cc: 30747 <at> debbugs.gnu.org, jidanni@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

> Since lines are generally not all of the same width, such horizontal
> scrolling can only guarantee to center one line, and sometimes cannot
> center it at all (if it's narrower than the window).  I wonder whether
> the OP indeed understands what he will get as result of implementing
> this feature.

The centring would be based on the current line, yes.  But horizontal
centring is mostly useful when you have a display that's much wider than
your window width, which can happen i deeply nested threads in Gnus, for
instance.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

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


Received: (at 30747) by debbugs.gnu.org; 25 Jun 2021 14:59:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 25 10:59:52 2021
Received: from localhost ([127.0.0.1]:46632 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lwnJ9-0004vj-RU
	for submit <at> debbugs.gnu.org; Fri, 25 Jun 2021 10:59:52 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41822)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1lwnJ7-0004vX-Ot
 for 30747 <at> debbugs.gnu.org; Fri, 25 Jun 2021 10:59:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:48468)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1lwnJ2-0001ZH-3E; Fri, 25 Jun 2021 10:59:44 -0400
Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4795
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1lwnIs-0001Jg-5g; Fri, 25 Jun 2021 10:59:43 -0400
Date: Fri, 25 Jun 2021 17:59:23 +0300
Message-Id: <83zgveq9bo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87tulmc88r.fsf@HIDDEN> (message from Lars Ingebrigtsen on Fri, 
 25 Jun 2021 16:46:28 +0200)
Subject: Re: bug#30747: Emacs lacks a command to horizontally recenter
References: <87r2ovtgmg.fsf@HIDDEN> <87tulmc88r.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 30747
Cc: 30747 <at> debbugs.gnu.org, jidanni@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Date: Fri, 25 Jun 2021 16:46:28 +0200
> Cc: 30747 <at> debbugs.gnu.org
> 
> > The future horizontal-recenter command (please implement) should keep
> > the cursor upon the same character (x), but just move the view screen ([
> > ]) so that x is now in the center.
> >
> > ......[.......x..]...... BEFORE
> > .........[....x.....]... AFTER
> 
> So this would only be for buffers where truncate-lines is non-nil?

No, also in partial-width windows (as in after "C-x 3").

> Yes, it'd be handy to have such a command...  or perhaps `C-l'
> should just do this automatically (in these buffers)?
> 
> Any opinions?

Since lines are generally not all of the same width, such horizontal
scrolling can only guarantee to center one line, and sometimes cannot
center it at all (if it's narrower than the window).  I wonder whether
the OP indeed understands what he will get as result of implementing
this feature.




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

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


Received: (at 30747) by debbugs.gnu.org; 25 Jun 2021 14:46:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 25 10:46:41 2021
Received: from localhost ([127.0.0.1]:46600 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lwn6P-0003oM-6l
	for submit <at> debbugs.gnu.org; Fri, 25 Jun 2021 10:46:41 -0400
Received: from quimby.gnus.org ([95.216.78.240]:45544)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1lwn6L-0003hD-Ou
 for 30747 <at> debbugs.gnu.org; Fri, 25 Jun 2021 10:46:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=1jmvrCV1wiJDm4051Wq0rc/aIHF+iL78Uh301bPwvJc=; b=dt9FWC6/SdWMpaSnxuAMUt6z2x
 LUVf/iqgnH2Q+uKcp6/SrrresnWbBDZG1Ty6avgNCHmANgPYyMwrYYC8TuMuFWqfovr4wK8kPWfhz
 dfv28xW1ynTMgTXUzmQgEHiUpk04aOGnyOI/48KsB6n7Zzt9Ix12uBDZ6QWxHoeCuwa0=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1lwn6D-00075C-8w; Fri, 25 Jun 2021 16:46:31 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
Subject: Re: bug#30747: Emacs lacks a command to horizontally recenter
References: <87r2ovtgmg.fsf@HIDDEN>
X-Now-Playing: David Bowie's _The Width of a Circle (1)_: "God Knows I'm Good"
Date: Fri, 25 Jun 2021 16:46:28 +0200
In-Reply-To: <87r2ovtgmg.fsf@HIDDEN> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan
 Jacobson"'s message of "Thu, 08 Mar 2018 11:01:43 +0800")
Message-ID: <87tulmc88r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  積丹尼 Dan Jacobson <jidanni@HIDDEN> writes: > Emacs
    has fancy commands to vertically recenter, > C-l runs the command recenter-top-bottom.
    > > But alas no command to horizontally recenter. > > All it has are the
   commands on > (info "(emacs) Hor [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 30747
Cc: 30747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -3.3 (---)

=E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson <jidanni@HIDDEN> writes:

> Emacs has fancy commands to vertically recenter,
> C-l runs the command recenter-top-bottom.
>
> But alas no command to horizontally recenter.
>
> All it has are the commands on
> (info "(emacs) Horizontal Scrolling") Not good enough.
>
> "It's just not fair." "Thin is in, fat is shat."
>
> The future horizontal-recenter command (please implement) should keep
> the cursor upon the same character (x), but just move the view screen ([
> ]) so that x is now in the center.
>
> ......[.......x..]...... BEFORE
> .........[....x.....]... AFTER

So this would only be for buffers where truncate-lines is non-nil?  Yes,
it'd be handy to have such a command...  or perhaps `C-l' should just do
this automatically (in these buffers)?

Any opinions?

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

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


Received: (at 30747) by debbugs.gnu.org; 8 Mar 2018 10:36:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 08 05:36:12 2018
Received: from localhost ([127.0.0.1]:50220 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1etsuC-0005Hi-HE
	for submit <at> debbugs.gnu.org; Thu, 08 Mar 2018 05:36:12 -0500
Received: from mout.gmx.net ([212.227.17.21]:45589)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <werner.lemberg@HIDDEN>) id 1etsu9-0005HR-JS
 for 30747 <at> debbugs.gnu.org; Thu, 08 Mar 2018 05:36:11 -0500
Received: from gnu.org ([178.165.128.129]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MgoiC-1fFw1w1JT6-00M4D1; Thu, 08
 Mar 2018 11:35:52 +0100
Date: Thu, 08 Mar 2018 11:35:50 +0100 (CET)
Message-Id: <20180308.113550.2299748945563734521.wl@HIDDEN>
To: mbork@HIDDEN
Subject: Re: bug#30747: Emacs lacks a command to horizontally recenter
From: Werner LEMBERG <wl@HIDDEN>
In-Reply-To: <87fu5aswxt.fsf@HIDDEN>
References: <87r2ovtgmg.fsf@HIDDEN>
	<87fu5aswxt.fsf@HIDDEN>
X-Mailer: Mew version 6.7 on Emacs 27.0.50 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:eOH4lFKu3yGEmBKmt06EwoX+aokMb9cudJv3luZjIOkxO/D3QqJ
 6MYkIwxF0dZUgCESMLv5UgWfzgscv1ndEYncun6fPWmrfBAjp1lw6cq8WcokVBwsbc2DRLn
 LH6dVTRfjW95Yi1NPQUCYE1GXSk8hM1JA6KJBKxTAGv8sGrY83Gn0uN2ErCUS09oprLQvy/
 NMnu5gFedbcc9DGJwFysw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:p/lLVKxrtjI=:SrcGyYdPR4qwisqyqBnwHX
 DYXTCdbJCBi85Oq7LYCWyuqT8AV07ZVR432yQ6FQCg8h0RJIKA+mW4GvZY5wbCpAA7Mew52+q
 WvP8RNRA/MhiBL4R5/RM52Q3+9QFpTLgINuCLQ7eFNXHIQ4iBqj7UJw5a+2vNEIjDgVaA7UsI
 bbjKj4tWJzDU0MBP0Ahy9kAnacuDbuxYTaG5Y7I+iYSES6aZ56Si7WbxAZtGTHthOl7qTV4tU
 2j6D5lS2kzxVT2W84pYpMkK8ne0PShBRJISb6dEU0ouQa2ZLn+acINhV4G+64YUt/hWGJSRl0
 sa1WXrBCVD/eE+qvzcyQ6zKVMDWutylkYtp0PyTEAdX6/vMNQy2ivus4qx7fldm82YlXjQErj
 skYK8jc3vyKOgptIeNmQfL20QYvA0GK598AA/NlCmBbETFW8XbenbI/hNArRKkrtqwCWO6xlv
 DbibqRXjBp48X09UStsTZOV/mRrR8uW5Fog562hPX+KVYYOSrUV+MaAheNx1jjYJ2az8WPAXJ
 DjI4jGfZooYAsphxEvUtMwaNXdkg2rvKFgQ9O5oSQ+8AJnkmbECpuVGqr9QkEiRaRPZuNzoiS
 60AVPKn+kbZARfs5U3vXtbUsbxntbyidP+im7hvjxoeMlqf2IvRml5Mtl3OKHeYmkWssxajvE
 bMbBsRmx9edBrJzJjC4cxfyfpTe1SPQB24hGfJ2z51OgR4p0SyHctGNlfAQvgNRa23nurU6ja
 EPrNVPW+zSU/JsHxA/N7tzPUyvyXaYeF5ajz2jFIzCfzTTRNb9YO97iBfIR6ebY6TYCzqMxOs
 1jcTCJT8TDAaqZyQSybKg26vZ6ByFP1hvH+VS8UG8zR3gBN0UYpgeF2Pdr2NCY2SCK0VSit
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 30747
Cc: 30747 <at> debbugs.gnu.org, jidanni@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -0.2 (/)

>> Emacs has fancy commands to vertically recenter,
>> C-l runs the command recenter-top-bottom.
>>
>> But alas no command to horizontally recenter.
> 
> Good point.  I'm all for a horizontal recenter command (maybe
> disabled by default).

Indeed.  This could be quite helpful in editing and viewing very long
lines.


    Werner




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

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


Received: (at 30747) by debbugs.gnu.org; 8 Mar 2018 10:07:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 08 05:07:31 2018
Received: from localhost ([127.0.0.1]:50206 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1etsSP-0004WR-0r
	for submit <at> debbugs.gnu.org; Thu, 08 Mar 2018 05:07:31 -0500
Received: from mail.mojserwer.eu ([195.110.48.8]:54006)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbork@HIDDEN>) id 1etsSN-0004WH-8Z
 for 30747 <at> debbugs.gnu.org; Thu, 08 Mar 2018 05:07:27 -0500
Received: from localhost (localhost [127.0.0.1])
 by mail.mojserwer.eu (Postfix) with ESMTP id 85EB4E670A;
 Thu,  8 Mar 2018 11:07:25 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu
Received: from mail.mojserwer.eu ([127.0.0.1])
 by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id vtpAvaR5IO18; Thu,  8 Mar 2018 11:07:22 +0100 (CET)
Received: from localhost (188.47.36.217.ipv4.supernova.orange.pl
 [188.47.36.217])
 by mail.mojserwer.eu (Postfix) with ESMTPSA id 3BE98E66FB;
 Thu,  8 Mar 2018 11:07:22 +0100 (CET)
References: <87r2ovtgmg.fsf@HIDDEN>
User-agent: mu4e 1.1.0; emacs 27.0.50
From: Marcin Borkowski <mbork@HIDDEN>
To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
Subject: Re: bug#30747: Emacs lacks a command to horizontally recenter
In-reply-to: <87r2ovtgmg.fsf@HIDDEN>
Date: Thu, 08 Mar 2018 11:06:54 +0100
Message-ID: <87fu5aswxt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 30747
Cc: 30747 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -0.7 (/)


On 2018-03-08, at 04:01, =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson <jidanni@=
jidanni.org> wrote:

> Emacs has fancy commands to vertically recenter,
> C-l runs the command recenter-top-bottom.
>
> But alas no command to horizontally recenter.

Good point.  I'm all for a horizontal recenter command (maybe disabled
by default).

--=20
Marcin Borkowski
http://mbork.pl




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

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


Received: (at submit) by debbugs.gnu.org; 8 Mar 2018 06:43:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 08 01:43:53 2018
Received: from localhost ([127.0.0.1]:50091 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1etpHN-0001X2-4W
	for submit <at> debbugs.gnu.org; Thu, 08 Mar 2018 01:43:53 -0500
Received: from eggs.gnu.org ([208.118.235.92]:58542)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jidanni@HIDDEN>) id 1etpHL-0001Wp-9Q
 for submit <at> debbugs.gnu.org; Thu, 08 Mar 2018 01:43:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1etpHF-0002V3-7F
 for submit <at> debbugs.gnu.org; Thu, 08 Mar 2018 01:43:46 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_50,DATE_IN_PAST_03_06,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39631)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1etpHF-0002Us-4N
 for submit <at> debbugs.gnu.org; Thu, 08 Mar 2018 01:43:45 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49499)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1etpHE-0002cw-0n
 for bug-gnu-emacs@HIDDEN; Thu, 08 Mar 2018 01:43:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1etpHA-0002TB-Sm
 for bug-gnu-emacs@HIDDEN; Thu, 08 Mar 2018 01:43:44 -0500
Received: from homie.mail.dreamhost.com ([208.97.132.208]:36243
 helo=homiemail-a3.g.dreamhost.com)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jidanni@HIDDEN>) id 1etpHA-0002SK-Jf
 for bug-gnu-emacs@HIDDEN; Thu, 08 Mar 2018 01:43:40 -0500
Received: from homiemail-a3.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a3.g.dreamhost.com (Postfix) with ESMTP id 1A02A28408F
 for <bug-gnu-emacs@HIDDEN>; Wed,  7 Mar 2018 22:43:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
 :subject:date:message-id:mime-version:content-type; s=
 jidanni.org; bh=MoiAYS9xZ8Up48o7A7TJvgVgGL0=; b=lSs8bxMkW5W5AEVD
 5EStjIeetMPuEh4spqSkx8pdOXZdelJI9KapGh8FK3oIN+mECcbIw2EvIkO+RfIZ
 PSqLN0rrdKQ75m6rkkiAFxC6TEjuk8rwdbmAw5IBrrHzVNpDlbZoe/cNZi2Cu5+N
 o3zNo7eHZmlMtqTsSajUVQDPeEM=
Received: from jidanni.org (111-246-85-108.dynamic-ip.hinet.net
 [111.246.85.108]) (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a3.g.dreamhost.com (Postfix) with ESMTPSA id 9C78528408E
 for <bug-gnu-emacs@HIDDEN>; Wed,  7 Mar 2018 22:43:37 -0800 (PST)
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Emacs lacks a command to horizontally recenter
Date: Thu, 08 Mar 2018 11:01:43 +0800
Message-ID: <87r2ovtgmg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.9 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -3.9 (---)

Emacs has fancy commands to vertically recenter,
C-l runs the command recenter-top-bottom.

But alas no command to horizontally recenter.

All it has are the commands on
(info "(emacs) Horizontal Scrolling") Not good enough.

"It's just not fair." "Thin is in, fat is shat."

The future horizontal-recenter command (please implement) should keep
the cursor upon the same character (x), but just move the view screen ([
]) so that x is now in the center.

......[.......x..]...... BEFORE
.........[....x.....]... AFTER

Also at the end of (info "(emacs) Recentering")
add

     The above all refers to vertical recentering. For horizontal recentering
     see (info "(emacs) Horizontal Scrolling").

And on (info "(emacs) Horizontal Scrolling") add the above newly
implemented command, and at the bottom of course mention:

     The above all refers to horizontal scrolling/recentering. For vertical recentering
     see (info "(emacs) Recentering").


P.S.,
[..x.......]..... BEFORE
[..x.......]..... AFTER
i.e., nothing, is probably what should happen if there is no room to
pull from the left.
P.P.S., each "." represents around 10 characters.




Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni@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#30747; 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: Sat, 26 Jun 2021 13:00:01 UTC

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