From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#30747: Emacs lacks a command to horizontally recenter Date: Thu, 08 Mar 2018 11:01:43 +0800 Message-ID: <87r2ovtgmg.fsf@jidanni.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1520491346 7345 195.159.176.226 (8 Mar 2018 06:42:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2018 06:42:26 +0000 (UTC) To: 30747@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 08 07:42:22 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etpFc-0007XW-JK for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Mar 2018 07:42:04 +0100 Original-Received: from localhost ([::1]:37149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etpHf-0002uH-FG for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Mar 2018 01:44:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etpHZ-0002qx-BF for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 01:44:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etpHW-0002ed-8Q for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 01:44:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etpHW-0002eZ-4x for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 01:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1etpHV-0001Xa-RF for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 01:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Mar 2018 06:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15204914335898 (code B ref -1); Thu, 08 Mar 2018 06:44:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Mar 2018 06:43:53 +0000 Original-Received: from localhost ([127.0.0.1]:50091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etpHN-0001X2-4W for submit@debbugs.gnu.org; Thu, 08 Mar 2018 01:43:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etpHL-0001Wp-9Q for submit@debbugs.gnu.org; Thu, 08 Mar 2018 01:43:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etpHF-0002V3-7F for submit@debbugs.gnu.org; Thu, 08 Mar 2018 01:43:46 -0500 Original-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 ) id 1etpHF-0002Us-4N for submit@debbugs.gnu.org; Thu, 08 Mar 2018 01:43:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etpHE-0002cw-0n for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 01:43:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etpHA-0002TB-Sm for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 01:43:44 -0500 Original-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 ) id 1etpHA-0002SK-Jf for bug-gnu-emacs@gnu.org; Thu, 08 Mar 2018 01:43:40 -0500 Original-Received: from homiemail-a3.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTP id 1A02A28408F for ; 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= Original-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@jidanni.org) by homiemail-a3.g.dreamhost.com (Postfix) with ESMTPSA id 9C78528408E for ; Wed, 7 Mar 2018 22:43:37 -0800 (PST) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:144022 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.