What's new in Emacs 31.1

Emacs 31.1 Released Aug 24, 2026

The fact that TS demands a special major mode to work; and that said mode is often a thread-bare re-implementation of the original. That installing grammars, especially on Windows, is a giant pain in the neck, as you have to not only thread the needle with the exacting ABI version of the tree-sitter library itself, but also ensure you just the exacting version of each language grammar, or everything goes up in smoke.

Installation Changes in Emacs 31.1

unexec dumper removed. The traditional unexec dumper, deprecated since Emacs 27, has been

The portable dumper now works on m68k a.out targets.

Emacs's old 'ctags' program is no longer built or installed. You are encouraged to use Universal Ctags instead. For now, to get the old 'ctags' behavior you can can run 'etags --ctags' or use a shell script named 'ctags' that runs 'etags --ctags "$@"'.

Changed GCC default options on 32-bit x86 systems. When using GCC 4 or later to build Emacs on 32-bit x86 systems, 'configure' now defaults to using the GCC options '-mfpmath=sse' (if the host system supports SSE2) or '-fno-tree-sra' (if not). These GCC options work around GCC bug 58416, which can cause Emacs to behave incorrectly in rare cases.

New configure option '--with-systemduserunitdir'. This allows specifying the directory where the user unit file for systemd is installed; the default is '${prefix}/usr/lib/systemd/user'.

Startup Changes in Emacs 31.1

In compatible terminals, 'xterm-mouse-mode' is turned on by default. For these terminals the mouse will work by default. A compatible terminal is one that supports Emacs setting and getting the OS selection data (a.k.a. the clipboard) and mouse button and motion events. With 'xterm-mouse-mode' enabled, you must use Emacs keybindings to copy to the OS selection instead of terminal-specific keybindings.

You can keep the old behavior by customizing 'xterm-mouse-mode' to nil.

site-start.el is now loaded before the user's early init file. Previously, the order was early-init.el, site-start.el and then the user's regular init file, but now site-start.el comes first. This allows site administrators to customize things that can normally only be done from early-init.el, such as adding to 'package-directory-list'.

New User Lisp directory feature. If you have a subdirectory "user-lisp/" in your Emacs configuration directory, then Lisp files in it and any subdirectories are now recursively byte-compiled, scraped for autoload cookies and added to 'load-path'.

You can disable the feature by setting 'user-lisp-auto-scrape' to nil, and you can customize the option 'user-lisp-directory' to process some other directory instead. There is also a new command 'prepare-user-lisp' that you can invoke at any time. See the Info node "(emacs) User Lisp Directory" for more details.

The first client frame now shows warnings from daemon startup. When there are warnings emitted during Emacs startup, usually due to problems in your initialization file, these are shown in a "*Warnings*" buffer. Until now such warnings were not made visible in the case that Emacs was started as a daemon. Now the first frame after daemon startup will show the "*Warnings*" buffer. So for example, starting Emacs with a command like 'emacsclient -a "" -c' will now show "*Warnings*" just like a plain invocation of 'emacs' would.

Changes in Emacs 31.1

'line-spacing' now supports specifying spacing above the line. Previously, only spacing below the line could be specified. The user option can now be set to a cons cell to specify spacing both above and below the line, which allows you to vertically center text.

New face 'margin' for the window margin display. A new basic face 'margin' is used by default for text displayed in the left and right margin areas, which are used by various packages for per-line annotations. Its background defaults to the frame default background, so existing behavior is unchanged for users who do not customize this new face.

Display strings shown in the margins now inherit unspecified face attributes from the 'margin' face, if the string itself does not fully specify its face. If your code relied on the face of the underlying buffer text to serve as a default for any unspecified face attributes of strings displayed in the margin, you must now apply those face attributes to the margin string itself using 'propertize'.

'prettify-symbols-mode' attempts to ignore undisplayable characters. Previously, such characters would be rendered as, e.g., white boxes.

'standard-display-table' now has more extra slots. 'standard-display-table' has been extended to allow specifying glyphs that are used for borders around child frames and menu separators on TTY

Call the command 'standard-display-unicode-special-glyphs' to set up the 'standard-display-table's extra slots with Unicode characters. See the documentation of that command to see which slots of the display table it

Child frames are now supported on TTY frames. This supports use-cases like Posframe, Corfu, and child frames acting like tooltips. To enable tooltips on TTY frames, call 'tty-tip-mode'.

The presence of child frame support on TTY frames can be checked with '(featurep 'tty-child-frames)'.

Recent versions of Posframe and Corfu are known to use child frames on TTYs if they are supported.

Several font-lock face variables are now obsolete. The following variables are now obsolete: 'font-lock-builtin-face', 'font-lock-comment-delimiter-face', 'font-lock-comment-face', 'font-lock-constant-face', 'font-lock-doc-face', 'font-lock-doc-markup-face', 'font-lock-function-name-face', 'font-lock-keyword-face', 'font-lock-negation-char-face', 'font-lock-preprocessor-face', 'font-lock-string-face', 'font-lock-type-face', 'font-lock-variable-name-face', and 'font-lock-warning-face'.

These variables contributed both to confusion about the relation between faces and variables, and to inconsistency when major mode authors used one or the other (sometimes interchangeably). We always recommended using faces directly, and not creating variables going by the same name.

If you have customized these variables, you should now customize the corresponding faces instead, using something like:

M-x customize-face RET font-lock-string-face RET

If you have been using these variables in Lisp code (for example, in font-lock rules), simply quote the symbol, to use the face directly instead of its now-obsolete variable.

New char-table 'special-mirror-table' for mirroring special glyphs. This char-table is used to mirror special glyphs (truncation and continuation) when the user has defined an alternative representation for those characters via display tables.

find-func.el commands now have history enabled. The 'find-function', 'find-library', 'find-face-definition', and 'find-variable' commands now allow retrieving previous input using the usual minibuffer history commands. Each command has a separate history.

New minor mode 'find-function-mode' replaces 'find-function-setup-keys'. The new minor mode defines the keys at a higher precedence level than the old function, one more usual for a minor mode. To restore the old behavior, customize 'find-function-mode-lower-precedence' to non-nil.

'find-function' can now find 'cl-defmethod' invocations inside macros.

New minor mode 'prettify-special-glyphs-mode'. The new minor mode prettifies the special character glyphs (truncation and continuation) on TTY frames (and GUI frames without fringes). You can customize the associated new face 'special-glyphs'.

Minibuffer and Completions

Support for immediate display of the "*Completions*" buffer. Whenever a minibuffer with completion is opened, then if the completion table sets the 'eager-display' completion property to non-nil, the "*Completions*" buffer will now be displayed immediately. This property can be overridden for different completion categories by customizing 'completion-category-overrides'. Alternatively, the new user option 'completion-eager-display' can be set to t to force eager display of "*Completions*" for all minibuffers, or nil to suppress this for all minibuffers.

