summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/regexp-opt.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-07-06 20:22:16 +0300
committerEli Zaretskii <eliz@gnu.org>2017-07-06 20:22:16 +0300
commit25bc3911615d1160d47287c023545c6e0587739f (patch)
treec32eaa3034c93867ae3c820731057505f8fc3f52 /lisp/emacs-lisp/regexp-opt.el
parentd5f8a3d03f6c0c98f3280d55a2d88ddb40aa1f3e (diff)
downloademacs-25bc3911615d1160d47287c023545c6e0587739f.tar.gz
emacs-25bc3911615d1160d47287c023545c6e0587739f.tar.bz2
emacs-25bc3911615d1160d47287c023545c6e0587739f.zip
Implement line numbers that disregard narrowing
* src/xdisp.c (display_count_lines_logically): New function, counts line numbers disregarding narrowing. Suggested by Andy Moreton <andrewjmoreton@gmail.com>. (maybe_produce_line_number): Call display_count_lines_logically instead of display_count_lines. Adapt BEGV, ZV, etc. to display-line-numbers-widen. (syms_of_xdisp) <display-line-numbers-widen>: New buffer-local variable. * lisp/cus-start.el (standard): Provide a customization form for display-line-numbers-widen. * lisp/frame.el: Add display-line-numbers-widen, display-line-numbers-current-absolute, and display-line-number-width to the list of variables that should trigger redisplay of the current buffer. * doc/emacs/display.texi (Display Custom): Document display-line-numbers-widen.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions