GNU bug report logs -
#28648
Make mode-line number display consistent when both line and col numbers are shown.
Previous Next
Reported by: rswgnu <at> gmail.com
Date: Fri, 29 Sep 2017 16:01:02 UTC
Severity: wishlist
Tags: fixed
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #44 received at 28648 <at> debbugs.gnu.org (full text, mbox):
Robert Weiner <rsw <at> 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
This bug report was last modified 4 years and 333 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.