Support for updating "*Completions*" as you type. If the "*Completions*" buffer is displayed and the completion table sets the completion property 'eager-update' to non-nil, then the "*Completions*" buffer will be updated as you type. This property can be overridden for different completion categories by customizing 'completion-category-overrides'. Alternatively, the new user option 'completion-eager-update' can be set to t to make "*Completions*" always be updated as you type, or nil to suppress this always. Note that for large or inefficient completion tables, this can slow down typing.

'RET' chooses the completion selected with 'M-/M-'. If a completion candidate is selected with 'M-' or 'M-', typing 'RET' will exit completion with that candidate as the result. This works both in minibuffer completion and for in-buffer completion. This feature supersedes 'minibuffer-completion-auto-choose', which previously provided similar behavior; that variable is now nil by

Support for completion category inheritance. You can now define completion categories that inherit properties from existing categories, using the new function 'define-completion-category'.

New optional value of 'minibuffer-visible-completions'. If the value of this option is 'up-down', only the '' and '' arrow keys move point between candidates shown in the "*Completions*" buffer display, while '' and '' arrows move point in the minibuffer.

New user option 'completion-pcm-leading-wildcard'. This option configures how the partial-completion style does completion. It defaults to nil, which preserves the existing behavior. When it is set to t, the partial-completion style behaves more like the substring style, in that the input can match a candidate anywhere in the candidate

'completion-styles' now can contain lists of bindings. In addition to a symbol naming a completion style, an element of 'completion-styles' can now be a list of the form '(STYLE ((VARIABLE VALUE) ...))' where STYLE is a symbol naming a completion style. VARIABLE will be bound to VALUE (without evaluating it) while the style is executing. This allows multiple references to the same style with different values for completion-affecting variables like 'completion-pcm-leading-wildcard' or 'completion-ignore-case'. This also applies to the styles configuration in 'completion-category-overrides' and 'completion-category-defaults'.

Navigating "*Completions*" now accommodates 'completions-format'. When 'completions-format' is set to 'vertical', typing 'n', 'TAB' or 'M-' in the "*Completions*" buffer (the latter also in the minibuffer) now moves point to the completion candidate in the next line in the current column, and wraps to the next column after the last completion candidate of the current column. Likewise, typing 'p', 'S-TAB' or 'M-' moves point to the completion candidate in the previous line or wraps to the previous column. Previously, these keys ignored the vertical format, i.e., they moved point only to the item in the same line of the next or previous column, in accordance with the default horizontal format. In the vertical format, typing '' and '' in the "*Completions*" buffer (and when 'minibuffer-visible-completions' is non-nil, also in the minibuffer) moves point only within the current line, analogously to how, in the horizontal format, '' and '' move point only within the current column.

Selected completion candidate is preserved across "*Completions*" updates. When the window point is on a completion candidate in the "*Completions*" buffer (because of 'minibuffer-next-completion' or for any other reason), it will remain on that candidate after the "*Completions*" is updated with a new list of completions. The candidate is deselected when the "*Completions*" buffer is hidden.

"*Completions*" is now displayed faster when there are many candidates. As before, if there are more completion candidates than can be displayed in the current frame, only a subset of the candidates is displayed. This process is now faster: only that subset of the candidates is actually inserted into "*Completions*" until you run a command which interacts with the text of the "*Completions*" buffer. This optimization only applies when 'completions-format' is 'horizontal' or 'one-column'.

New user option 'crm-prompt' for 'completing-read-multiple'. This option configures the prompt format of 'completing-read-multiple'. By default, the prompt indicates to the user that the completion command accepts a comma-separated list. The prompt format can include the separator description and the separator string, which are both stored as text properties of the 'crm-separator' regular expression.

New user option 'completion-preview-sort-function'. This option controls how Completion Preview mode sorts completion candidates. If you use this mode together with an in-buffer completion popup interface, such as the interfaces that the GNU ELPA packages Corfu and Company provide, you can set this option to the same sort function that your popup interface uses for a more integrated experience.

('completion-preview-sort-function' was already present in Emacs 30.1, but as a plain Lisp variable, not a user option.)

New user option 'completion-preview-inhibit-functions'. This option provides fine-grained control over Completion Preview mode activation. You can use it to specify arbitrary conditions in which to inhibit the mode's operation.

New mode 'minibuffer-nonselected-mode'. This mode, enabled by default, directs attention to the active minibuffer window in the case the minibuffer window is no longer selected, but still waiting for input. This uses the new 'minibuffer-nonselected' face.

'read-multiple-choice' now uses the minibuffer to read a character. It still can use 'read-key' when the variable 'read-char-choice-use-read-key' is non-nil.

'map-y-or-n-p' now uses the minibuffer to read a character. It still can use 'read-key' when the variable 'y-or-n-p-use-read-key' is non-nil.

'flex' completion style rewritten to be faster and more accurate. Completion and highlighting use a new, superior algorithm. For example, pattern "scope" now ranks 'elisp-scope-*' functions well above 'dos-codepage' and 'test-completion'. Pattern "botwin" finds 'menu-bar-bottom-window-divider' before 'ibuffer-other-window'.

New mode 'mouse-shift-adjust-mode' extends selection with 'S-'. When enabled, you can use the left mouse button with the '' modifier to extend the boundaries of the active region by dragging the mouse pointer.

'context-menu-mode' now includes a "Send to..." menu item. The menu item enables sending current file(s) or region text to external (non-Emacs) applications or services. See send-to.el for customizations.

The mouse now drags lines in character increments again. Dragging a horizontal or vertical line like the mode line or the lines dividing side-by-side windows now happens in increments of the corresponding frame's character size again. This is the behavior described in the manual and was the default behavior before 'window-resize-pixelwise' was added for Emacs 24.1. To drag in pixel increments, as with Emacs 24 through Emacs 30, customize 'window-resize-pixelwise' to t.

New commands to modify window layouts of frames. 'window-layout-rotate-clockwise' ('C-x w r ') and its counterpart 'window-layout-rotate-anticlockwise' ('C-x w r ') rotate an entire window layout. 'window-layout-flip-topdown' ('C-x w f ', 'C-x w f ') and 'window-layout-flip-leftright' ('C-x w f ', 'C-x w f ') flip the window layout vertically and horizontally. 'window-layout-transpose' ('C-x w t') reorganizes windows such that every horizontal split becomes a vertical split and vice versa. 'rotate-windows' ('C-x w o ') and its counterpart 'rotate-windows-back' ('C-x w o ') rotate windows in cyclic

New user option 'rotate-windows-change-selected'. This controls whether 'rotate-windows' and 'rotate-windows-back' change the selected window. If nil, the selected window does not change. The default is t, which means the new selected window will be the one that winds up at the location of the previously-selected window.

New user option 'transpose-dedicated-windows'. This controls how functions transposing or rotating windows handle dedicated windows. The default is nil, which causes these function to signal an error if they encounter a dedicated window.

Windmove commands now move to skipped windows if invoked twice in a row. The new user option 'windmove-allow-repeated-command-override' controls this behavior: if it is non-nil, invoking the same windmove command twice overrides the 'no-other-window' property, allowing navigation to windows that would normally be skipped. The default is t; customize it to nil if you want the old behavior.

