all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Robert Weiner <rsw@gnu.org>
Cc: rswgnu@gmail.com, 28648@debbugs.gnu.org
Subject: bug#28648: Acknowledgement (Make mode-line number display consistent when both line and col numbers are shown.)
Date: Tue, 15 Sep 2020 17:09:11 +0200	[thread overview]
Message-ID: <87wo0v6prc.fsf@gnus.org> (raw)
In-Reply-To: <CA+OMD9gvUW=hYGy+73d8+xb4DfHNY-0VCEGm6FNe7+2mdt+3oQ@mail.gmail.com> (Robert Weiner's message of "Thu, 19 Oct 2017 16:32:58 -0400")

Robert Weiner <rsw@gnu.org> 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





      reply	other threads:[~2020-09-15 15:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-29 15:59 bug#28648: Make mode-line number display consistent when both line and col numbers are shown Robert Weiner
     [not found] ` <handler.28648.B.15067008305588.ack@debbugs.gnu.org>
2017-10-19 20:32   ` bug#28648: Acknowledgement (Make mode-line number display consistent when both line and col numbers are shown.) Robert Weiner
2020-09-15 15:09     ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wo0v6prc.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=28648@debbugs.gnu.org \
    --cc=rsw@gnu.org \
    --cc=rswgnu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.