number relative to the line showing point. The default is nil, which
doesn't display the line numbers.
-You can also customize the new variable 'display-lines-width' to
-specify a fixed minimal with of the area allocated to line-number
+The new face 'line-number' is used to display the line numbers.
+
+You can also customize the new variable 'display-line-number-width'
+to specify a fixed minimal with of the area allocated to line-number
display. The default is nil, meaning that Emacs will dynamically
calculate the area width, enlarging it as needed. Setting it to a
non-negative integer specifies that as the minimal width; selecting a
(const :tag "Relative line numbers"
:value relative))
"26.1")
- (display-line-width display
+ (display-line-number-width display
(choice
(const :tag "Dynamically computed"
:value nil)
/* Compute the required width if needed. */
if (!it->lnum_width)
{
- if (NATNUMP (Vdisplay_line_width))
- it->lnum_width = XFASTINT (Vdisplay_line_width);
+ if (NATNUMP (Vdisplay_line_number_width))
+ it->lnum_width = XFASTINT (Vdisplay_line_number_width);
else
{
/* Max line number to be displayed cannot be more than
Fmake_variable_buffer_local (Qdisplay_line_numbers);
DEFSYM (Qrelative, "relative");
- DEFVAR_LISP ("display-line-width", Vdisplay_line_width,
+ DEFVAR_LISP ("display-line-number-width", Vdisplay_line_number_width,
doc: /* Minimum width of space reserved for line number display.
A positive number means reserve that many columns for line numbers,
even if the actual number needs less space.
The default value of nil means compute the space dynamically.
Any other value is treated as nil. */);
- Vdisplay_line_width = Qnil;
+ Vdisplay_line_number_width = Qnil;
DEFVAR_BOOL ("inhibit-eval-during-redisplay", inhibit_eval_during_redisplay,
doc: /* Non-nil means don't eval Lisp during redisplay. */);