New hook 'window-deletable-functions'. This abnormal hook gives its client a way to save a window from being deleted implicitly by functions like 'kill-buffer', 'bury-buffer' and 'quit-restore-window'.

Buffer-local window change functions now run in their buffers. Running the buffer-local version of each of the abnormal hooks 'window-buffer-change-functions', 'window-size-change-functions', 'window-selection-change-functions' and 'window-state-change-functions' will make the respective buffer temporarily current while running the

'window-buffer-change-functions' is run for removed buffers too. The buffer-local version of 'window-buffer-change-functions' may now be run twice: once for the buffer removed from the window and once for the buffer now shown in that window.

New user option 'quit-window-kill-buffer'. This option specifies whether 'quit-window' should preferably kill or bury the buffer shown by the window to quit. The default is nil. Customize it to t to always kill the buffer; customize to a list of major modes to kill if the buffer's major mode is one of those.

New user option 'kill-buffer-quit-windows'. This option has 'kill-buffer' call 'quit-restore-window' to handle the further destiny of any window showing the buffer to be killed.

'split-window' can optionally resurrect deleted windows. A new optional argument REFER of 'split-window' makes it possible to, instead of making a new window object, reuse an existing, deleted one. This can be used to preserve the identity of windows when swapping or transposing them.

New window parameter 'quit-restore-prev'. This parameter is set up by 'display-buffer' when it detects that the window used already has a 'quit-restore' parameter. Its presence gives 'quit-restore-window' a way to undo a sequence of buffer display operations more intuitively.

'quit-restore-window' handles new values for BURY-OR-KILL argument. The values 'killing' and 'burying' are like 'kill' and 'bury' but assume that the actual killing or burying of the buffer is done by the caller.

New user option 'quit-restore-window-no-switch'. With this option set, 'quit-restore-window' will delete its window more aggressively rather than switching to some other buffer in it.

The user option 'display-comint-buffer-action' has been removed. It has been obsolete since Emacs 30.1. Use '(category . comint)' instead. Another user option 'display-tex-shell-buffer-action' has been removed too, for which you can use '(category . tex-shell)'.

New user option 'split-window-preferred-direction'. Functions called by 'display-buffer' split the selected window when they need to create a new window. A window can be split either vertically (one below the other) or horizontally (side by side). This new option determines which direction will be tried first in the case that both directions are possible according to the values of 'split-width-threshold' and 'split-height-threshold'. The default value is 'longest', which means to prefer to split horizontally if the window's frame is a "landscape" frame, and vertically if it is a "portrait" frame. (A frame is considered to be portrait if its vertical dimension in pixels is greater or equal to its horizontal dimension, otherwise it is considered to be landscape.) Previous versions of Emacs always tried to split vertically first, so to get the previous behavior, you can customize this option to 'vertical'. The value 'horizontal' always prefers the horizontal split.

The default value of 'split-width-threshold' is reduced from 160 to 150. We believe that, after splitting, text filled to 75 columns remains comfortable to read.

New optional argument INDIRECT for 'get-buffer-window-list'. With this argument non-nil, 'get-buffer-window-list' will include in the return value windows whose buffers share their text with BUFFER-OR-NAME.

New 'display-buffer' action alist entry 'reuse-indirect'. With such an entry, 'display-buffer-reuse-window' may also choose a window whose buffer shares text with the buffer to display.

New variable 'window-state-normalize-buffer-name'. When bound to non-nil, 'window-state-get' will normalize 'uniquify' managed buffer names by removing 'uniquify' prefixes and suffixes. This helps to restore window buffers across Emacs sessions.

New action alist entry 'this-command' for 'display-buffer'. You can use this in 'display-buffer-alist' to match buffers displayed during the execution of particular commands.

New command 'other-window-backward' ('C-x O'). This moves in the opposite direction of 'other-window' and is for its default keybinding consistent with 'repeat-mode'.

New functions 'combine-windows' and 'uncombine-window'. 'combine-windows' is useful to make a new parent window for several adjacent windows and subsequently operate on that parent. 'uncombine-window' can then be used to restore the window configuration to the state it had before running 'combine-windows'.

New function 'window-cursor-info'. This function returns a vector of pixel-level information about the physical cursor in a given window, including its type, coordinates, dimensions, and ascent.

New function 'frame-deletable-p'. If this function returns nil, the following call to 'delete-frame' might fail to delete its argument FRAME or might signal an error. It is therefore advisable to use this function as part of a condition that determines whether to call 'delete-frame'.

New function 'frame-use-time'. This function is the frame equivalent of the function 'window-use-time' for a window. The result is the 'window-use-time' of the frame's most recently used window.

New functions 'get-mru-frames' and 'get-mru-frame'. 'get-mru-frames' returns a list of frames sorted by their most recent use time, among all frames, or among those visible or iconified on the same terminal as the selected frame. Child frames can be excluded. A single frame can be excluded (e.g. the selected frame). 'get-mru-frame' returns the single most recently used frame.

After deleting, 'delete-frame' now selects the most recently used frame. Previously, after deleting a specified frame, 'delete-frame' would select the oldest visible frame on the same terminal. To revert to the old behavior, set the new user option 'delete-frame-choose-selected'

New value 'force' for user option 'frame-inhibit-implied-resize'. This will inhibit implied resizing while a new frame is made. It can be useful on tiling window managers where the initial frame size should be specified by external means.

New user option 'alter-fullscreen-frames'. This option is useful to maintain a consistent state when attempting to resize fullscreen frames. It defaults to 'inhibit' on NS builds which means that a fullscreen frame will not change size. It defaults to nil everywhere else, which means that the window manager is supposed to either resize the frame and change the fullscreen status accordingly, or keep the frame size unchanged. The value t means to first reset the fullscreen status and then resize the frame.

New functions to set frame size and position in one compound step. 'set-frame-size-and-position' sets the new size and position of a frame in one compound step. Both size and position can be specified as with the corresponding frame parameters 'width', 'height', 'left' and 'top'. 'set-frame-size-and-position-pixelwise' is similar but has a more restricted set of values for specifying size and position.

New commands 'split-frame' and 'merge-frames'. 'split-frame' moves a specified number of windows from an existing frame to a newly-created frame. 'merge-frames' merges all windows from two frames into one of these frames and deletes the other one.

Frames can now be renamed to "F" on text terminals. Unlike with other frame names, an attempt to rename to "F" signals an error when a frame of that name already exists.

New frame parameters 'cloned-from' and 'undeleted'. The frame parameter 'cloned-from' is set to the frame from which the new frame is cloned using the command 'clone-frame'.

The frame parameter 'undeleted' is set to t when a frame is undeleted using the command 'undelete-frame'.

These are useful if you need to detect a cloned or undeleted frame in hooks like 'after-make-frame-functions' and 'server-after-make-frame-hook'.

Frames now have unique ids and the new function 'frame-id'. Each non-tooltip frame is assigned a unique integer id. This allows you to unambiguously identify frames even if they share the same name or title. When 'undelete-frame-mode' is enabled, each deleted frame's id is stored for resurrection. The function 'frame-id' returns a frame's id (in C, use the frame struct member 'id').

