From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.bugs Subject: bug#28648: Make mode-line number display consistent when both line and col numbers are shown. Date: Fri, 29 Sep 2017 13:45:01 -0400 Message-ID: References: <83ing177uv.fsf@gnu.org> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11404ff663cb65055a579721" X-Trace: blaine.gmane.org 1506707173 18466 195.159.176.226 (29 Sep 2017 17:46:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 17:46:13 +0000 (UTC) Cc: Richard Stallman , 28648@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 29 19:46:08 2017 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 1dxzMR-0003yG-PO for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 19:46:04 +0200 Original-Received: from localhost ([::1]:36440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxzMZ-0002xX-82 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 13:46:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxzMT-0002xS-K9 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 13:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxzMQ-000338-Hp for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 13:46:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59099) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxzMQ-00032w-E4 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 13:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dxzMQ-0006Bx-25 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 13:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28648 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28648-submit@debbugs.gnu.org id=B28648.150670714323774 (code B ref 28648); Fri, 29 Sep 2017 17:46:02 +0000 Original-Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 17:45:43 +0000 Original-Received: from localhost ([127.0.0.1]:39547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzM6-0006BO-UN for submit@debbugs.gnu.org; Fri, 29 Sep 2017 13:45:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzM5-0006B7-BA for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 13:45:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxzLx-0002jP-4o for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 13:45:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxzLx-0002jK-03 for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 13:45:33 -0400 Original-Received: from mail-qt0-f172.google.com ([209.85.216.172]:46143) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dxzLw-0001ai-NV for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 13:45:32 -0400 Original-Received: by mail-qt0-f172.google.com with SMTP id s18so503226qta.3 for <28648@debbugs.gnu.org>; Fri, 29 Sep 2017 10:45:32 -0700 (PDT) X-Gm-Message-State: AMCzsaUymTvrhH2jY2BPXCKNsIWK+zxIV6OCEIrG4kBpa/mMIvGhS6j3 HA6/ZlSez1sngRJF14Nie+2WTXphmGnkgCns2No= X-Google-Smtp-Source: AOwi7QBa09t1thXMIJRHvypT9p7VR48BJdAlWC6ss4mmZo/m6xcgT+MME7CS8e61h3ge1ENhN9ZjOZx05GCrKKLXv8s= X-Received: by 10.200.34.167 with SMTP id f36mr7233041qta.173.1506707132106; Fri, 29 Sep 2017 10:45:32 -0700 (PDT) Original-Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 10:45:01 -0700 (PDT) In-Reply-To: <83ing177uv.fsf@gnu.org> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:137620 Archived-At: --001a11404ff663cb65055a579721 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2017 at 1:06 PM, Eli Zaretskii wrote: > > From: Robert Weiner > > Date: Thu, 28 Sep 2017 17:56:50 -0400 > > > > When mode-line line numbers are on by themselves, L appears. > > When mode-line column numbers are on by themselves, C appears. > > When both are on, (,) appears. > > > > The latter is inconsistent and always forces the user to remember which > is the line and which is the column > > number. Fixing this is simple, simply remove the parentheses which are > no longer needed and add the prefix > > character to each number for: L,C. This makes the > display perfectly consistent, easier > > to read and does not take up any more character space. > > We had "Ln Cn" kind of display in Emacs 21 and before, and we changed > that to the current display in Emacs 22.1 (the change itself is from > Aug 2002). =E2=80=8BWas there any particular rationale for this? I offered my rationale for this change above; can't we debate the merits rather than that we changed it long ago? Does it really make sense to go back after 15 years? > > If you personally dislike the default display, you can always > customize mode-line-format in your sessions, can't you? > =E2=80=8BAs I noted, this is way too hard with the current code. My patch = makes such personal changes easy, so in the worst case, you could apply it but leave the display format strings the same. I already have this installed for my use. The issue is making Emacs do something better and easier to understand for a broad array of users. Maybe you could just ask people to chime in with which format they prefer: (,) or L,C or even (L,C). > > Eli, would you change this for Emacs 26? It would be nice to have the > consistency. > > Well, we used to like the current "inconsistency" better. > =E2=80=8BI assume that is in jest. If not, please explain. Bob =E2=80=8B --001a11404ff663cb65055a579721 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 29, 2= 017 at 1:06 PM, Eli Zaretskii <el= iz@gnu.org> wrot= e:
> From: Robert Weiner <rsw@gnu.org>
> Date: Thu, 28 Sep 2017 17:56:50 -0400
>
> When mode-line line numbers are on by themselves, L<line-num> ap= pears.
> When mode-line column numbers are on by themselves, C<col-num> a= ppears.
> When both are on, (<line-num>,<col-num>) appears.
>
> The latter is inconsistent and always forces the user to remember whic= h is the line and which is the column
> number. Fixing this is simple, simply remove the parentheses which are= no longer needed and add the prefix
> character to each number for: L<line-num>,C<col-num>. This= makes the display perfectly consistent, easier
> to read and does not take up any more character space.

We had "Ln Cn" kind of display in Emacs 21 and before, and= we changed
that to the current display in Emacs 22.1 (the change itself is from
Aug 2002).

=E2=80=8BWas there any particular rationa= le for this?

I offered my rationale for this change above; can't= we debate the merits rather than that we changed it long ago?

<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">=C2=A0 Does it really make sense to go back a= fter 15 years?

If you personally dislike the default display, you can always
customize mode-line-format in your sessions, can't you?

=E2=80=8BAs I noted, this is way too hard with the current code= .=C2=A0 My patch makes such personal changes easy, so in the worst case, yo= u could apply it but leave the display format strings the same.=C2=A0 I alr= eady have this installed for my use.=C2=A0 The issue is making Emacs do som= ething better and easier to understand for a broad array of users.=C2=A0 Ma= ybe you could just ask people to chime in with which format they prefer: (&= lt;num>,<num>) or L<num>,C<num> or even (L<num>,= C<num>).


> Eli, would you change this for Emacs 26? It would be nice to have the = consistency.

Well, we used to like the current "inconsistency" better.<= br>

=E2=80=8BI assume that is in jest.=C2=A0 If not,= please explain.

Bob
=E2=80=8B
--001a11404ff663cb65055a579721--