]> git.eshelyaron.com Git - emacs.git/commit
Enhance mode-line percentage offset facility, with "%o" and "%q"
authorAlan Mackenzie <acm@muc.de>
Sun, 21 May 2017 10:16:09 +0000 (10:16 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 21 May 2017 10:16:09 +0000 (10:16 +0000)
commitb0b02ca7f3e06d0f092df6f81babd1277bf93b0f
tree8d5d40e2150d975bd4a4a67e3190fe65b0f9ed37
parent9759b249e97d4b05644309fc70ae9277b347027e
Enhance mode-line percentage offset facility, with "%o" and "%q"

"%o" will display the percentage "travel" of the window through the buffer.
"%q" will display a combination of the percentage offsets of the top and
bottom of the window.  The new user option mode-line-percent-position will
facilitate selecting a setting for this part of the mode line.

* lisp/bindings.el (mode-line-percent-position): New customizable user option.
(mode-line-position): Use mode-line-percent-position in place of "%p", etc.

* src/xdisp.c (decode_mode_spec): Add handlers for "%o" and "%q".

* doc/lispref/modes.texi (Mode Line Variables): Document
mode-line-percent-position.
(%-Constructs): Document %o and %q.

* etc/NEWS: Add an entry for these new facilities.
doc/lispref/modes.texi
etc/NEWS
lisp/bindings.el
src/xdisp.c