New commands 'select-frame-by-id', 'undelete-frame-by-id'. The command 'select-frame-by-id' selects a frame by ID and undeletes it if deleted. The command 'undelete-frame-by-id' undeletes a frame by its ID. When called interactively, both functions prompt for an ID.

New definitions for mode line faces on dark backgrounds. The faces 'mode-line' and 'mode-line-highlight' now have separate definitions for dark backgrounds. Previously, these two faces looked the same with both light and dark background modes. To get the previous visuals for these two faces, customize them to have the colors "grey75" and "grey40", respectively, regardless of the background mode.

New user option 'mode-line-collapse-minor-modes'. This is a new, built-in facility to hide minor mode lighters. If non-nil, minor mode lighters on the mode line are collapsed into a single button. The value can also be a list to specify minor mode lighters to hide or show. The default value is nil, which retains the previous behavior of showing all minor mode lighters.

New user option 'mode-line-modes-delimiters'. This option allows changing or removing the delimiters shown around the major mode and list of minor modes in the mode line. The default retains the existing behavior of using parentheses.

New minor mode 'mode-line-invisible-mode'. This minor mode makes the mode line of the current buffer invisible. The command 'mode-line-invisible-mode' toggles the visibility of the current-buffer's mode line. The default is to show the mode line of every buffer.

The standard mode line no longer specifies minimum widths. The default values for the 'mode-line-position' variable and 'mode-line-format' user option no longer specify any minimum widths. If you use a proportional font for your mode line, you may need to customize the values of these variables to include minimum widths again.

Tab Bars and Tab Lines

New commands 'split-tab' and 'merge-tabs'. 'split-tab' moves a specified number of windows from an existing tab to a newly created tab. 'merge-tabs' merges all windows from two tabs into one of these tabs, and closes the other.

New abnormal hook 'tab-bar-auto-width-functions'. This hook allows you to control which tab-bar tabs are auto-resized.

'mouse-face' properties are now supported on the 'tab-bar'. 'tab-bar' tab buttons are now highlighted when the mouse pointer hovers over them. You can customize the new face 'tab-bar-tab-highlight'.

New abnormal hook 'tab-bar-post-undo-close-tab-functions'. This hook allows you to operate on a reopened tab.

This is useful when you define custom tab parameters that may need adjustment when a tab is restored, without resorting to advice.

Tabs are now closed upon releasing the middle mouse button. Previously, closing the tab-bar's tabs occurred upon pressing the

New user option 'tab-bar-define-keys'. This controls which key bindings tab-bar creates. Values are t, the default, which defines all keys and is backwards compatible, 'numeric' for tab number selection only, 'tab' for the 'TAB' and 'S-TAB' keys only, and nil for none.

This is useful to avoid key binding conflicts, such as when folding in outline mode using 'TAB' keys, or when a user wants to define her own tab-bar keys without first having to remove the defaults.

New variable 'tab-bar-format-tab-help-text-function'. This variable may be overridden with a user-provided function to customize the help text for tabs displayed on the tab-bar. Help text is normally shown in the echo area or via tooltips. See the variable's docstring for the arguments passed to a help-text function.

New variable 'tab-bar-truncate'. When non-nil, it truncates the tab bar, and therefore prevents wrapping and resizing the tab bar to more than one line.

New user option 'tab-line-define-keys'. When t, the default, it redefines window buffer switching keys such as 'C-x ' and 'C-x ' to tab-line specific variants for switching tabs.

New command 'tab-line-move-tab-forward' ('C-x M-'). Together with the new command 'tab-line-move-tab-backward' ('C-x M-'), it can be used to move the current tab on the tab line to a different position.

New command 'tab-line-close-other-tabs'. It is bound to the tab's context menu item "Close other tabs".

New user option 'tab-line-exclude-buffers'. This user option controls where 'tab-line-mode' should not be enabled in a buffer. The value must be a condition which is passed to 'buffer-match-p'.

New user option 'tab-line-close-modified-button-show'. With this user option, if non-nil (the default), the tab close button will change its appearance if the tab's selected buffer has been

New user option 'tab-line-tabs-window-buffers-filter-function'. This user option controls which buffers should appear in the tab line. By default, this is set so as to not filter out any buffers.

New faces 'tab-line-active' and 'tab-line-inactive'. These inherit from the 'tab-line' face, but the faces actually used on the tab lines are now these two: the selected window uses 'tab-line-active', and non-selected windows use 'tab-line-inactive'.

New binding 'C-h u' for 'apropos-user-option'.

IDLWAVE has moved to GNU ELPA. The version included with Emacs is out-of-date, and is now marked as obsolete. Use 'list-packages' to install the 'idlwave' package from GNU ELPA instead.

New faces 'header-line-active' and 'header-line-inactive'. These inherit from the 'header-line' face, but the faces actually used on the header lines are now these two: the selected window uses 'header-line-active', and non-selected windows use 'header-line-inactive'.

In 'customize-face', the "Font family" attribute now supports completion.

'process-adaptive-read-buffering' is now nil by default. Setting this variable to a non-nil value reduces performance and leads to wrong results in some cases. We believe that it is no longer useful; please contact us if you still need it for some reason.

'byte-compile-cond-use-jump-table' is now obsolete.

Modified settings for an enabled theme now apply immediately. Evaluating a 'custom-theme-set-faces' or 'custom-theme-set-variables' call for an enabled theme causes the settings to apply immediately, without a need to re-load the theme.

'describe-variable' now automatically says if 'setopt' is needed. If a user option has a defcustom ':set' function, users will normally need to set it with 'setopt' for it to take an effect. If the docstring doesn't already mention 'setopt', the 'describe-variable' command will now add a note about this automatically.

New user option 'eldoc-help-at-pt' to show help at point via ElDoc. When enabled, display the 'help-at-pt-kbd-string' via ElDoc. This setting is an alternative to 'help-at-pt-display-when-idle'.

New user option 'native-comp-async-on-battery-power'. Customize this to nil to disable starting new asynchronous native compilations while AC power is not connected.

New user option 'show-paren-not-in-comments-or-strings'. If this option is non-nil, it tells 'show-paren-mode' not to highlight parens inside comments and strings. If set to 'all', 'show-paren-mode' will never highlight parens that are inside comments or strings. If set to 'on-mismatch', mismatched parens inside comments and strings will not be highlighted. If set to nil (the default), highlight parens wherever

New user option 'view-lossage-auto-refresh'. If this option is non-nil, the lossage buffer of 'view-lossage' will be refreshed automatically for each new input keystroke and command

Change in SVG foreground color handling. SVG images no longer have the 'fill' attribute set to the value of ':foreground' or the current text foreground color. The 'currentcolor' CSS attribute is still set, as before.

This change should result in more consistent display of SVG images.

To use the ':foreground' or current text color ensure the 'fill' attribute in the SVG is set to 'currentcolor', or set the image spec's ':css' value to 'svg {fill: currentcolor;}'.

