• 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
    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.
    4caf65d4
simple.el 359 KB