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 16:15:43 -0400 Message-ID: References: <83ing177uv.fsf@gnu.org> <83lgkx5nao.fsf@gnu.org> <83efqp5ktg.fsf@gnu.org> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043a4108543880055a59b2b5" X-Trace: blaine.gmane.org 1506716234 22249 195.159.176.226 (29 Sep 2017 20:17:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 20:17:14 +0000 (UTC) Cc: 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 22:17:10 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 1dy1ie-0005HX-Op for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 22:17:09 +0200 Original-Received: from localhost ([::1]:36940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy1il-00032R-Ez for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 16:17:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy1id-00031E-Il for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 16:17:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy1iY-0005R2-F3 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 16:17:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59235) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dy1iY-0005Qv-BI for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 16:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dy1iY-0001ff-0w for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 16:17: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 20:17:01 +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.15067161876369 (code B ref 28648); Fri, 29 Sep 2017 20:17:01 +0000 Original-Received: (at 28648) by debbugs.gnu.org; 29 Sep 2017 20:16:27 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 13:15:43 -0700 (PDT) In-Reply-To: <83efqp5ktg.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:137645 Archived-At: --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--