Errors signaled by 'emacsclient' connections can now enter the debugger. If 'debug-on-error' is non-nil, errors signaled by Lisp programs executed by 'emacsclient' connections will now enter the Lisp debugger and show a backtrace. If 'debug-on-error' is nil, these errors will be sent to 'emacsclient', as before, and will be displayed on the terminal from which 'emacsclient' was invoked.

Empty string arguments to emacsclient are no longer ignored. Emacs previously discarded arguments to emacsclient of zero length, such as in 'emacsclient --eval "(length (pop server-eval-args-left))" ""'. These are no longer discarded.

Emacs now uses the 'setrgbf' and 'setrgbb' terminfo capabilities. Emacs now uses 24-bit colors on terminals that support the 'setrgbf' and 'setrgbb' user-defined terminfo capabilities. These are supported by more terminals and applications than the old capabilities, 'setf24' and 'setb24', which are now obsolete.

New user option 'xterm-update-cursor' to update cursor display on TTYs. When enabled, Emacs sends Xterm escape sequences on Xterm-compatible terminals to update the cursor's appearance. Emacs can update the cursor's shape and color. For example, if you use a purple bar cursor on graphical displays then when this option is enabled Emacs will use a purple bar cursor on compatible terminals as well. See the Info node "(emacs) Cursor Display" for more information.

New command 'copy-theme-options'. You can use this command to copy options from a theme into your user configuration.

New user option 'multiple-terminals-merge-keyboards'. Customizing this option to non-nil disables entering single-keyboard mode in most cases in which Emacs would by default enter that mode. This can make things work better for some cases of X forwarding; see the Info node "(emacs) Multiple Displays".

Emacs now comes with Org v9.8. See the file "etc/ORG-NEWS" for user-visible changes in Org.

New user option 'compilation-search-extra-path'. compile.el will now use paths specified in both 'compilation-search-extra-path' and 'compilation-search-path' when searching. 'compilation-search-extra-path' is consulted first. One possible use case for this option is to add new search paths on a per-project basis with directory-local variables.

Editing Changes in Emacs 31.1

Commands for keyboard translation. 'key-translate' is now interactive. It prompts for a key to translate from, and another to translate to, and sets 'keyboard-translate-table'. The new command 'key-translate-remove' prompts for a key/translation pair, with 'completing-read', and removes the translation from the translation table.

Internationalization

Emacs now supports Unicode Standard version 17.0.

New input method 'greek-polytonic'. This input method has support for polytonic and archaic Greek characters.

New language environment and input method for Tifinagh. The Tifinagh script is used to write the Berber languages.

New input methods for Northern Iroquoian languages. Input methods are now implemented for Haudenosaunee languages in the Northern Iroquoian language family: 'mohawk-postfix' (Mohawk [Kanien’kéha / Kanyen’kéha / Onkwehonwehnéha]), 'oneida-postfix' (Oneida [Onʌyote’a·ká· / Onyota’a:ká: / Ukwehuwehnéha]), 'cayuga-postfix' (Cayuga [Gayogo̱ho:nǫhnéha:ˀ]), 'onondaga-postfix' (Onondaga [Onųdaʔgegáʔ]), 'seneca-postfix' (Seneca [Onödowá’ga:’]), and 'tuscarora-postfix' (Tuscarora [Skarù·ręʔ]). Additionally, there is a general-purpose 'haudenosaunee-postfix' input method to facilitate writing in the orthographies of the six languages simultaneously.

New input methods for languages based on Burmese. These include: Burmese, Burmese (visual order), Shan, and Mon.

New language environment and input methods for Syriac languages. A new language environment for languages that use the Syriac script: Classical Syriac, Aramaic, and others. There are two new input methods for these languages: Syriac and Syriac (phonetic).

'visual-wrap-prefix-mode' now supports variable-pitch fonts. When using 'visual-wrap-prefix-mode' in buffers with variable-pitch fonts, the wrapped text will now be lined up correctly so that it is exactly below the text after the prefix on the first line.

New commands 'unix-word-rubout' and 'unix-filename-rubout'. Unix-words are words separated by whitespace regardless of the buffer's syntax table. In a Unix terminal or shell, 'C-w' kills by Unix-word. The new commands 'unix-word-rubout' and 'unix-filename-rubout' allow you to bind keys to operate more similarly to such a terminal.

New user option 'kill-region-dwim'. This option, if non-nil, modifies the fall-back behavior of 'kill-region' ('C-w') if no region is active, and will kill the last word instead of raising an error. If you have disabled Transient Mark mode you might prefer to bind 'unix-word-rubout' to a key instead.

New user option 'delete-pair-push-mark'. This option, if non-nil, makes 'delete-pair' push a mark at the end of the region enclosed by the deleted delimiters. This makes it easy to act on that region. For example, you can highlight it using 'C-x C-x'.

Electric Pair mode

Electric Pair mode can now pair multiple delimiters at once. You can now insert or wrap text with multiple sets of parentheses and other matching delimiters at once with Electric Pair mode, by providing a prefix argument when inserting one of the delimiters.

Electric Pair mode now supports multi-character paired delimiters. 'electric-pair-pairs' and 'electric-pair-text-pairs' now allow using strings for multi-character paired delimiters.

To use this, add a list to both electric pair user options: '("/*" . "*/")'.

You can also specify that an extra space should be inserted after the first string, like this: '("/*" " */" t)'.

New user option 'electric-indent-actions'. This user option specifies a list of actions to reindent. The possible elements for this list are: 'yank' to reindent the yanked text, and 'before-save' to indent the whole buffer before saving it.

You can now use 'M-~' during 'C-x s' ('save-some-buffers'). Typing 'M-~' while saving some buffers means not to save the buffer and also to mark it as unmodified. This is an alternative way to mark a buffer as unmodified which doesn't require switching to that buffer.

New minor mode 'delete-selection-local-mode'. This mode sets 'delete-selection-mode' buffer-locally. This can be useful for enabling or disabling the features of 'delete-selection-mode' based on the state of the buffer, such as for the different states of modal editing packages.

New user option 'exchange-point-and-mark-highlight-region'. When set to nil, this modifies 'exchange-point-and-mark' so that it doesn't activate the mark if it is not already active. The default value is t, which retains the old behavior. This variable has no effect when Transient Mark mode is off.

You can now use 'M-s t' to swap FROM and TO during 'query-replace'. Likewise during 'query-replace-regexp'. The original binding of 'M-s' ('next-matching-history-element') is now available on 'M-s M-s' or 'M-s s' for query replace minibuffer input.

New commands for filling text using semantic linefeeds. The new command 'fill-paragraph-semlf' fills a paragraph of text using "semantic linefeeds", where a newline is inserted after every sentence. The new command 'fill-region-as-paragraph-semlf' fills a region of text using semantic linefeeds, as if the region were a single paragraph. You can set the variable 'fill-region-as-paragraph-function' to the value 'fill-region-as-paragraph-semlf' to make commands like 'fill-paragraph' and 'fill-region' fill text using semantic linefeeds.

