]> git.eshelyaron.com Git - emacs.git/commit
Fix vertical-motion across the place where line-number width changes
authorEli Zaretskii <eliz@gnu.org>
Fri, 7 Jul 2017 09:21:10 +0000 (12:21 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 7 Jul 2017 09:21:10 +0000 (12:21 +0300)
commit4caf65d4de591089c82ccf542a31ea5009a3c717
tree540c37b0e457351a6840d1060692569b1e6ac2e3
parent25bc3911615d1160d47287c023545c6e0587739f
Fix vertical-motion across the place where line-number width changes

* src/indent.c (line_number_display_width): New function,
refactored from line-number width calculations in vertical-motion.
(Fvertical_motion): Call line_number_display_width when the width
of line-number display is needed.
(Fline_number_display_width): New defun.
(syms_of_indent): Defsubr it.

* doc/lispref/display.texi (Size of Displayed Text): Document
line-number-display-width.

* etc/NEWS: Mention line-number-display-width.

* lisp/simple.el (last--line-number-width): New internal variable.
(line-move-visual): Use it to adjust temporary-goal-column when
line-number display changes its width.
doc/lispref/display.texi
etc/NEWS
lisp/simple.el
src/indent.c