Implement 1-based column numbering in mode line
commit7df0777945efbab390cad0e87b92dd92e0d1853f
authorPerry E. Metzger <perry@piermont.com>
Wed, 10 May 2017 17:57:21 +0000 (10 20:57 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 10 May 2017 17:57:21 +0000 (10 20:57 +0300)
tree419c316a5f793159b1c78bd7f7923af75161fbf8
parente124e07faede2f2d4c6f16af84d796f6305cb8d9
Implement 1-based column numbering in mode line

* src/xdisp.c (decode_mode_spec): Implement the %C construct.

* lisp/bindings.el (column-number-indicator-zero-based): New
defcustom.
(mode-line-position): Use %C when
column-number-indicator-zero-based is nil.

* src/xdisp.c (syms_of_xdisp) <frame-title-format>:
* src/buffer.c (syms_of_buffer) <mode-line-format>:
* doc/lispref/modes.texi (%-Constructs):
* doc/lispref/frames.texi (Frame Titles): Document the %C
construct.

* doc/emacs/display.texi (Optional Mode Line): Document
'column-number-indicator-zero-based'.

* etc/NEWS: Mention 'column-number-indicator-zero-based' and the
%C construct.
doc/emacs/display.texi
doc/lispref/frames.texi
doc/lispref/modes.texi
etc/NEWS
lisp/bindings.el
src/buffer.c
src/xdisp.c