Temporary files are named differently when 'file-precious-flag' is set. When the user option 'file-precious-flag' is set to a non-nil value, Emacs now names the temporary file it creates while saving buffers using the original file name with ".tmp" appended. Thus, if saving the buffer fails for some reason, and the temporary file is not renamed back to the original file's name, and you can easily identify which file's saving

'C-u C-x .' clears the fill prefix. You can now use 'C-u C-x .' to clear the fill prefix, similarly to how you could already use 'C-u C-x C-n' to clear the goal column.

New prefix argument for 'C-/' in Dired and Proced modes. The Dired and Proced major modes bind mode-specific undo commands to the same keys to which 'undo' is globally bound, 'C-/', 'C-_' and 'C-x u'. These commands did not previously accept a prefix argument. Now a numeric prefix argument specifies a repeat count, just like it already did for 'undo'.

New minor mode 'center-line-mode'. This mode keeps modified lines centered horizontally according to the value of 'fill-column', by calling 'center-line' on each non-empty line of the modified region.

New command 'unfill-paragraph'. This is the inverse of 'M-q' ('fill-paragraph').

Changes in Specialized Modes and Packages in Emacs 31.1

New command 'project-root-find-file'. It is equivalent to running 'project-any-command' with 'find-file'.

New command 'project-customize-dirlocals'. It is equivalent to running 'project-any-command' with 'customize-dirlocals'.

Improved prompt for 'project-switch-project'. The prompt now displays the project on which to invoke a command.

'project-prompter' values may be called with up to three arguments. These allow callers of the value of 'project-prompter' to specify a prompt string; prompt the user to choose between a subset of all the known projects; and disallow returning arbitrary directories. See the docstring of 'project-prompter' for a full specification of these new optional arguments.

'project-current' has a new optional argument, MAYBE-PROMPT. If 'project-current' is called with this argument non-nil, then it is passed to the 'project-prompter' to use as a prompt string. Callers can use this to indicate the reason for which or context in which Emacs should ask the user to select a project.

New command 'project-find-matching-buffer'. It can be used when switching between projects with similar file trees (such as Git worktrees of the same repository). It supports being invoked standalone or from the 'project-switch-commands' dispatch menu. See also the 'C-x v w w' ('vc-switch-working-tree') command, below.

New variable 'project-find-matching-buffer-function'. Major modes can set this to major mode-specific functions to control how 'project-find-matching-buffer' finds matching buffers.

New user option 'project-list-exclude'. This user option describes projects that should always be skipped by 'project-remember-project'.

New user option 'project-prune-zombie-projects'. This user option controls the automatic deletion of projects from 'project-list-file', when prompting for a project, that cannot be accessed. The value must be an alist where each element is of the

(WHEN . PREDICATE)

where WHEN specifies where the deletion will be performed, and PREDICATE is a function which takes one argument, and must return non-nil if the project should be removed.

New command 'project-save-some-buffers' bound to 'C-x p C-x s'. This is like 'C-x s', but only for this project's buffers.

'project-remember-project' is now interactive.

'project-shell' and 'project-eshell' support numeric prefix buffer naming. They now accept numeric prefix arguments to select or create numbered shell sessions. For example, 'C-2 C-x p s' switches to or creates a buffer named "*name-of-project-shell*". By comparison, a plain universal argument as in 'C-u C-x p s' always creates a new session.

'project-switch-to-buffer' re-uniquifies buffer names while prompting. When 'uniquify-buffer-name-style' is non-nil, 'project-switch-to-buffer' changes the buffer names to only make them unique within the given project, during completion. That makes some items shorter.

'project-switch-to-buffer' uses 'project-buffer' as completion category. The category defaults are the same as for 'buffer', but any user customizations need to be re-added.

'project-mode-line' can now show the project name only for local files. If the value of 'project-mode-line' is 'non-remote', project name and the Project menu will be shown on the mode line only for projects with local files.

The VC-aware project backend caches the current project and its name. The duration for which the values are cached depends on whether it is called from a 'non-essential' context, and is determined by the variables 'project-vc-cache-timeout' and 'project-vc-non-essential-cache-timeout'.

Network Security Manager (NSM)

NSM warns about TLS 1.1 by default. It has been deprecated by RFC 8996, published in 2021.

NSM warns about DHE and RSA key exchange by default. Emacs now warns about ephemeral Diffie-Hellman key exchange, and static RSA key exchange, also when 'network-security-level' is customized to its default 'medium' value.

New command-line options for handling unrecognized programming languages. The new command-line option '--no-fallback-lang' disables attempts to parse as Fortran or C/C++ files whose programming language 'etags' could not determine. This allows avoiding false positives and reduces the time required to scan directories with many such files. Another new option '--no-empty-file-entries' disables generation of file entries in tags tables for files in which no tags were found.

Delete Selection mode

New face 'delete-selection-replacement' for the replacement text. This comes with a change to how we track what is considered "the replacement text", which should be more robust, and is made more clear by the highlighting.

Editorconfig

'editorconfig-apply' is declared obsolete. You can now use 'editorconfig-display-current-properties' without having to call 'editorconfig-apply'.

Auth Source

Non-existing or empty files in 'auth-sources' are ignored. File-based data stores are ignored in 'auth-sources' if the underlying data file does not exist. This is relevant if a new secret is stored in such a file; the first usable entry of 'auth-sources' is selected as the target file. If you want files that do not exist to also be selected, customize the user option 'auth-source-ignore-non-existing-file' to nil.

'auth-sources' set to nil means use only the password cache.

New condition for 'auto-insert-alist'. 'auto-insert-alist' can now contain predicates taking no argument as conditions. These types of conditions should be declared with '(predicate FUNCTION)'. This allows triggering 'auto-insert' with finer-grained control.

New commands 'buffer-to-register' and 'file-to-register'. These allow users to interactively store files and buffers in registers. Killed buffers stored in a register using 'buffer-to-register' are automatically converted to a file-query value if the buffer was visiting

The "*Register Preview*" buffer shows only suitable registers. That was already the case for the "fancy" UI but is now also true in the default UI you get, i.e., when 'register-use-preview' is 'traditional'.

The "*Register Preview*" buffer shows sorted items.

Tree-sitter

New user option 'treesit-enabled-modes'. You can customize it either to t to enable all available tree-sitter-based modes, or to select a list of tree-sitter-based modes to enable. Depending on your customization, it modifies the variable 'major-mode-remap-alist' from the corresponding variable 'treesit-major-mode-remap-alist' prepared by tree-sitter-based mode

New user option 'treesit-auto-install-grammar'. It controls the automatic installation of tree-sitter grammar libraries needed for tree-sitter-based modes, if these grammar libraries are not available when such modes are turned on.

'treesit-extra-load-path' is now a customizable user option. The first directory in the list is used as the default directory to install the language grammar when 'treesit-auto-install-grammar' is 'ask', 'ask-dir' or 'always'.

'treesit-language-source-alist' supports keywords. The language and URL are mandatory, but remaining data can use keywords like

(json "https://github.com/tree-sitter/tree-sitter-json" :commit "4d770d3")

