diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-06-30 16:37:57 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-06-30 16:37:57 +0300 |
commit | 7a762fbbfc1c05be8de3d253251f5e7b32da2c73 (patch) | |
tree | 6025b799826bec0371bd0a38d1bb4f536b773e4a /lisp/cus-start.el | |
parent | 0e4f2e01af1f4c51b958057d86e28c04cdefddb4 (diff) | |
download | emacs-7a762fbbfc1c05be8de3d253251f5e7b32da2c73.tar.gz |
Support displaying zero as the number of the current line
* src/xdisp.c (syms_of_xdisp)
<display-line-numbers-current-absolute>: New variable.
<display-line-numbers>: Doc fix.
(maybe_produce_line_number): Support nil value of
display-line-numbers-current-absolute.
* lisp/cus-start.el (standard): Add customization form for
display-line-numbers-current-absolute.
* etc/NEWS: Document recently introduced features.
Diffstat (limited to 'lisp/cus-start.el')
-rw-r--r-- | lisp/cus-start.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 599e7e57f32..ed17113c784 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -602,6 +602,13 @@ since it could result in memory overflow and make Emacs crash." :value 2 :format "%v")) "26.1") + (display-line-numbers-current-absolute + (choice + (const :tag "Display actual number of current line" + :value t) + (const :tag "Display zero as number of current line" + :value nil)) + "26.1") ;; xfaces.c (scalable-fonts-allowed display boolean "22.1") ;; xfns.c |