** You can now provide explicit field numbers in format specifiers.
For example, '(format "%2$s %1$s" "X" "Y")' produces "Y X".
- +++
+** 'comment-indent-function' values may now return a cons to specify a
+range of indentation.
+
+ +++
+ ** Emacs now supports optional display of line numbers in the buffer.
+ This is similar to what linum-mode provides, but much faster and
+ doesn't usurp the display margin for the line numbers. Customize the
+ buffer-local variable 'display-line-numbers' to activate this optional
+ display. If set to t, Emacs will display the number of each line
+ before the line. If set to 'relative', Emacs will display the line
+ number relative to the line showing point, with that line's number
+ displayed as absolute. If set to 'visual', Emacs will display a
+ relative number for every screen line, i.e. it will count screen lines
+ rather than buffer lines. The default is nil, which doesn't display
+ the line numbers.
+
+ In 'relative' and 'visual' modes, the variable
+ 'display-line-numbers-current-absolute' controls what number is
+ displayed for the line showing point. By default, this variable's
+ value is t, which means display the absolute line number for the line
+ showing point. Customizing this variable to a nil value will cause
+ Emacs to show zero instead, which preserves horizontal space of the
+ window in large buffers.
+
+ Line numbers are not displayed at all in minibuffer windows and in
+ tooltips, as they are not useful there.
+
+ The new face 'line-number' is used to display the line numbers. The
+ new face 'line-number-current-line' can be customized to display the
+ current line's number differently from all the other line numbers; by
+ default these two faces are identical.
+
+ 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 or shrinking it as needed.
+ Setting it to a non-negative integer specifies that as the minimal
+ width; selecting a value that is large enough to display all line
+ numbers in a buffer will then keep the line-number display area of
+ constant width at all times, if that is desired.
+
+ Lisp programs can disable line-number display for a particular screen
+ line by putting the 'display-line-numbers-disable' text property or
+ overlay property on the first character of that screen line. This is
+ intended for add-on packages that need a finer control of the display.
+
+ Lisp programs that need to know how much screen estate is used up for
+ line-number display in a window can use the new function
+ 'line-number-display-width'.
+
+ Linum mode and all similar packages are henceforth becoming obsolete.
+ Users and developers are encouraged to switch to this new feature
+ instead.
+
\f
* Editing Changes in Emacs 26.1