From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 12:00:30 2017 Received: (at submit) by debbugs.gnu.org; 29 Sep 2017 16:00:30 +0000 Received: from localhost ([127.0.0.1]:39431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxxiI-0001S3-8u for submit@debbugs.gnu.org; Fri, 29 Sep 2017 12:00:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxxiG-0001Rl-QD for submit@debbugs.gnu.org; Fri, 29 Sep 2017 12:00:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxxi7-0004S3-Jh for submit@debbugs.gnu.org; Fri, 29 Sep 2017 12:00:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33153) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dxxi7-0004Rt-Dm for submit@debbugs.gnu.org; Fri, 29 Sep 2017 12:00:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxxi0-0007si-H6 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 12:00:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxxhv-0004IP-Is for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 12:00:12 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxxhv-0004IJ-Dv for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 12:00:07 -0400 Received: from mail-qk0-f177.google.com ([209.85.220.177]:57186) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dxxhv-0001Hi-1J for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 12:00:07 -0400 Received: by mail-qk0-f177.google.com with SMTP id g128so53789qke.13 for ; Fri, 29 Sep 2017 09:00:06 -0700 (PDT) X-Gm-Message-State: AMCzsaV2I/dITNSmd4cWP6X9r5t3BrM+npJQxr+4vYhFo7LH1Gcn6W6f gFVzlJnczrwuv5Dls5qu4OlAshHIjNqMGFTjbSw= X-Google-Smtp-Source: AOwi7QBjrYfKv6tnkTXyWbCkjFiqSe47jn3CpioiHYKLX1cd5jLoGyXeKJSEnHDOiHv2ui4ABcKUAgcGQ66YoxLbw+M= X-Received: by 10.55.161.85 with SMTP id k82mr3919187qke.156.1506700806349; Fri, 29 Sep 2017 09:00:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 08:59:35 -0700 (PDT) From: Robert Weiner Date: Fri, 29 Sep 2017 11:59:35 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Make mode-line number display consistent when both line and col numbers are shown. To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="94eb2c0600bc58674d055a561ebe" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --94eb2c0600bc58674d055a561ebe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. Based on some discussion on the emacs-devel list here: https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00976.html =E2=80=8B=E2=80=8B this new patch solves both the consistency problem and the need for easy alteration of the available line and column formats. It extracts the line and col format strings into a new variable so they can be easily changed. Any change to that variable is immediately reflected in the modeline. =E2=80=8B=E2=80=8B Patch to =E2=80=8B=E2=80=8B Emacs 25.3 included below. For Emacs 26, =E2=80=8BI believe there is one additional=E2=80=8B =E2=80=8B=E2=80=8B l =E2=80=8B=E2=80=8B i =E2=80=8B=E2=80=8B n =E2=80=8B=E2=80=8B e =E2=80=8B=E2=80=8B that will need updating. It is an easy manual addition. =E2=80=8B=E2=80=8B Eli, woul =E2=80=8B=E2=80=8B d you =E2=80=8Bconsider this =E2=80=8B =E2=80=8Bchange f=E2=80=8B or Emacs 26? It would be nice to have the consisten =E2=80=8B=E2=80=8B cy =E2=80=8B and for other users to benefit=E2=80=8B . =E2=80=8B=E2=80=8B =E2=80=8B =E2=80=8B=E2=80=8B *** bindings-orig.el 2017-09-29 11:55:31.000000000 -0400 --- bindings.el 2017-09-29 11:55:31.000000000 -0400 *************** *** 350,355 **** --- 350,363 ---- map) "\ Keymap to display on column and line numbers.") + (defvar mode-line-column-line-number-formats + '((line-and-column . " L%l,C%c") + (line . " L%l") + (column . " C%c")) + "Alist of (symbol . format-string) pairs for mode-line numbering display. + SYMBOL may be one of: line-and-column, line or column. + FORMAT-STRING may contain %l for the line number and %c for the column number.") + (defvar mode-line-position `((-3 ,(propertize "%p" *************** *** 368,392 **** mouse-1: Display Line and Column Mode Menu"))) (line-number-mode ((column-number-mode ! (10 ,(propertize ! " (%l,%c)" ! 'local-map mode-line-column-line-number-mode-map ! 'mouse-face 'mode-line-highlight ! 'help-echo "Line number and Column number\n\ ! mouse-1: Display Line and Column Mode Menu")) ! (6 ,(propertize ! " L%l" ! 'local-map mode-line-column-line-number-mode-map ! 'mouse-face 'mode-line-highlight ! 'help-echo "Line Number\n\ ! mouse-1: Display Line and Column Mode Menu")))) ((column-number-mode ! (5 ,(propertize ! " C%c" ! 'local-map mode-line-column-line-number-mode-map ! 'mouse-face 'mode-line-highlight ! 'help-echo "Column number\n\ ! mouse-1: Display Line and Column Mode Menu")))))) "Mode line construct for displaying the position in the buffer. Normally displays the buffer percentage and, optionally, the buffer size, the line number and the column number.") --- 376,400 ---- mouse-1: Display Line and Column Mode Menu"))) (line-number-mode ((column-number-mode ! (10 (:eval (propertize ! (or (cdr (assq 'line-and-column mode-line-column-line-number-formats)) " ") ! 'local-map mode-line-column-line-number-mode-map ! 'mouse-face 'mode-line-highlight ! 'help-echo "Line number and Column number\n\ ! mouse-1: Display Line and Column Mode Menu"))) ! (6 (:eval (propertize ! (or (cdr (assq 'line mode-line-column-line-number-formats)) " ") ! 'local-map mode-line-column-line-number-mode-map ! 'mouse-face 'mode-line-highlight ! 'help-echo "Line Number\n\ ! mouse-1: Display Line and Column Mode Menu"))))) ((column-number-mode ! (5 (:eval (propertize ! (or (cdr (assq 'column mode-line-column-line-number-formats)) " ") ! 'local-map mode-line-column-line-number-mode-map ! 'mouse-face 'mode-line-highlight ! 'help-echo "Column number\n\ ! mouse-1: Display Line and Column Mode Menu"))))))) "Mode line construct for displaying the position in the buffer. Normally displays the buffer percentage and, optionally, the buffer size, the line number and the column number.") --94eb2c0600bc58674d055a561ebe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When mode-line line numbers are on by themselves, L<line-nu= m> appears.
When mode-line column numbers are on by t= hemselves, C<col-num> appears.
When both are on, (<line-num>,<col-num>) appears= .

The latter is inconsistent and always= forces the user to remember which is the line and which is the column numb= er.=C2=A0 Fixing this is simple, simply remove the parentheses which are no= longer needed and add the prefix character to each number for:=C2=A0 L<= line-num>,C<col-num>.=C2=A0 This makes the display perfectly consi= stent, easier to read and does not take up any more character space.=

Based on some discussion on the em= acs-devel list here:
=C2=A0=C2=A0<= /div>
this = new patch solves both the consistency problem and the need for easy alterat= ion of the available line and column formats.=C2=A0 It extracts the line an= d col format strings into a new variable so they can be easily changed.=C2= =A0 Any change to that variable is immediately reflected in the modeline.

=E2=80= =8B=E2=80=8B
Patch to
=E2=80=8B=E2=80=8B
Emacs 25.3 in= cluded below.=C2=A0 For Emacs 26,=C2=A0
=E2=80=8BI believe ther= e is one additional=E2=80=8B
=E2=80=8B=E2=80=8B
l=E2=80=8B=E2=80=8B
i
=E2=80=8B=E2=80=8B
n
=E2=80=8B=E2=80=8B
e
=E2=80=8B=E2=80=8B that will need u= pdating.=C2=A0 It is an easy manual addition.