The file treesit-x.el defines a number of simple tree-sitter modes. Using the new macro 'define-treesit-generic-mode', generic modes are defined including, but not limited to, 'gitattributes-generic-ts-mode'. Visiting a file in such mode asks for confirmation before installing its tree-sitter grammar. Then it highlights the visited file according to the syntax defined by the grammar.

Indirect buffers can have their own parser list. Before, indirect buffers share their base buffer's parser list and parsers. Now they can have their own parser list.

New variable 'treesit-language-remap-alist'. This variable allows a user to remap one language into another, such that creating a parser for language A actually creates a parser for language B. By extension, any font-lock rules or indentation rules for language A will be applied to language B instead.

This is useful for reusing font-lock rules and indentation rules of language A for language B when language B is a strict superset of language A.

New accessor functions for each setting in 'treesit-font-lock-settings'. Now you can access a setting's query, feature, enable flag, and override flag by 'treesit-font-lock-setting-query', 'treesit-font-lock-setting-feature', 'treesit-font-lock-setting-enable', and 'treesit-font-lock-setting-override'.

New tree-sitter thing 'list'. Unlike the existing thing 'sexp' that includes both lists and atoms, 'list' makes only lists be navigated by 'forward-sexp'. The new command 'treesit-forward-sexp-list' uses 'list' to move across lists. But to move across atoms inside the list it uses 'forward-sexp-default-function'.

New tree-sitter based functions for moving by lists. If a major mode defines 'list' in 'treesit-thing-settings', tree-sitter setup for these modes sets 'forward-list-function' to 'treesit-forward-list', 'up-list-function' to 'treesit-up-list', and 'down-list-function' to 'treesit-down-list'. This enables the 'forward-list', 'up-list', and 'down-list' motion commands for those

New command 'treesit-cycle-sexp-thing'. It cycles the type of navigation for commands that move across sexp's and lists, such as 'treesit-forward-sexp', 'treesit-forward-list', 'treesit-down-list', and 'treesit-up-list'. The type can be either 'list', the default, or 'sexp'. With the default 'list' type, these commands move using syntax tables for symbols and using the thing 'list' for lists. With the 'sexp' type, these commands move across nodes defined by the tree-sitter thing 'sexp' in 'treesit-thing-settings'.

Tree-sitter enabled modes now properly support 'show-paren-mode'. They do that by letting 'show-paren-mode' use the results of parsing by the tree-sitter library. The new function 'treesit-show-paren-data' is used to communicate the tree-sitter parsing results to 'show-paren-mode'.

Tree-sitter enabled modes now properly support 'hs-minor-mode'. All commands from hideshow.el can selectively display blocks defined by the new tree-sitter thing 'list'.

New tree-sitter thing 'comment'. The new variable 'forward-comment-function' is set to the new function 'treesit-forward-comment' if a major mode defines the thing 'comment'.

New function 'treesit-query-eagerly-compiled-p'. This function returns non-nil if a query was eagerly compiled.

New function 'treesit-query-source'. This function returns the string or sexp source query of a compiled query.

New function 'treesit-language-display-name'. This new function returns the display name of a language given the language symbol. For example, 'cpp' is translated to "C++". A new variable 'treesit-language-display-name-alist' holds the translations of language symbols where that translation is not trivial.

New function 'treesit-merge-font-lock-feature-list'. This function merges two tree-sitter font-lock feature lists. It returns a new font-lock feature list with no duplicates at the same level. It can be used to merge font-lock feature lists in a multi-language major mode.

New function 'treesit-replace-font-lock-feature-settings'. Given two tree-sitter font-lock settings, it replaces the feature in the second font-lock settings with the same feature in the first font-lock settings. In a multi-language major mode it is sometimes necessary to replace features from one of the major modes with others that are better suited to the new multilingual context.

New variable 'treesit-aggregated-simple-imenu-settings'. This variable allows major modes to setup Imenu for multiple languages.

New variable 'treesit-aggregated-outline-predicate'. This variable allows major modes to setup 'outline-minor-mode' for multiple languages.

New function 'treesit-simple-indent-add-rules'. This new function makes it easier to customize indent rules for tree-sitter modes.

New function 'treesit-simple-indent-modify-rules'. Given two tree-sitter indent rules, it replaces, adds, or prepends rules in the old rules with new ones, then returns the modified rules. In a multi-language major mode it is sometimes necessary to modify rules from one of the major modes to better suit the new multilingual context.

New variable 'treesit-simple-indent-override-rules'. Users can customize this variable to add simple custom indentation rules for tree-sitter major modes.

New variable 'treesit-languages-require-line-column-tracking'. Now Emacs can optionally track line and column numbers for buffer edits and send that information to tree-sitter parsers. Parsers of languages in this list will receive line and column information. This is only needed for very few languages. So far only Haskell is known to need it.

New function 'treesit-tracking-line-column-p'. New function to check if a buffer is tracking line and column for buffer

New function 'treesit-parser-tracking-line-column-p'. New function to check if a parser is receiving line and column information.

'treesit-language-at-point-function' is now optional. Multi-language major modes can rely on the default return value from 'treesit-language-at' that uses the new function 'treesit-parsers-at'.

New function 'treesit-query-with-optional'. When used in 'treesit-font-lock-rules', 'treesit-query-with-optional' returns a default query plus the valid queries from a list of optional

New function 'treesit-query-with-fallback'. When used in 'treesit-font-lock-rules', 'treesit-query-with-fallback' selects the first valid query from a list.

Tree-sitter thing functions now work better with multiple parsers. The following functions now better handle the case when there are multiple parsers at point: 'treesit-thing-prev', 'treesit-thing-next', 'treesit-navigate-thing', 'treesit-thing-at'. When there are multiple parsers at point, instead of using whatever 'treesit-node-at' returns at point, these functions now try every relevant parser in descending order of relevance. (Deeper-embedded parsers have higher relevance.) These functions now also take an additional optional argument, PARSER, that allows the caller to specify a parser or language to use. That also means 'treesit-beginning/end-of-defun' can now move across parsers.

New command 'treesit-explore'. This command replaces 'treesit-explore-mode'. It turns on 'treesit-explore-mode' if it is not on, and pops up the explorer buffer if it is already on.

'treesit-explore-mode' now supports local parsers. Now 'treesit-explore-mode' (or 'treesit-explore') prompts for a parser rather than a language, and it is now possible to select a local parser at point to explore.

Tree-sitter query predicates ':equal', ':match', and ':pred' are deprecated. Use ':eq?', ':match?', and ':pred?' instead. The change is because newer tree-sitter libraries mandate query predicates to end with a question mark. Emacs will transparently convert ':equal', ':match', and ':pred' to ':eq?', ':match?', and ':pred?', respectively, so existing queries still work fine with the latest tree-sitter library. The predicate ':equal' is changed to ':eq?' to better follow tree-sitter's convention. Also, the ':match?' predicate can now take the regexp as either the first or second argument, so it works with both tree-sitter convention (regexp arg second) and Emacs convention (regexp arg first).

Track changes

New variable 'track-changes-undo-only' to distinguish undo changes.

