• Eli Zaretskii's avatar
    Fix vertical-motion across the place where line-number width changes · 4caf65d4
    Eli Zaretskii authored
    * 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
    * 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.
simple.el 359 KB