=E2=80=8B=E2=80=8B
Eli, woul<= div class=3D"gmail_default" style=3D"font-family:monospace,monospace;displa= y:inline">=E2=80=8B=E2=80=8B
d you
=E2=80=8Bconsider this = =E2=80=8B
=E2=80=8Bchange=C2=A0
f=E2=80=8B<= /div>or Emacs 26?=C2=A0 It would be nice to have the consisten
= =E2=80=8B=E2=80=8B
cy
=E2=80=8B and for other users to benef= it=E2=80=8B
.
=E2=80=8B=E2=80=8B
=E2=80=8B

=E2=80=8B=E2=80=8B
*** bindings-orig.el 2017-09-29 11:55:31.000000000 -0400
--- bindings.el = 2017-09-29 11:55:31.000000000 -0400
***************
*** 350,355 ****
--- 350,363 ----
=C2=A0 =C2=A0 =C2=A0 map) "\
=C2=A0 Keymap to display on column and line numbers."= )
=C2=A0=C2=A0<= /div>
+ (defvar mode-line-column-li= ne-number-formats
+=C2= =A0 =C2=A0'((line-and-column . " L%l,C%c")
<= font face=3D"monospace, monospace">+=C2=A0 =C2=A0 =C2=A0(line=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 . " L%l")
+=C2=A0 =C2=A0 =C2=A0(column=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 . " C%c"))
+=C2=A0 =C2=A0"Alist of (symbol . format-string) pairs fo= r mode-line numbering display.
+ SYMBOL may be one of: line-and-column, line or column.
+ FORMAT-STRING may contain %l = for the line number and %c for the column number.")
<= font face=3D"monospace, monospace">+=C2=A0
=C2=A0 (defvar mode-line-position
=C2=A0 =C2=A0 `((-3 ,(propertize
=C2=A0 =C2=A0 "%p"
***************
*** 368,392 ****
=C2=A0 mouse-1: Display Line and Column Mode Menu")))
=C2=A0 =C2=A0 =C2=A0 (line-number= -mode
=C2=A0 =C2=A0 = =C2=A0 =C2=A0((column-number-mode
!=C2=A0 =C2=A0 =C2=A0 =C2=A0 (10 ,(propertize
= ! =C2=A0 =C2=A0 =C2=A0" (%l,%c)"
! =C2=A0 =C2= =A0 =C2=A0'local-map mode-line-column-line-number-mode-map
=
! = =C2=A0 =C2=A0 =C2=A0'mouse-face 'mode-line-highlight=
! =C2=A0 =C2=A0 =C2=A0'help-echo "Line number and Colu= mn number\n\
! mouse-1= : Display Line and Column Mode Menu"))
!=C2=A0 =C2=A0 =C2=A0 =C2=A0 (6 ,(propertize
! =C2=A0 =C2=A0 " L%l"
! =C2=A0 =C2= =A0 'local-map mode-line-column-line-number-mode-map
<= font face=3D"monospace, monospace">! =C2=A0 =C2=A0 'mouse-face 'mode-line-highlight
<= font face=3D"monospace, monospace">! =C2=A0 =C2=A0 'help-echo "Line Number\n\
! mouse-1: Display Line and Column Mode Menu&= quot;))))
=C2=A0 =C2= =A0 =C2=A0 =C2=A0((column-number-mode
!=C2=A0 =C2=A0 =C2=A0 =C2=A0 (5 ,(propertize
! <= /span>=C2=A0 =C2=A0 " C%c"
! =C2=A0 =C2=A0 '= ;local-map mode-line-column-line-number-mode-map
! =C2=A0= =C2=A0 'mouse-face 'mode-line-highlight
! =C2=A0= =C2=A0 'help-echo "Column number\n\
! mouse-1: Display Line and Column Mode Menu"= ;))))))
=C2=A0 =C2=A0 = "Mode line construct for displaying the position in the buffer.=
=C2=A0 Normally displays the= buffer percentage and, optionally, the
=C2=A0 buffer size, the line number and the column number= .")
--- 376,400 -= ---
=C2=A0 mouse-1: Di= splay Line and Column Mode Menu")))
=C2=A0 =C2=A0 =C2=A0 (line-number-mode
= =C2=A0 =C2=A0 =C2=A0 =C2=A0((column-num= ber-mode
!=C2=A0 =C2= =A0 =C2=A0 =C2=A0 (10 (:eval (propertize
! =C2=A0 =C2=A0= (or (cdr (assq 'line-and-column mode-line-column-line-number-formats)) = " ")
! =C2=A0 =C2=A0'local-map mode-line-c= olumn-line-number-mode-map
! =C2=A0 =C2=A0'mouse-fac= e 'mode-line-highlight
! =C2=A0 =C2=A0'help-echo= "Line number and Column number\n\
! mouse-1: Display Line and Column Mode Menu")))
!=C2=A0 =C2=A0 =C2=A0 =C2= =A0 (6 (:eval (propertize
! =C2=A0 (or (cdr (assq 'l= ine mode-line-column-line-number-formats)) " ")
= ! =C2=A0 'local-map mode-line-column-line-number-mode-map
! =C2=A0 'mouse-face 'mode-line-highlight
= ! =C2=A0 'help-echo "Line Number\n\
! mouse-1: Display Line and Column Mode Menu"= ;)))))
=C2=A0 =C2=A0 = =C2=A0 =C2=A0((column-number-mode
!=C2=A0 =C2=A0 =C2=A0 =C2=A0 (5 (:eval (propertize
=
! = =C2=A0 (or (cdr (assq 'column mode-line-column-line-number-for= mats)) " ")
= ! =C2=A0 'local-map mode-line-= column-line-number-mode-map
! =C2=A0 'mouse-face = 9;mode-line-highlight
= ! =C2=A0 'help-echo "Colu= mn number\n\
! mouse-1= : Display Line and Column Mode Menu")))))))
=C2=A0 =C2=A0 "Mode line construct for disp= laying the position in the buffer.
=C2=A0 Normally displays the buffer percentage and, optionally= , the
=C2=A0 buffer si= ze, the line number and the column number.")

--94eb2c0600bc58674d055a561ebe-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 13:45:43 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 17:45:43 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 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) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 10:45:01 -0700 (PDT) In-Reply-To: <83ing177uv.fsf@gnu.org> References: <83ing177uv.fsf@gnu.org> From: Robert Weiner Date: Fri, 29 Sep 2017 13:45:01 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Make mode-line number display consistent when both line and col numbers are shown. To: Eli Zaretskii Content-Type: multipart/alternative; boundary="001a11404ff663cb65055a579721" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 28648 Cc: Richard Stallman , 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --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-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 14:18:36 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 18:18:36 +0000 Received: from localhost ([127.0.0.1]:39586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzrv-00072p-Ph for submit@debbugs.gnu.org; Fri, 29 Sep 2017 14:18:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzru-00072c-TM for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:18:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxzrl-0005qN-O9 for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:18:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_40,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxzrl-0005qD-KK for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:18:25 -0400 Received: from mail-qk0-f180.google.com ([209.85.220.180]:56368) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dxzrl-0001op-CY for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:18:25 -0400 Received: by mail-qk0-f180.google.com with SMTP id g128so431518qke.13 for <28648@debbugs.gnu.org>; Fri, 29 Sep 2017 11:18:25 -0700 (PDT) X-Gm-Message-State: AMCzsaXUKfH+qZ2H7Zjt/0gmge0/AB2N4GpHgh8LFbVAzm3sOVZhJi4I oFSofoIcJScU1bRPD3Z2FaNYjBSO2W9N4wJlKig= X-Google-Smtp-Source: AOwi7QDL3DwSw7OK7+TfpNU2xhNWTXj/pLWXvLmWv0mFxh0Wapz/X9CeFpT7nZIbHbNUtsXYGYifaTYuhgk694YbqCQ= X-Received: by 10.55.25.85 with SMTP id k82mr4249018qkh.223.1506709104878; Fri, 29 Sep 2017 11:18:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 11:17:54 -0700 (PDT) In-Reply-To: References: <83ing177uv.fsf@gnu.org> From: Robert Weiner Date: Fri, 29 Sep 2017 14:17:54 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Make mode-line number display consistent when both line and col numbers are shown. To: Eli Zaretskii , Robert Weiner Content-Type: multipart/alternative; boundary="001a11473a84f9e94b055a580ce8" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 28648 Cc: 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --001a11473a84f9e94b055a580ce8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2017 at 1:49 PM, John Wiegley wrote: > >>>>> "EZ" =3D=3D Eli Zaretskii writes: > > But you're right, the mode line can always be customized, so I'm not > feeling > too strongly about this. > =E2=80=8BCustomizing mode-line-format won't help as the string to be modifi= ed is embedded in the sub-variable, mode-line-position, which is a standard variable not a customizable option. So doesn't that mean there is no way for a non-programming user to change the line-col display format and have that change persist across Emacs releases without replicating the whole definition of mode-line-position? Bob --001a11473a84f9e94b055a580ce8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 29, 2= 017 at 1:49 PM, John Wiegley <jo= hnw@gnu.org> wro= te:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">>>>>> "EZ" =3D=3D El= i Zaretskii <eliz@gnu.org> writes= :

But you're right, the mode line can always be customized, so I'm no= t feeling
too strongly about this.

=E2=80=8BCustomizing mo= de-line-format won't help as the string to be modified is embedded in t= he sub-variable, mode-line-position, which is a standard variable not a cus= tomizable option.=C2=A0 So doesn't that mean there is no way for a non-= programming user to change the line-col display format and have that change= persist across Emacs releases without replicating the whole definition of = mode-line-position?

Bob


--001a11473a84f9e94b055a580ce8-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 14:21:11 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 18:21:11 +0000 Received: from localhost ([127.0.0.1]:39599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzuQ-00078D-Qc for submit@debbugs.gnu.org; Fri, 29 Sep 2017 14:21:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzuP-00077v-En for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:21:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxzuG-0007aI-EW for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:21:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxzuG-0007aC-AZ; Fri, 29 Sep 2017 14:21:00 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1446 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dxzu9-000282-3o; Fri, 29 Sep 2017 14:20:53 -0400 Date: Fri, 29 Sep 2017 21:20:46 +0300 Message-Id: <83o9pt5ptt.fsf@gnu.org> From: Eli Zaretskii To: rswgnu@gmail.com In-reply-to: (message from Robert Weiner on Fri, 29 Sep 2017 13:45:01 -0400) Subject: Re: Make mode-line number display consistent when both line and col numbers are shown. References: <83ing177uv.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28648 Cc: rms@gnu.org, 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Robert Weiner > Date: Fri, 29 Sep 2017 13:45:01 -0400 > Cc: 28648@debbugs.gnu.org, Richard Stallman > > 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). > > ​Was there any particular rationale for this? Yes: the "Ln Cn" display was deemed "quite annoying to look at". Sounds familiar? ;-) You can read the entire thread here: http://lists.gnu.org/archive/html/emacs-devel/2002-08/msg00451.html (most of it is not about this particular change). > I offered my rationale for this change above; can't we debate the merits rather than that we changed it long > ago? It just sounds strange to me to go back on a change, when no one AFAIR complained about that change. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 14:21:20 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 18:21:20 +0000 Received: from localhost ([127.0.0.1]:39602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzua-00078d-3a for submit@debbugs.gnu.org; Fri, 29 Sep 2017 14:21:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxzuX-00078L-Rw for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:21:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxzuO-0007ho-Rh for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:21:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxzuO-0007hZ-NP for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:21:08 -0400 Received: from mail-qk0-f180.google.com ([209.85.220.180]:45238) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dxzuO-0002AR-DU for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:21:08 -0400 Received: by mail-qk0-f180.google.com with SMTP id r141so473001qke.2 for <28648@debbugs.gnu.org>; Fri, 29 Sep 2017 11:21:08 -0700 (PDT) X-Gm-Message-State: AMCzsaUwyB833Dj2VdkOs/6ogVBpRW8W5ofCBkp+kL0VHsXJ994H3jZS b4K6DMlYdD8FGe4l9DzyaUySE1SvuXga9aO7Rcc= X-Google-Smtp-Source: AOwi7QA61upusmEmGUgRDIefy8E9dBEFO1p1TEjJd40vc4PlWZumU1RfuSJBpCXbC5vAgaeWmsh1S86f6zER0z72Yjg= X-Received: by 10.55.19.228 with SMTP id 97mr4350944qkt.271.1506709268068; Fri, 29 Sep 2017 11:21:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 11:20:37 -0700 (PDT) In-Reply-To: <83r2up5q19.fsf@gnu.org> References: <87fub6ugw4.fsf@yandex.com> <878tgxvoyz.fsf@yandex.com> <83r2up5q19.fsf@gnu.org> From: Robert Weiner Date: Fri, 29 Sep 2017 14:20:37 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Make mode-line number display consistent when both line and col numbers are shown. To: Eli Zaretskii Content-Type: multipart/alternative; boundary="001a113fe9f0b3fe61055a58162e" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 28648 Cc: Colin Baxter , Jose Arroyo , John Wiegley , 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --001a113fe9f0b3fe61055a58162e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2017 at 2:16 PM, Eli Zaretskii wrote: > > From: "John Wiegley" > > Date: Fri, 29 Sep 2017 10:35:14 -0700 > > Cc: Colin Baxter , Jose Arroyo < > jose.m.arroyo.se@gmail.com>, > > rswgnu@gmail.com, emacs-devel > > > > It think the new default should be: > > > > Lnn > > Cnn > > Lnn Cnn > > That's what we had before Emacs 22.1. > =E2=80=8BI am fine with that, though having the more modular code in the pa= tch I submitted would also allow users to change the format easily as desired. Bob =E2=80=8B --001a113fe9f0b3fe61055a58162e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 29, 2= 017 at 2:16 PM, Eli Zaretskii <el= iz@gnu.org> wrot= e:
> From: "John Wiegley" <johnw@gnu.org>
> Date: Fri, 29 Sep 2017 10:35:14 -0700
> Cc: Colin Baxter <m43cap@yande= x.com>, Jose Arroyo <jose.m.arroyo.se@gmail.com>,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0rswgnu@g= mail.com, emacs-devel <emacs-= devel@gnu.org>
>
> It think the new default should be:
>
>=C2=A0 =C2=A0 =C2=A0Lnn
>=C2=A0 =C2=A0 =C2=A0Cnn
>=C2=A0 =C2=A0 =C2=A0Lnn Cnn

That's what we had before Emacs 22.1.

<= /div>
=E2=80=8BI am fine with that, though having the more modular code in the p= atch I submitted would also allow users to change the format easily as desi= red.

Bob
=E2=80=8B

--001a113fe9f0b3fe61055a58162e-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 14:49:16 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 18:49:16 +0000 Received: from localhost ([127.0.0.1]:39617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy0Lb-0007rH-NN for submit@debbugs.gnu.org; Fri, 29 Sep 2017 14:49:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy0La-0007r5-5X for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:49:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy0LQ-0000mZ-1c for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:49:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy0LP-0000mC-Ty for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:49:03 -0400 Received: from mail-qt0-f172.google.com ([209.85.216.172]:43919) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dy0LP-0001Ti-Jq for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 14:49:03 -0400 Received: by mail-qt0-f172.google.com with SMTP id i50so748492qtf.0 for <28648@debbugs.gnu.org>; Fri, 29 Sep 2017 11:49:03 -0700 (PDT) X-Gm-Message-State: AMCzsaXJHiQHzkEpr/qWdKJg/l6vwsBclh8WvZF9OelJRDnoHLAPQjSb RUCWhrO1qUYLP5o9INIRdF92AZclgtcGPjFV4Qs= X-Google-Smtp-Source: AOwi7QCw0+pEfozcLMBeexfxKIMS7WYS/WjUdK9n6LvEOn+kTyJcjCLzpsATj5aREZ2bVSgwRECCpS7zA5WKCYoQXlA= X-Received: by 10.200.26.65 with SMTP id q1mr7322118qtk.186.1506710943064; Fri, 29 Sep 2017 11:49:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 11:48:32 -0700 (PDT) In-Reply-To: <83o9pt5ptt.fsf@gnu.org> References: <83ing177uv.fsf@gnu.org> <83o9pt5ptt.fsf@gnu.org> From: Robert Weiner Date: Fri, 29 Sep 2017 14:48:32 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Make mode-line number display consistent when both line and col numbers are shown. To: Eli Zaretskii Content-Type: multipart/alternative; boundary="f403045d6da08a67cb055a587a62" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 28648 Cc: Richard Stallman , 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --f403045d6da08a67cb055a587a62 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2017 at 2:20 PM, Eli Zaretskii wrote: > > From: Robert Weiner > > Date: Fri, 29 Sep 2017 13:45:01 -0400 > > Cc: 28648@debbugs.gnu.org, Richard Stallman > > > > 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? > > Yes: the "Ln Cn" display was deemed "quite annoying to look at". > Sounds familiar? ;-) > =E2=80=8BOne person said that and there were differing opinions. RMS agree= d to the change but it is unclear which parts he really wanted. Richard, did you really want the display of L and C removed when both are shown or was there some other aspect to this change that you wanted? The better question is what do you think now? =E2=80=8B=E2=80=8B=E2=80=8B > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > You can read the entire thread here: > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > http://lists.gnu.org/archive/html/emacs-devel/2002-08/msg00451.html =E2=80=8BThanks for the pointer. The thread does not suggest that the chan= ge was based on any universal or even consensus opinion, thus it should be open to debate again. Bob --f403045d6da08a67cb055a587a62 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 29, 2= 017 at 2:20 PM, Eli Zaretskii <el= iz@gnu.org> wrot= e:
> From: Robert Weiner <rsw@gnu.org>
> Date: Fri, 29 Sep 2017 13:45:01 -0400
> Cc: 28648@debbugs.gnu.org= , Richard Stallman <rms@gnu.org> >
>=C2=A0 We had "Ln Cn" kind of display in Emacs 21 and before,= and we changed
>=C2=A0 that to the current display in Emacs 22.1 (the change itself is = from
>=C2=A0 Aug 2002).
>
> =E2=80=8BWas there any particular rationale for this?

Yes: the "Ln Cn" display was deemed "quite annoying t= o look at".
Sounds familiar? ;-)

=E2=80=8BOne person sa= id that and there were differing opinions.=C2=A0 RMS agreed to the change b= ut it is unclear which parts he really wanted.=C2=A0 Richard, did you reall= y want the display of L and C removed when both are shown or was there some= other aspect to this change that you wanted?=C2=A0 The better question is = what do you think now?
=E2=80=8B=E2=80=8B=E2=80=8B
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
You can read the entire thread here:
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
=C2=A0 http://lists.gnu.org/archive/html/emacs-devel/2002-08/ms= g00451.html

=E2=80=8BThanks for the pointer.=C2= =A0 The thread does not suggest that the change was based on any universal = or even consensus opinion, thus it should be open to debate again.

B= ob

--f403045d6da08a67cb055a587a62-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 15:15:45 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 19:15:45 +0000 Received: from localhost ([127.0.0.1]:39627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy0lF-0008WA-9h for submit@debbugs.gnu.org; Fri, 29 Sep 2017 15:15:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy0lD-0008Vv-IM for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 15:15:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy0l5-0005SB-7W for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 15:15:38 -0400 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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy0l5-0005S6-3y; Fri, 29 Sep 2017 15:15:35 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1488 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dy0l4-0000lI-IV; Fri, 29 Sep 2017 15:15:34 -0400 Date: Fri, 29 Sep 2017 22:15:27 +0300 Message-Id: <83lgkx5nao.fsf@gnu.org> From: Eli Zaretskii To: rswgnu@gmail.com In-reply-to: (message from Robert Weiner on Fri, 29 Sep 2017 14:17:54 -0400) Subject: Re: Make mode-line number display consistent when both line and col numbers are shown. References: <83ing177uv.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28648 Cc: rswgnu@gmail.com, 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Robert Weiner > Date: Fri, 29 Sep 2017 14:17:54 -0400 > Cc: 28648@debbugs.gnu.org > > But you're right, the mode line can always be customized, so I'm not feeling > too strongly about this. > > ​Customizing mode-line-format won't help as the string to be modified is embedded in the sub-variable, > mode-line-position, which is a standard variable not a customizable option. So doesn't that mean there is no > way for a non-programming user to change the line-col display format and have that change persist across > Emacs releases without replicating the whole definition of mode-line-position? If you are asking for an optional feature that would display these indicators as we did 15 years ago, I'm okay with adding it. (We already have quite a few optional variations on similar themes, but one more cannot do too much harm, I guess.) My interpretation of what you said originally was that you want to unconditionally revert to pre-22 behavior, which is quite a different request. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 15:24:11 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 19:24:11 +0000 Received: from localhost ([127.0.0.1]:39633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy0tP-0000Ib-3y for submit@debbugs.gnu.org; Fri, 29 Sep 2017 15:24:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy0tN-0000IP-Qe for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 15:24:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy0tF-0001q8-Fv for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 15:24:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy0tF-0001q4-BG for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 15:24:01 -0400 Received: from mail-qt0-f180.google.com ([209.85.216.180]:49765) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dy0tF-0001Km-2p for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 15:24:01 -0400 Received: by mail-qt0-f180.google.com with SMTP id o3so852188qte.6 for <28648@debbugs.gnu.org>; Fri, 29 Sep 2017 12:24:01 -0700 (PDT) X-Gm-Message-State: AMCzsaUo2SJfEwJFPVzUdZs2wnQBg0lNFfNiswCLV5d8FsH76v9FaKKH W/TjPPL2DcFD2UJzrs4iU0/QXIPDmmjuFDTAoBk= X-Google-Smtp-Source: AOwi7QBDUtdVuS9+HmabNT0Qgud/49OYLaE5259HgTfbVaaPW5XuvPHa2T3Ow1+fCx36Nwki4EnmK1tgJn5/3Gi0pFI= X-Received: by 10.237.42.35 with SMTP id c32mr7921802qtd.171.1506713040553; Fri, 29 Sep 2017 12:24:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 12:23:30 -0700 (PDT) In-Reply-To: <83lgkx5nao.fsf@gnu.org> References: <83ing177uv.fsf@gnu.org> <83lgkx5nao.fsf@gnu.org> From: Robert Weiner Date: Fri, 29 Sep 2017 15:23:30 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Make mode-line number display consistent when both line and col numbers are shown. To: Eli Zaretskii Content-Type: multipart/alternative; boundary="001a113b10e28f8f70055a58f797" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 28648 Cc: 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --001a113b10e28f8f70055a58f797 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2017 at 3:15 PM, Eli Zaretskii wrote: > > If you are asking for an optional feature that would display these > indicators as we did 15 years ago, I'm okay with adding it. (We > already have quite a few optional variations on similar themes, but > one more cannot do too much harm, I guess.) > =E2=80=8BCan you explain how that would work? How would you modify the lin= e and col display format? Do you mean applying my patch but leaving the default format strings as they are now? =E2=80=8B > > My interpretation of what you said originally was that you want to > unconditionally revert to pre-22 behavior, which is quite a different > request. > =E2=80=8BWe have two separate issues here: 1. The default line and col display format: I was suggesting the change for consistency sake.=E2=80=8B If it could be made an easy-to-trigger option o= n the popup menu that controls this display, I could support that. 2. The ability to easily change the line and col display format strings: My patch solves that issue. Bob --001a113b10e28f8f70055a58f797 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 29, 2= 017 at 3:15 PM, Eli Zaretskii <el= iz@gnu.org> wrot= e:

If you are asking for an optional feature that would display these indicators as we did 15 years ago, I'm okay with adding it.=C2=A0 (We already have quite a few optional variations on similar themes, but
one more cannot do too much harm, I guess.)

=
=E2= =80=8BCan you explain how that would work?=C2=A0 How would you modify the l= ine and col display format?=C2=A0 Do you mean applying my patch but leaving= the default format strings as they are now?
=E2=80=8B

My interpretation of what you said originally was that you want to
unconditionally revert to pre-22 behavior, which is quite a different
request.

=E2=80=8BWe have two separate issues h= ere:

1. The default line and col display format: I was suggesting th= e change for consistency sake.=E2=80=8B=C2=A0 If it could be made an easy-t= o-trigger option on the popup menu that controls this display, I could supp= ort that.

2. The ability to easily change the line and col display f= ormat strings: My patch solves that issue.

Bob

--001a113b10e28f8f70055a58f797-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 16:09:16 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 20:09:17 +0000 Received: from localhost ([127.0.0.1]:39670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1b2-0001Sd-Mf for submit@debbugs.gnu.org; Fri, 29 Sep 2017 16:09:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1b1-0001SP-Cs for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 16:09:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy1as-0000v3-Vr for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 16:09:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy1as-0000uv-SF; Fri, 29 Sep 2017 16:09:06 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1530 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dy1as-0008Sy-9M; Fri, 29 Sep 2017 16:09:06 -0400 Date: Fri, 29 Sep 2017 23:08:59 +0300 Message-Id: <83efqp5ktg.fsf@gnu.org> From: Eli Zaretskii To: rswgnu@gmail.com In-reply-to: (message from Robert Weiner on Fri, 29 Sep 2017 15:23:30 -0400) Subject: Re: Make mode-line number display consistent when both line and col numbers are shown. References: <83ing177uv.fsf@gnu.org> <83lgkx5nao.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28648 Cc: 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Robert Weiner > Date: Fri, 29 Sep 2017 15:23:30 -0400 > Cc: 28648@debbugs.gnu.org > > If you are asking for an optional feature that would display these > indicators as we did 15 years ago, I'm okay with adding it. (We > already have quite a few optional variations on similar themes, but > one more cannot do too much harm, I guess.) > > ​Can you explain how that would work? How would you modify the line and col display format? By providing a defcustom which will arrange for mode-line-format to have the right stuff, I suppose. > ​We have two separate issues here: > > 1. The default line and col display format: I was suggesting the change for consistency sake.​ If it could be > made an easy-to-trigger option on the popup menu that controls this display, I could support that. > > 2. The ability to easily change the line and col display format strings: My patch solves that issue. Your patch makes the change unconditional for everyone. I don't think we should do that, especially since we once went in the opposite direction. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 16:16:27 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 20:16:27 +0000 Received: from localhost ([127.0.0.1]:39682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1hz-0001ef-6q for submit@debbugs.gnu.org; Fri, 29 Sep 2017 16:16:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1hx-0001eT-2r for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 16:16:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy1hm-00059F-RO for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 16:16:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy1hm-000598-NR for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 16:16:14 -0400 Received: from mail-qk0-f181.google.com ([209.85.220.181]:52838) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dy1hm-0000YT-BY for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 16:16:14 -0400 Received: by mail-qk0-f181.google.com with SMTP id o77so746492qke.9 for <28648@debbugs.gnu.org>; Fri, 29 Sep 2017 13:16:14 -0700 (PDT) X-Gm-Message-State: AMCzsaVPLrVdoF1wTh9k/Eem7Z86WOacf7XykWUaOVPDD1Z64BIxoc+m U+HrBHE0vuZ/VNC+GS2a2m/wOEMWxazEg+To158= X-Google-Smtp-Source: AOwi7QB4mt75exTQyiSSd4ROC2kokotM/PuoA/tFyFN6k7XpVUZsnYaipLSpacqtvTekCFbvYM75aEU95ghgFNEy8zw= X-Received: by 10.233.244.72 with SMTP id z8mr4991698qkl.186.1506716174000; Fri, 29 Sep 2017 13:16:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 13:15:43 -0700 (PDT) In-Reply-To: <83efqp5ktg.fsf@gnu.org> References: <83ing177uv.fsf@gnu.org> <83lgkx5nao.fsf@gnu.org> <83efqp5ktg.fsf@gnu.org> From: Robert Weiner Date: Fri, 29 Sep 2017 16:15:43 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Make mode-line number display consistent when both line and col numbers are shown. To: Eli Zaretskii Content-Type: multipart/alternative; boundary="f403043a4108543880055a59b2b5" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 28648 Cc: 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --f403043a4108543880055a59b2b5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2017 at 4:08 PM, Eli Zaretskii wrote: > > From: Robert Weiner > > Date: Fri, 29 Sep 2017 15:23:30 -0400 > > Cc: 28648@debbugs.gnu.org > > > > If you are asking for an optional feature that would display these > > indicators as we did 15 years ago, I'm okay with adding it. (We > > already have quite a few optional variations on similar themes, but > > one more cannot do too much harm, I guess.) > > > > =E2=80=8BCan you explain how that would work? How would you modify the = line and > col display format? > > By providing a defcustom which will arrange for mode-line-format to > have the right stuff, I suppose. > =E2=80=8BJust change the patch to use a defcustom instead of the defvar for= the line and col format strings. =E2=80=8B > > > =E2=80=8BWe have two separate issues here: > > > > 1. The default line and col display format: I was suggesting the change > for consistency sake.=E2=80=8B If it could be > > made an easy-to-trigger option on the popup menu that controls this > display, I could support that. > > > > 2. The ability to easily change the line and col display format strings= : > My patch solves that issue. > > Your patch makes the change unconditional for everyone. I don't think > we should do that, especially since we once went in the opposite > direction. > =E2=80=8BOk, then just modify the one line-and-col string to be as it prese= ntly is in Emacs (that's the only one that was modified) and users will not see a change unless they customize the format strings. Bob =E2=80=8B --f403043a4108543880055a59b2b5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 29, 2= 017 at 4:08 PM, Eli Zaretskii <el= iz@gnu.org> wrot= e:
> From: Robert Weiner <rsw@gnu.org>
> Date: Fri, 29 Sep 2017 15:23:30 -0400
> Cc: 28648@debbugs.gnu.org=
>
>=C2=A0 If you are asking for an optional feature that would display the= se
>=C2=A0 indicators as we did 15 years ago, I'm okay with adding it. = (We
>=C2=A0 already have quite a few optional variations on similar themes, = but
>=C2=A0 one more cannot do too much harm, I guess.)
>
> =E2=80=8BCan you explain how that would work? How would you modify the= line and col display format?

By providing a defcustom which will arrange for mode-line-format to<= br> have the right stuff, I suppose.

=E2=80=8BJust = change the patch to use a defcustom instead of the defvar for the line and = col format strings.
=E2=80=8B

> =E2=80=8BWe have two separate issues here:
>
> 1. The default line and col display format: I was suggesting the chang= e for consistency sake.=E2=80=8B If it could be
> made an easy-to-trigger option on the popup menu that controls this di= splay, I could support that.
>
> 2. The ability to easily change the line and col display format string= s: My patch solves that issue.

Your patch makes the change unconditional for everyone.=C2=A0 I don&= #39;t think
we should do that, especially since we once went in the opposite
direction.

=E2=80=8BOk, then just modify the one= line-and-col string to be as it presently is in Emacs (that's the only= one that was modified) and users will not see a change unless they customi= ze the format strings.

Bob
=E2=80=8B

--f403043a4108543880055a59b2b5-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 17:55:53 2017 Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 21:55:53 +0000 Received: from localhost ([127.0.0.1]:39739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy3GD-0004DR-HO for submit@debbugs.gnu.org; Fri, 29 Sep 2017 17:55:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy3GC-0004DE-4j for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 17:55:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy3G6-0005Ah-6C for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 17:55:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy3G3-00058S-9d; Fri, 29 Sep 2017 17:55:43 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dy3G2-0002Xo-5W; Fri, 29 Sep 2017 17:55:42 -0400 From: Richard Stallman To: rswgnu@gmail.com In-reply-to: (message from Robert Weiner on Fri, 29 Sep 2017 14:48:32 -0400) Subject: Re: bug#28648: Make mode-line number display consistent when both line and col numbers are shown. References: <83ing177uv.fsf@gnu.org> <83o9pt5ptt.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: Date: Fri, 29 Sep 2017 17:55:42 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28648 Cc: eliz@gnu.org, 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rms@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > ​One person said that and there were differing opinions. RMS agreed to the > change but it is unclear which parts he really wanted. Richard, did you > really want the display of L and C removed when both are shown or was there > some other aspect to this change that you wanted? The better question is > what do you think now? I don't have any opinion now about this question. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 29 23:03:35 2017 Received: (at 28648) by debbugs.gnu.org; 30 Sep 2017 03:03:35 +0000 Received: from localhost ([127.0.0.1]:39839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy83z-0000wX-3E for submit@debbugs.gnu.org; Fri, 29 Sep 2017 23:03:35 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:35935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy83w-0000wF-Jt for 28648@debbugs.gnu.org; Fri, 29 Sep 2017 23:03:33 -0400 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v8U33Q7u012482 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 30 Sep 2017 03:03:26 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v8U33Pu2021020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 30 Sep 2017 03:03:25 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v8U33ONf010198; Sat, 30 Sep 2017 03:03:24 GMT MIME-Version: 1.0 Message-ID: <3556a36d-899e-4301-aa94-c25adf03c89a@default> Date: Fri, 29 Sep 2017 20:03:23 -0700 (PDT) From: Drew Adams To: Eli Zaretskii , rswgnu@gmail.com Subject: RE: bug#28648: Make mode-line number display consistent when both line and col numbers are shown. References: <83ing177uv.fsf@gnu.org> <83lgkx5nao.fsf@gnu.org> <83efqp5ktg.fsf@gnu.org> In-Reply-To: <83efqp5ktg.fsf@gnu.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4588.0 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: 28648 Cc: 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) Apologies (again) for not reading the thread. FYI, my library `modeline-posn.el' modifies the default value of `mode-line-position' to allow for some features and customizing. (I'm guessing that whatever changes you're making to the vanilla value will complicate things for me a bit, but that's life.) You _might_ want to take a look at `modeline-posn.el', to see if it or parts of it might help. It has, for example, option `modelinepos-style', which lets you show info about the size of the active region in the mode-line-position part of the mode-line. You can choose any of these: * "_ ch, _ l" (or "_ rows, _ cols", if a rectangle is selected) * "_ chars" * "_ bytes" * the result of a custom format string and any args it expects (There are some other features too, such as using a different face on the region info when the current command is acting on the active region. For example, a command such as `query-replace' acts differently when the region is active - when it is, the face changes to avert you to this fact.) The code is here, if you're interested: https://www.emacswiki.org/emacs/download/modeline-posn.el A description is here: https://www.emacswiki.org/emacs/ModeLinePosition From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 16:33:42 2017 Received: (at 28648) by debbugs.gnu.org; 19 Oct 2017 20:33:42 +0000 Received: from localhost ([127.0.0.1]:50763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5HVd-0007ZR-Vv for submit@debbugs.gnu.org; Thu, 19 Oct 2017 16:33:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5HVc-0007Z8-45 for 28648@debbugs.gnu.org; Thu, 19 Oct 2017 16:33:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5HVR-0000P2-Q1 for 28648@debbugs.gnu.org; Thu, 19 Oct 2017 16:33:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5HVR-0000Ov-LV for 28648@debbugs.gnu.org; Thu, 19 Oct 2017 16:33:29 -0400 Received: from mail-qt0-f177.google.com ([209.85.216.177]:49148) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1e5HVR-00083H-CX for 28648@debbugs.gnu.org; Thu, 19 Oct 2017 16:33:29 -0400 Received: by mail-qt0-f177.google.com with SMTP id f8so16071755qta.5 for <28648@debbugs.gnu.org>; Thu, 19 Oct 2017 13:33:29 -0700 (PDT) X-Gm-Message-State: AMCzsaVIlcWE2h4q1uu2z7VFjPfRKmIwOk+HOyX4Hq+HsjxjR289pC7n JQvqotoPLWdMBtgDKw0j+NeiSZD+w8JocWkS1A4= X-Google-Smtp-Source: ABhQp+QBuKv8obL5O3pRF7XJ5nUcz2s+R0hcbzE+5W0mb2xa8l47CLSXH7Dka+5vvDcPeZCF+2y0psRO0ouo33dQMg8= X-Received: by 10.200.54.220 with SMTP id b28mr3855814qtc.186.1508445208915; Thu, 19 Oct 2017 13:33:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.12.74 with HTTP; Thu, 19 Oct 2017 13:32:58 -0700 (PDT) In-Reply-To: References: From: Robert Weiner Date: Thu, 19 Oct 2017 16:32:58 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bug#28648: Acknowledgement (Make mode-line number display consistent when both line and col numbers are shown.) To: 28648@debbugs.gnu.org Content-Type: multipart/mixed; boundary="001a113755cad7a36c055bec4469" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 28648 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --001a113755cad7a36c055bec4469 Content-Type: multipart/alternative; boundary="001a113755cad7a36a055bec4467" --001a113755cad7a36a055bec4467 Content-Type: text/plain; charset="UTF-8" Attached is my full solution for this problem. Anyone is welcome to integrate any parts useful directly into Emacs. For now, it works as a loadable Lisp library. Bob --001a113755cad7a36a055bec4467 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Attached is my full solution for this problem.=C2=A0 Anyone is= welcome to integrate any parts useful directly into Emacs.
For now, it wo= rks as a loadable Lisp library.

Bob

--001a113755cad7a36a055bec4467-- --001a113755cad7a36c055bec4469 Content-Type: application/octet-stream; name="rsw-linecol.el" Content-Disposition: attachment; filename="rsw-linecol.el" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j8yx99100 Ozs7IHJzdy1saW5lY29sLmVsIC0tLSBVc2VyLWVkaXRhYmxlIG1vZGUtbGluZSBjb2x1bW4gYW5k IGxpbmUgbnVtYmVyIGRpc3BsYXkgZm9ybWF0cwo7Owo7OyBLZXl3b3JkczogICAgIGNvbnZlbmll bmNlLCB0b29scwo7Owo7OyBBdXRob3I6ICAgICAgIFJvYmVydCBXZWluZXIKOzsgRS1tYWlsOiAg ICAgICByc3dAZ251Lm9yZwo7Owo7OyBMYXN0LW1vZDogICAgIDExLU9jdC0xNyBhdCAxMjo1Mjo0 NiBieSBCb2IgV2VpbmVyCjs7Cjs7IENvcHlyaWdodCAoQykgMjAxNyAgVGhlIEZyZWUgU29mdHdh cmUgRm91bmRhdGlvbiwgSW5jLgo7OyBMaWNlbnNlZCB1bmRlciB0aGUgR05VIEdlbmVyYWwgUHVi bGljIExpY2Vuc2UsIHZlcnNpb24gMy4KOzsKOzsgVGhpcyBmaWxlIGlzIG5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ZSBhbmQgY29sdW1uIG51bWJlcmlu Zwo7OyAgICBvcHRpb25zIGNhbiBiZSBjb250cm9sbGVkIGZyb20gdGhlIG1vZGUtbGluZS4KOzsK OzsgICAgVG8gdXNlLCBzaW1wbHkgYWRkIHRoZSBmb2xsb3dpbmcgbGluZXMgdG8geW91ciBFbWFj cyBpbml0aWFsaXphdGlvbgo7OyAgICBmaWxlLCByZW1vdmluZyBhbnkgZmVhdHVyZXMgeW91IGRv bid0IHdhbnQgdG8gZW5hYmxlOgo7OyAgICAgICAgICAgIChhZGQtaG9vayAnYWZ0ZXItaW5pdC1o b29rCjs7ICAgICAgICAgICAgICAgICAgICAgIChsYW1iZGEgKCkKOzsgICAgICAgICAgICAgICAg ICAgICAgICAocmVxdWlyZSAncnN3LWxpbmVjb2wpCjs7ICAgICAgICAgICAgICAgICAgICAgICAg KGxpbmUtbnVtYmVyLW1vZGUgMSkgOyBFbmFibGUgbW9kZS1saW5lIGxpbmUgbnVtYmVyIGRpc3Bs YXkKOzsgICAgICAgICAgICAgICAgICAgICAgICAoY29sdW1uLW51bWJlci1tb2RlIDEpIDsgRW5h YmxlIG1vZGUtbGluZSBjb2x1bW4gbnVtYmVyIGRpc3BsYXkKOzsgICAgICAgICAgICAgICAgICAg ICAgICAoY29sdW1uLW51bWJlci16ZXJvLWJhc2VkLW1vZGUgMSkgOyBOdW1iZXIgZmlyc3QgY29s dW1uIGZyb20gMAo7OyAgICAgICAgICAgICAgICAgICAgICAgIChzaXplLWluZGljYXRpb24tbW9k ZSAxKSA7IERpc3BsYXkgYnVmZmVyIHNpemUgYWZ0ZXIgc2Nyb2xsIHBlcmNlbnRhZ2UKOzsKOzsg ICAgICAgICAgICAgICAgICAgICAgICA7OyBFbWFjcyAyNiBhbmQgYWJvdmU6IERpc3BsYXkgbGlu ZSBudW1iZXJzIGF0IHRoZSBsZWZ0IG9mIGV2ZXJ5IGJ1ZmZlciBsaW5lCjs7ICAgICAgICAgICAg ICAgICAgICAgICAgKGdsb2JhbC1kaXNwbGF5LWxpbmUtbnVtYmVycy1tb2RlIDEpCjs7ICAgICAg ICAgICAgICAgICAgICAgICAgKSkKCjs7OyBDb2RlOgoKOzs7ICoqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgo7Ozsg UmVxdWlyZW1lbnRzCjs7OyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKCjs7IEVuc3VyZSBFbWFjcyB2ZXJzaW9u IGlzIHN1ZmZpY2llbnQgZm9yIHVzYWdlIG9mIHRoaXMgbGlicmFyeS4KKGlmIChzdHJpbmctbGVz c3AgZW1hY3MtdmVyc2lvbiAiMjUuMCIpCiAgICAoZXJyb3IgIihyc3ctbGluZWNvbCk6IFRoaXMg cmVxdWlyZXMgR05VIEVtYWNzIDI1IG9yIGdyZWF0ZXI7IHlvdSBoYXZlICVzIiBlbWFjcy12ZXJz aW9uKSkKCjs7OyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioKOzs7IFB1YmxpYyB2YXJpYWJsZXMKOzs7ICoqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKgoKKG1ha3VuYm91bmQgJ21vZGUtbGluZS1jb2x1bW4tbGluZS1udW1iZXItZm9y bWF0cykKKGRlZnZhciBtb2RlLWxpbmUtY29sdW1uLWxpbmUtbnVtYmVyLWZvcm1hdHMKICAnKChs aW5lLWFuZC1jb2x1bW4wIC4gIiBMJWwsQyVjIikKICAgIChsaW5lLWFuZC1jb2x1bW4xIC4gIiBM JWwsQyVDIikKICAgIChsaW5lICAgICAgICAgICAgIC4gIiBMJWwiKQogICAgKGNvbHVtbjAgICAg ICAgICAgLiAiIEMlYyIpCiAgICAoY29sdW1uMS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bHVtbi1saW5l LW51bWJlci1tb2RlLW1hcAoJCSAgJ21vdXNlLWZhY2UgJ21vZGUtbGluZS1oaWdobGlnaHQKCQkg ICdoZWxwLWVjaG8gIkNvbHVtbiBudW1iZXJcblwKbW91c2UtMTogRGlzcGxheSBMaW5lIGFuZCBD b2x1bW4gTW9kZSBNZW51IikpKSkpKSkKICAiTW9kZSBsaW5lIGNvbnN0cnVjdCBmb3IgZGlzcGxh eWluZyB0aGUgcG9zaXRpb24gaW4gdGhlIGJ1ZmZlci4KTm9ybWFsbHkgZGlzcGxheXMgdGhlIGJ1 ZmZlciBwZXJjZW50YWdlIGFuZCwgb3B0aW9uYWxseSwgdGhlCmJ1ZmZlciBzaXplLCB0aGUgbGlu ZSBudW1iZXIgYW5kIHRoZSBjb2x1bW4gbnVtYmVyLiIpCihwdXQgJ21vZGUtbGluZS1wb3NpdGlv biAncmlza3ktbG9jYWwtdmFyaWFibGUgdCkKCihwcm92aWRlICdyc3ctbGluZWNvbCkK --001a113755cad7a36c055bec4469-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 15 11:09:25 2020 Received: (at 28648) by debbugs.gnu.org; 15 Sep 2020 15:09:26 +0000 Received: from localhost ([127.0.0.1]:60158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kICaD-0006z5-Lt for submit@debbugs.gnu.org; Tue, 15 Sep 2020 11:09:25 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kICaB-0006yn-19 for 28648@debbugs.gnu.org; Tue, 15 Sep 2020 11:09:24 -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=MAOi43Ef/ugK656RNPfKYWKPKFtoMlYBc+cgv2GwdPk=; b=uFcYrP7LOGgEWyl7lLmrAP1hnY 0/0iMGrmvKVnM17tjEDR9lFG9AANYYGzLlALRaHnGjantqXR0oY3trJM3Wup5OHMJe/blVY0ZeujC ZQ1eWXQ+sniioRym7Ri2kk9Fa1wkRIlUecmGM1uvLchEgHlbawkfIsKgwQzugL2ahBIg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kICa0-0001eh-IB; Tue, 15 Sep 2020 17:09:16 +0200 From: Lars Ingebrigtsen To: Robert Weiner Subject: Re: bug#28648: Acknowledgement (Make mode-line number display consistent when both line and col numbers are shown.) References: X-Now-Playing: Saito Koji's _433-1_: "433_047" Date: Tue, 15 Sep 2020 17:09:11 +0200 In-Reply-To: (Robert Weiner's message of "Thu, 19 Oct 2017 16:32:58 -0400") Message-ID: <87wo0v6prc.fsf@gnus.org> 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: Robert Weiner writes: > Attached is my full solution for this problem. Anyone is welcome to integrate any > parts useful directly into Emacs. > For now, it works as a loadable Lisp library. > > Bob > ;;; rsw-linecol.el --- [...] 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: 0.0 (/) X-Debbugs-Envelope-To: 28648 Cc: rswgnu@gmail.com, 28648@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Robert Weiner writes: > Attached is my full solution for this problem. Anyone is welcome to integrate any > parts useful directly into Emacs. > For now, it works as a loadable Lisp library. > > Bob > ;;; rsw-linecol.el --- User-editable mode-line column and line number display formats > ;; > ;; Keywords: convenience, tools [...] > (defvar mode-line-column-line-number-formats > '((line-and-column0 . " L%l,C%c") > (line-and-column1 . " L%l,C%C") > (line . " L%l") > (column0 . " C%c") > (column1 . " C%C")) This was a lot of code, and I think a greater degree of customisability than is warranted. I've taken some of these ideas and cooked them down into two variables: mode-line-position-line-format and mode-line-position-column-format -- and pushed to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 15 11:09:32 2020 Received: (at control) by debbugs.gnu.org; 15 Sep 2020 15:09:32 +0000 Received: from localhost ([127.0.0.1]:60161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kICaJ-0006zN-Tf for submit@debbugs.gnu.org; Tue, 15 Sep 2020 11:09:32 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kICaH-0006z3-Kp for control@debbugs.gnu.org; Tue, 15 Sep 2020 11:09:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=dAcIog/B1qPvDDvvR+tRx1gDnoOPdv5aCv8rRgv4wrU=; b=fulhkJupX3R0FgRXfeC+newCC5 SaIuHk4y6VtWq8wBFJsP3QeCPWWptm+kx6nu298I/NzJgbgmh1sVPFBTiWHcwTcd79WT9FaYU/60M U27fL4ss+NJeV2hvdD5DQLLFaSSzMRfp2AQo5VsyrxOMTSPP8utPihpB6cCGZSkcWH48=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kICa9-0001eo-Lr for control@debbugs.gnu.org; Tue, 15 Sep 2020 17:09:23 +0200 Date: Tue, 15 Sep 2020 17:09:20 +0200 Message-Id: <87v9gf6pr3.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #28648 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: tags 28648 fixed close 28648 28.1 quit 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: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 28648 fixed close 28648 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 15 13:27:18 2020 Received: (at 28648) by debbugs.gnu.org; 15 Sep 2020 17:27:18 +0000 Received: from localhost ([127.0.0.1]:60476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIEje-0006eX-F3 for submit@debbugs.gnu.org; Tue, 15 Sep 2020 13:27:18 -0400 Received: from mail-qv1-f41.google.com ([209.85.219.41]:38608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIEjc-0006eJ-6g for 28648@debbugs.gnu.org; Tue, 15 Sep 2020 13:27:17 -0400 Received: by mail-qv1-f41.google.com with SMTP id p15so2105257qvk.5 for <28648@debbugs.gnu.org>; Tue, 15 Sep 2020 10:27:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:in-reply-to:to; bh=6KDA46hAGWZo4K8zmr0K5NJ/2e8cT9YLHcVQ64JoEQ4=; b=ZRucZKmeb/wvFPwRPyF0nTDYAO6rhubjUnnKCVVeWycqqqyQoOHhsH9n4MVQirO8qJ Bcvh8yifXjKHnWwqHOTslBONSqXXAJiR9wdFGivZXuojOV8hPXuYjkcql4nYxV8DoUVz 4UOyOFhDo05xc8093tkvsfdU+PHa4XXZnrNB14dMtxVGreQyDxE73IM/8yPU/vjnmwGK Ictql5mwq6joTtuTVP7bPYDQkUpbtjlFdPzRtab6vrwsMH0iQCvYCa6d1EbEMnTlgN6O VQWJ0IFi90UbaHJ4lht3EIcUVrSpU3fq4ZOt4lp7tJwJtbH6dcHqSz4DClz8vs9DQfra Lv7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:in-reply-to:to; bh=6KDA46hAGWZo4K8zmr0K5NJ/2e8cT9YLHcVQ64JoEQ4=; b=ePwFBpr17NjMqHSuK3sgpCOQ2FOgZB5BuNR5pWTahY5ezrQ2VGl+etfI0JzTmMGGu4 7UnlEifoZAeu6352PedboaI5Ba45or9ofwua52J92M6eYZD9UsGS0075IpivX6t0A+QW Iho8yPH4MkHDTFroChXc7jtB2DC4wrr4/TH9J+hEaoPWLkCEpQJYyJeUI7mxlYbep+9b AczHITclqpjYtqgkI+4i06PHYjoz/QWJH8EQUEj3pyCLeGpXkHddOWhaGZwR9th8/W8q dcyEgMDpVWo+UAsRKW5jpgoRfehly4u9xkPTZ2WD+AZ9gGxYctT/QkhY8Q7RyCXkUzkI oLBQ== X-Gm-Message-State: AOAM5330faUDHOqKwIx1zbkdXm2Vv5vOchZL0st43MjvxHUbQbGATgzd ASoO9Kn/slGaubOAh9GFo1RNX8JcvGw= X-Google-Smtp-Source: ABdhPJyUxb1mfcrRsYbldkItPj1iegE6R2+eELaYJZF+vs4RWYYaHgpEZM/aS427bZt75lORi4fk+A== X-Received: by 2002:a0c:e788:: with SMTP id x8mr17480180qvn.27.1600190830455; Tue, 15 Sep 2020 10:27:10 -0700 (PDT) Received: from [192.168.10.145] (ool-2f14838b.dyn.optonline.net. [47.20.131.139]) by smtp.gmail.com with ESMTPSA id 192sm17730027qkn.9.2020.09.15.10.27.09 for <28648@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Sep 2020 10:27:09 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Robert Weiner Mime-Version: 1.0 (1.0) Subject: Re: bug#28648 acknowledged by developer (control message for bug #28648) Date: Tue, 15 Sep 2020 13:27:08 -0400 Message-Id: References: In-Reply-To: To: 28648@debbugs.gnu.org X-Mailer: iPhone Mail (17G80) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 28648 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Great, thanks. -- Bob > On Sep 15, 2020, at 11:10 AM, GNU bug Tracking System wrote: >=20 > =EF=BB=BFThis is an automatic notification regarding your bug report > #28648: Make mode-line number display consistent when both line and col nu= mbers are shown., > which was filed against the emacs package. >=20 > Thank you for your report, which has now been closed. > You can view the full report at > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28648 >=20 > If you require further information, please followup to 28648@debbugs.gnu.o= rg. >=20 > debbugs.gnu.org maintainers > (administrator, GNU bugs database) >=20 From unknown Thu Sep 11 21:35:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 14 Oct 2020 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator