From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30747: Emacs lacks a command to horizontally recenter Date: Sat, 26 Jun 2021 15:58:56 +0300 Message-ID: <83czs8rddb.fsf@gnu.org> References: <87r2ovtgmg.fsf@jidanni.org> <87tulmc88r.fsf@gnus.org> <83zgveq9bo.fsf@gnu.org> <87pmw8bxki.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25719"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 30747@debbugs.gnu.org, jidanni@jidanni.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 26 15:00:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lx7v0-0006WW-CU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Jun 2021 15:00:18 +0200 Original-Received: from localhost ([::1]:41878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lx7uz-0000LU-B3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Jun 2021 09:00:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lx7uk-0000LJ-GV for bug-gnu-emacs@gnu.org; Sat, 26 Jun 2021 09:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lx7uk-0003k8-4F for bug-gnu-emacs@gnu.org; Sat, 26 Jun 2021 09:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lx7uk-0003iI-0w for bug-gnu-emacs@gnu.org; Sat, 26 Jun 2021 09:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Jun 2021 13:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30747 X-GNU-PR-Package: emacs Original-Received: via spool by 30747-submit@debbugs.gnu.org id=B30747.162471235614187 (code B ref 30747); Sat, 26 Jun 2021 13:00:01 +0000 Original-Received: (at 30747) by debbugs.gnu.org; 26 Jun 2021 12:59:16 +0000 Original-Received: from localhost ([127.0.0.1]:47273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lx7u0-0003gl-Hb for submit@debbugs.gnu.org; Sat, 26 Jun 2021 08:59:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lx7tv-0003gT-O8 for 30747@debbugs.gnu.org; Sat, 26 Jun 2021 08:59:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56772) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lx7tp-0003Cp-W7; Sat, 26 Jun 2021 08:59:06 -0400 Original-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 ) id 1lx7tp-0003Hy-KK; Sat, 26 Jun 2021 08:59:05 -0400 In-Reply-To: <87pmw8bxki.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 26 Jun 2021 14:49:17 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209015 Archived-At: > From: Lars Ingebrigtsen > Cc: jidanni@jidanni.org, 30747@debbugs.gnu.org > Date: Sat, 26 Jun 2021 14:49:17 +0200 > > Eli Zaretskii 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?