New command 'hs-cycle'. This command cycles the visibility state of the current block between hiding the parent block, hiding only the nested blocks and showing all the blocks.

New user option 'hs-cycle-filter' for visibility-cycling with 'TAB'. This user option controls the positions on the headline of hideable blocks where the 'TAB' key cycles the blocks' visibility.

New command 'hs-toggle-all'. This command hides or shows all the blocks in the current buffer.

'hs-hide-level' no longer hides all the blocks in the current buffer. If 'hs-hide-level' was not inside a code block, it would hide all the blocks in the buffer like 'hs-hide-all'. Now it only hides all the second level blocks.

New user option 'hs-display-lines-hidden'. If this option is non-nil, Hideshow displays the number of hidden lines next to the ellipsis. By default this is disabled.

New user option 'hs-show-indicators'. This user option determines if Hideshow should display indicators to show and toggle the block hiding. If non-nil, the indicators are enabled. By default this is disabled.

New user option 'hs-indicator-maximum-buffer-size'. This user option limits the display of Hideshow indicators to buffers that are not too large. By default, buffers larger than 2MB have the indicators disabled; a value of nil will activate the indicators regardless of the buffer size.

New user option 'hs-indicator-type'. This user option determines which indicator type should be used for the block indicators.

The possible values are: 'fringe' to display the indicators in the fringe (the default); 'margin' to display the indicators in the margin; and nil, to display the indicators at end-of-line.

The new icons 'hs-indicator-show' and 'hs-indicator-hide' can be used to customize the indicators appearance, but apply only if 'hs-indicator-type' is set to 'margin' or nil.

The hiding behavior of some hideshow commands has changed. 'hs-hide-block', 'hs-hide-level', 'hs-cycle' and 'hs-toggle-hiding' now hide the innermost block to which the current line belongs instead of the block after point. To restore the old behavior, set the new user option 'hs-hide-block-behavior' to 'after-point'.

The variable 'hs-special-modes-alist' is now obsolete. Instead of customizing Hideshow for a mode by setting the elements of 'hs-special-modes-alist', such as START, COMMENT-START, FORWARD-SEXP-FUNC, etc., major mode authors should set the corresponding buffer-local variables 'hs-block-start-regexp', 'hs-c-start-regexp', 'hs-forward-sexp-function', etc.

'hs-hide-level' can now hide comments too. This is controlled by 'hs-hide-comments-when-hiding-all'.

New minor mode 'hs-indentation-mode'. This buffer-local minor mode configures 'hs-indentation-mode' to detect blocks based on indentation.

The new user option 'hs-indentation-respect-end-block' can be used to adjust the hiding range for this minor mode.

New user option 'c-ts-mode-enable-doxygen'. By default, this is nil, and the Doxygen comment blocks in C/C++ sources are highlighted like other comments. When non-nil, Doxygen comment blocks are font locked if the Doxygen grammar library is available.

Csharp-ts mode

Renamed feature in 'treesit-font-lock-feature-list'. The feature 'property' has been renamed to 'attribute', since this is what it is generally called among C# programmers.

New unit test commands. Three new commands are now available to run unit tests.

The 'go-ts-mode-test-function-at-point' command runs the unit test at point. If a region is active, it runs all the unit tests under the region. It is bound to 'C-c C-t t' in 'go-ts-mode'.

The 'go-ts-mode-test-this-file' command runs all unit tests in the current file. It is bound to 'C-c C-t f' in 'go-ts-mode'.

The 'go-ts-mode-test-this-package' command runs all unit tests under the package of the current buffer. It is bound to 'C-c C-t p' in 'go-ts-mode'.

The 'go-ts-mode-build-tags' user option is available to set a list of build tags for the test commands.

The 'go-ts-mode-test-flags' user option is available to set a list of additional flags to pass to the go test command line.

Lua-ts mode

New user option 'lua-ts-auto-close-block-comments'. When non-nil, inserting a block comment "--[[" will close it by inserting its respective "]]". By default, this is disabled.

Java-ts mode

New user option 'java-ts-mode-enable-doxygen'. By default, this is nil, and the Doxygen comment blocks in Java sources are highlighted like other comments. When non-nil, Doxygen comment blocks are font locked if the Doxygen grammar library is available.

New user option 'java-ts-method-chaining-indent-offset'. Now method chaining is indented by 8 spaces rather than 4, and this option controls how much is indented for method chaining.

JSON-ts mode

New command 'json-ts-jq-path-at-point'. This command copies the path of the JSON element at point to the kill-ring, but formatted for use with the 'jq' utility.

PHP-ts mode

'php-ts-mode' now depends on 'mhtml-ts-mode'. The direct dependency on 'js-ts-mode', 'css-ts-mode' and 'html-ts-mode' has now been replaced by 'mhtml-ts-mode'. Navigation, Outline and Imenu work for all languages, and code maintenance is easier.

'php-ts-mode-run-php-webserver' can now accept a custom "php.ini" file. You can use the new optional argument CONFIG when calling 'php-ts-mode-run-php-webserver' to pass an alternative "php.ini" file to the built-in Web server. Interactively, when invoked with a prefix argument, 'php-ts-mode-run-php-webserver' prompts for the config file as well as for other connection parameters.

The user option 'php-ts-mode-css-fontify-colors' has been removed. 'mhtml-ts-mode-css-fontify-colors' replaces this option.

New user option 'php-ts-mode-html-relative-indent'. In buffers containing both PHP and HTML, this option allows you to define how the PHP code should be indented relative to the position of the HTML tags.

New user option 'php-ts-mode-html-indent-offset'. Offset of PHP code block relative to HTML tags.

New user option 'php-ts-mode-find-sibling-rules'. Rules for finding siblings of a PHP file.

New user option 'php-ts-mode-phpdoc-highlight-errors'. When non-nil, it highlights unknown PHPDOC tags using 'font-lock-warning-face' so that the user can identify them more easily.

New command 'php-ts-mode-show-ini'. Show the location of the PHP ini files. If the current buffer is associated to a remote PHP file, show the remote PHP ini files.

Rust-ts mode

New user option 'rust-ts-mode-fontify-number-suffix-as-type'. Rust number literals may have an optional type suffix. When this option is non-nil, this suffix is fontified using 'font-lock-type-face'.

YAML-ts mode

New user option 'yaml-ts-mode-yamllint-options'. Additional options for 'yamllint', the command used for Flymake's YAML

New value 'warn' for 'eieio-backward-compatibility'. This is the new default value and causes warnings to be emitted at run-time for the use of the associated deprecated features. '(setq eieio-backward-compatibility t)' can be used to recover the previous silence.

New commands to convert between ASCII and full-width characters. New commands 'fullwidth-region' and 'fullwidth-word' convert ASCII characters in region or in the word at point to the corresponding full-width characters, which are customarily used instead of ASCII characters in CJK texts. For example, 'A' is converted to 'A', '1' is converted to '1', etc. Companion commands 'halfwidth-region' and 'halfwidth-word' perform the opposite conversion.

Texinfo mode

Texinfo mode now can auto-close the ``'' pairs. Now inserting

Post a Comment

Previous Post Next Post