commit c10024911d6c225645c22e87a7326c13c0116ac6 (HEAD, refs/remotes/origin/master) Author: Po Lu Date: Thu Apr 14 10:26:39 2022 +0800 Ignore XdndPosition events triggered by the wrong mouse button * src/xterm.c (x_dnd_send_position): Don't send if button is set but not a scroll wheel button. diff --git a/src/xterm.c b/src/xterm.c index aad772c423..367659d3c1 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3389,6 +3389,8 @@ x_dnd_send_position (struct frame *f, Window target, int supported, msg.xclient.data.l[1] |= (1 << 9); msg.xclient.data.l[1] |= (button - 4) << 7; } + else if (button) + return; msg.xclient.data.l[1] |= state & 0x3f; } commit 63c28d389d04e7212939e190266fd758d20550a2 Author: Po Lu Date: Thu Apr 14 09:30:09 2022 +0800 Add support for Xdnd features introduced after version 5 * src/xterm.c (x_dnd_send_position, x_dnd_update_state) (handle_one_xevent): Add support for sending button and keyboard state during DND. diff --git a/src/xterm.c b/src/xterm.c index db9266f10b..aad772c423 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3339,7 +3339,8 @@ x_dnd_send_enter (struct frame *f, Window target, int supported) static void x_dnd_send_position (struct frame *f, Window target, int supported, unsigned short root_x, unsigned short root_y, - Time timestamp, Atom action) + Time timestamp, Atom action, int button, + unsigned state) { struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); XEvent msg; @@ -3380,6 +3381,20 @@ x_dnd_send_position (struct frame *f, Window target, int supported, msg.xclient.window = target; msg.xclient.data.l[0] = FRAME_X_WINDOW (f); msg.xclient.data.l[1] = 0; + + if (supported >= 5) + { + if (button >= 4 && button <= 8) + { + msg.xclient.data.l[1] |= (1 << 9); + msg.xclient.data.l[1] |= (button - 4) << 7; + } + + msg.xclient.data.l[1] |= state & 0x3f; + } + else if (button) + return; + msg.xclient.data.l[2] = (root_x << 16) | root_y; msg.xclient.data.l[3] = 0; msg.xclient.data.l[4] = 0; @@ -13467,7 +13482,7 @@ x_dnd_update_state (struct x_display_info *dpyinfo, Time timestamp) x_dnd_last_protocol_version, root_x, root_y, x_dnd_selection_timestamp, - x_dnd_wanted_action); + x_dnd_wanted_action, 0, 0); else if (XM_DRAG_STYLE_IS_DYNAMIC (x_dnd_last_motif_style) && target != None) { if (!x_dnd_motif_setup_p) @@ -15244,7 +15259,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, event->xmotion.x_root, event->xmotion.y_root, x_dnd_selection_timestamp, - x_dnd_wanted_action); + x_dnd_wanted_action, 0, + event->xmotion.state); else if (XM_DRAG_STYLE_IS_DYNAMIC (x_dnd_last_motif_style) && target != None) { if (!x_dnd_motif_setup_p) @@ -15688,6 +15704,23 @@ handle_one_xevent (struct x_display_info *dpyinfo, if (x_dnd_in_progress && dpyinfo == FRAME_DISPLAY_INFO (x_dnd_frame)) { + if (event->xbutton.type == ButtonPress + && x_dnd_last_seen_window != None + && x_dnd_last_protocol_version != -1) + { + x_dnd_send_position (x_dnd_frame, + x_dnd_last_seen_window, + x_dnd_last_protocol_version, + event->xbutton.x_root, + event->xbutton.y_root, + x_dnd_selection_timestamp, + x_dnd_wanted_action, + event->xbutton.button, + event->xbutton.state); + + goto OTHER; + } + for (int i = 1; i < 8; ++i) { if (i != event->xbutton.button @@ -16351,6 +16384,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, xm_top_level_leave_message lmsg; xm_top_level_enter_message emsg; xm_drag_motion_message dmsg; + int dnd_state; source = xi_device_from_id (dpyinfo, xev->sourceid); @@ -16769,11 +16803,26 @@ handle_one_xevent (struct x_display_info *dpyinfo, } if (x_dnd_last_protocol_version != -1 && target != None) - x_dnd_send_position (x_dnd_frame, target, - x_dnd_last_protocol_version, - xev->root_x, xev->root_y, - x_dnd_selection_timestamp, - x_dnd_wanted_action); + { + dnd_state = xev->mods.effective; + + if (xev->buttons.mask_len) + { + if (XIMaskIsSet (xev->buttons.mask, 1)) + dnd_state |= Button1Mask; + if (XIMaskIsSet (xev->buttons.mask, 2)) + dnd_state |= Button2Mask; + if (XIMaskIsSet (xev->buttons.mask, 3)) + dnd_state |= Button3Mask; + } + + x_dnd_send_position (x_dnd_frame, target, + x_dnd_last_protocol_version, + xev->root_x, xev->root_y, + x_dnd_selection_timestamp, + x_dnd_wanted_action, 0, + dnd_state); + } else if (XM_DRAG_STYLE_IS_DYNAMIC (x_dnd_last_motif_style) && target != None) { if (!x_dnd_motif_setup_p) @@ -16900,18 +16949,42 @@ handle_one_xevent (struct x_display_info *dpyinfo, /* A fake XButtonEvent for x_construct_mouse_click. */ XButtonEvent bv; bool dnd_grab = false; + int dnd_state; if (x_dnd_in_progress && dpyinfo == FRAME_DISPLAY_INFO (x_dnd_frame)) { + if (xev->evtype == XI_ButtonPress + && x_dnd_last_seen_window != None + && x_dnd_last_protocol_version != -1) + { + dnd_state = xev->mods.effective; + + if (xev->buttons.mask_len) + { + if (XIMaskIsSet (xev->buttons.mask, 1)) + dnd_state |= Button1Mask; + if (XIMaskIsSet (xev->buttons.mask, 2)) + dnd_state |= Button2Mask; + if (XIMaskIsSet (xev->buttons.mask, 3)) + dnd_state |= Button3Mask; + } + + x_dnd_send_position (x_dnd_frame, x_dnd_last_seen_window, + x_dnd_last_protocol_version, xev->root_x, + xev->root_y, x_dnd_selection_timestamp, + x_dnd_wanted_action, xev->detail, dnd_state); + + goto XI_OTHER; + } + for (int i = 0; i < xev->buttons.mask_len * 8; ++i) { if (i != xev->detail && XIMaskIsSet (xev->buttons.mask, i)) dnd_grab = true; } - if (!dnd_grab - && xev->evtype == XI_ButtonRelease) + if (!dnd_grab && xev->evtype == XI_ButtonRelease) { x_dnd_end_window = x_dnd_last_seen_window; x_dnd_in_progress = false; commit 2ea3e7b246bc9b40f1c321c39106a07ae4a4690f Author: Lars Ingebrigtsen Date: Thu Apr 14 03:08:32 2022 +0200 Fix describe-mode--minor-modes formatting issue * lisp/help-fns.el (describe-mode--minor-modes): Fix multi-line local-minor paragraph. diff --git a/lisp/help-fns.el b/lisp/help-fns.el index c06c0f3815..309cf0b85a 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -1966,7 +1966,7 @@ documentation for the major and minor modes of that buffer." (insert (help-split-fundoc (documentation mode) nil 'doc))))) (forward-line -1) (fill-paragraph nil) - (forward-line 1) + (forward-paragraph 1) (ensure-empty-lines 1)) (defun help-fns--list-local-commands () commit c3b6cfda3621c61634a6be37cbc3d62406daee00 Author: Lars Ingebrigtsen Date: Thu Apr 14 02:47:23 2022 +0200 Make vtable narrow/widen functions take a prefix * lisp/emacs-lisp/vtable.el (vtable-narrow-current-column) (vtable-widen-current-column): Allow using the prefix to say how much to narrow/widen the columns. diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index 03fe54c94e..f14c9ae9a6 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -758,9 +758,12 @@ This also updates the displayed table." "Minor mode for buffers with vtables with headers." :keymap vtable-header-mode-map) -(defun vtable-narrow-current-column () - "Narrow the current column." - (interactive) +(defun vtable-narrow-current-column (&optional n) + "Narrow the current column by N characters. +If N isn't given, N defaults to 1. + +Interactively, N is the prefix argument." + (interactive "p") (let* ((table (vtable-current-table)) (column (vtable-current-column)) (widths (vtable--widths table))) @@ -768,18 +771,23 @@ This also updates the displayed table." (user-error "No column under point")) (setf (aref widths column) (max (* (vtable--char-width table) 2) - (- (aref widths column) (vtable--char-width table)))) + (- (aref widths column) + (* (vtable--char-width table) (or n 1))))) (vtable-revert))) -(defun vtable-widen-current-column () - "Widen the current column." - (interactive) +(defun vtable-widen-current-column (&optional n) + "Widen the current column by N characters. +If N isn't given, N defaults to 1. + +Interactively, N is the prefix argument." + (interactive "p") (let* ((table (vtable-current-table)) (column (vtable-current-column)) (widths (nth 1 (vtable--cache table)))) (unless column (user-error "No column under point")) - (cl-incf (aref widths column) (vtable--char-width table)) + (cl-incf (aref widths column) + (* (vtable--char-width table) (or n 1))) (vtable-revert))) (defun vtable-previous-column () commit ffb7612d2cf84ca1863a10873eb4a9721ffc720d Author: Lars Ingebrigtsen Date: Thu Apr 14 02:41:27 2022 +0200 Copy edit make-vtable code * lisp/emacs-lisp/vtable.el (make-vtable): Clean up code slightly. diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index 2c6c90ee1f..03fe54c94e 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -152,12 +152,10 @@ See info node `(vtable)Top' for vtable documentation." (when (or divider divider-width) (setf (vtable-divider table) (or divider - (and divider-width - (propertize - " " 'display - (list 'space :width - (list (vtable--compute-width - table divider-width)))))))) + (propertize + " " 'display + (list 'space :width + (list (vtable--compute-width table divider-width))))))) (unless sort-by (seq-do-indexed (lambda (column index) (when (vtable-column-primary column) commit 8969836cb8e36df9dcd3f5031b2dcc648c4c90dc Author: Lars Ingebrigtsen Date: Thu Apr 14 02:37:44 2022 +0200 Edit some vtable doc strings * lisp/emacs-lisp/vtable.el (make-vtable, vtable): Improve doc strings. diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index 943ede159a..2c6c90ee1f 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -68,7 +68,7 @@ (row-colors :initarg :row-colors :accessor vtable-row-colors) (-cached-colors :initform nil :accessor vtable--cached-colors) (-cache :initform (make-hash-table :test #'equal))) - "A object to hold the data for a table.") + "An object to hold the data for a table.") (defvar-keymap vtable-map "S" #'vtable-sort-by-current-column @@ -100,7 +100,9 @@ column-colors) "Create and insert a vtable at point. The vtable object is returned. If INSERT is nil, the table won't -be inserted." +be inserted. + +See info node `(vtable)Top' for vtable documentation." (when objects-function (setq objects (funcall objects-function))) ;; Auto-generate the columns. commit 5a9e4f2230e76d53499cdd574a2cca61c9c3a1d0 Author: Lars Ingebrigtsen Date: Thu Apr 14 02:18:01 2022 +0200 Further divider fixes for vtable * lisp/emacs-lisp/vtable.el (vtable--insert-header-line): Don't insert the divider at the end. (vtable-narrow-current-column, vtable-widen-current-column): Don't error out when being called on the divider. diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index de7b9b7cdf..943ede159a 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -570,7 +570,8 @@ This also updates the displayed table." (defun vtable--insert-header-line (table widths spacer) ;; Insert the header directly into the buffer. - (let* ((start (point))) + (let ((start (point)) + (divider (vtable-divider table))) (seq-do-indexed (lambda (column index) (let* ((name (propertize @@ -594,8 +595,9 @@ This also updates the displayed table." (list 'space :width (list (+ (- (elt widths index) (string-pixel-width displayed)) - (if last 0 spacer))))) - (or (vtable-divider table) "")) + (if last 0 spacer)))))) + (when (and divider (not last)) + (insert divider)) (put-text-property start (point) 'vtable-column index))) (vtable-columns table)) (insert "\n") @@ -762,6 +764,8 @@ This also updates the displayed table." (let* ((table (vtable-current-table)) (column (vtable-current-column)) (widths (vtable--widths table))) + (unless column + (user-error "No column under point")) (setf (aref widths column) (max (* (vtable--char-width table) 2) (- (aref widths column) (vtable--char-width table)))) @@ -773,6 +777,8 @@ This also updates the displayed table." (let* ((table (vtable-current-table)) (column (vtable-current-column)) (widths (nth 1 (vtable--cache table)))) + (unless column + (user-error "No column under point")) (cl-incf (aref widths column) (vtable--char-width table)) (vtable-revert))) commit 4ed8fc71f52fb6f9ad4be17734fac553e98ffe8a Author: Lars Ingebrigtsen Date: Thu Apr 14 02:00:26 2022 +0200 Restore vtable.texi lines removed by accident * doc/misc/vtable.texi (Introduction): Restore lines inadvertently removed. diff --git a/doc/misc/vtable.texi b/doc/misc/vtable.texi index 5e96206528..5a3957758c 100644 --- a/doc/misc/vtable.texi +++ b/doc/misc/vtable.texi @@ -143,6 +143,8 @@ version of @kbd{M-x list-buffers}: (make-vtable :columns '("Name" "Size" "File") :objects (buffer-list) + :actions '("k" kill-buffer + "RET" display-buffer) :getter (lambda (object column vtable) (pcase (vtable-column vtable column) ("Name" (buffer-name object)) commit 574ae74caa83194a9b4ce3d1f4239d10aabba2eb Author: Lars Ingebrigtsen Date: Thu Apr 14 01:56:15 2022 +0200 Fix dividers in vtable header lines * lisp/emacs-lisp/vtable.el (vtable--insert-header-line): Put the divider in the correct place in the header line. diff --git a/doc/misc/vtable.texi b/doc/misc/vtable.texi index 5a3957758c..5e96206528 100644 --- a/doc/misc/vtable.texi +++ b/doc/misc/vtable.texi @@ -143,8 +143,6 @@ version of @kbd{M-x list-buffers}: (make-vtable :columns '("Name" "Size" "File") :objects (buffer-list) - :actions '("k" kill-buffer - "RET" display-buffer) :getter (lambda (object column vtable) (pcase (vtable-column vtable column) ("Name" (buffer-name object)) diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index 9b820c329a..de7b9b7cdf 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -590,12 +590,12 @@ This also updates the displayed table." name (- (elt widths index) indicator-width)) name) indicator)) - (or (vtable-divider table) "") (propertize " " 'display (list 'space :width (list (+ (- (elt widths index) (string-pixel-width displayed)) - (if last 0 spacer)))))) + (if last 0 spacer))))) + (or (vtable-divider table) "")) (put-text-property start (point) 'vtable-column index))) (vtable-columns table)) (insert "\n") commit a96679b742fef2058497ae445516f630c77d2a25 Author: Lars Ingebrigtsen Date: Thu Apr 14 01:36:24 2022 +0200 Allow having dividers between columns in vtable * doc/misc/vtable.texi (Making A Table): Document it. * lisp/emacs-lisp/vtable.el (vtable): Add a divider slot. (make-vtable): Accept :divider and :divider-width arguments. (vtable--insert-line, vtable--insert-header-line): Display the divider. diff --git a/doc/misc/vtable.texi b/doc/misc/vtable.texi index 77cb8663af..5a3957758c 100644 --- a/doc/misc/vtable.texi +++ b/doc/misc/vtable.texi @@ -418,6 +418,13 @@ current line, they can use the @code{vtable-current-object} function @item :separator-width The width of the blank space between columns. +@item :divider-width +@itemx :divider +You can have a divider inserted between the columns. This can either +be specified by using @code{:divider}, which should be a string to be +displayed between the columns, or @code{:divider-width}, which +specifies the width of the space to be used as the divider. + @item :sort-by This should be a list of tuples, and specifies how the table is to be sorted. Each tuple should consist of an integer (the column index) diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index e001043444..9b820c329a 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -61,6 +61,7 @@ (actions :initarg :actions :accessor vtable-actions) (keymap :initarg :keymap :accessor vtable-keymap) (separator-width :initarg :separator-width :accessor vtable-separator-width) + (divider :initarg :divider :accessor vtable-divider :initform nil) (sort-by :initarg :sort-by :accessor vtable-sort-by) (ellipsis :initarg :ellipsis :accessor vtable-ellipsis) (column-colors :initarg :column-colors :accessor vtable-column-colors) @@ -90,6 +91,8 @@ (face 'vtable) actions keymap (separator-width 1) + divider + divider-width sort-by (ellipsis t) (insert t) @@ -120,28 +123,39 @@ be inserted." ;; We'll be altering the list, so create a copy. (setq objects (copy-sequence objects)) (let ((table - (make-instance 'vtable - :columns columns - :objects objects - :objects-function objects-function - :getter getter - :formatter formatter - :displayer displayer - :use-header-line use-header-line - :face face - :actions actions - :keymap keymap - :separator-width separator-width - :sort-by sort-by - :row-colors row-colors - :column-colors column-colors - :ellipsis ellipsis))) + (make-instance + 'vtable + :columns columns + :objects objects + :objects-function objects-function + :getter getter + :formatter formatter + :displayer displayer + :use-header-line use-header-line + :face face + :actions actions + :keymap keymap + :separator-width separator-width + :sort-by sort-by + :row-colors row-colors + :column-colors column-colors + :ellipsis ellipsis))) ;; Compute missing column data. (setf (vtable-columns table) (vtable--compute-columns table)) ;; Compute colors if we have to mix them. (when (and row-colors column-colors) (setf (vtable--cached-colors table) (vtable--compute-colors row-colors column-colors))) + ;; Compute the divider. + (when (or divider divider-width) + (setf (vtable-divider table) + (or divider + (and divider-width + (propertize + " " 'display + (list 'space :width + (list (vtable--compute-width + table divider-width)))))))) (unless sort-by (seq-do-indexed (lambda (column index) (when (vtable-column-primary column) @@ -420,7 +434,8 @@ This also updates the displayed table." (if (vtable-row-colors table) (elt (vtable--cached-colors table) (mod line-number (length (vtable-row-colors table)))) - (vtable-column-colors table)))) + (vtable-column-colors table))) + (divider (vtable-divider table))) (seq-do-indexed (lambda (elem index) (let ((value (nth 0 elem)) @@ -461,32 +476,40 @@ This also updates the displayed table." value (- (elt widths index) ellipsis-width)) ellipsis) value)))) - (start (point))) + (start (point)) + ;; Don't insert the separator and the divider after the + ;; final column. + (last (= index (- (length line) 2)))) (if (eq (vtable-column-align column) 'left) - (insert displayed - (propertize - " " 'display - (list 'space - :width (list - (+ (- (elt widths index) - (string-pixel-width displayed)) - spacer))))) + (progn + (insert displayed) + (insert (propertize + " " 'display + (list 'space + :width (list + (+ (- (elt widths index) + (string-pixel-width displayed)) + (if last 0 spacer))))))) ;; Align to the right. (insert (propertize " " 'display (list 'space :width (list (- (elt widths index) (string-pixel-width displayed))))) - displayed - (propertize " " 'display - (list 'space - :width (list spacer))))) + displayed) + (unless last + (insert (propertize " " 'display + (list 'space + :width (list spacer)))))) (put-text-property start (point) 'vtable-column index) (when column-colors (add-face-text-property start (point) (list :background - (elt column-colors (mod index (length column-colors))))))))) + (elt column-colors (mod index (length column-colors)))))) + (when (and divider (not last)) + (insert divider) + (setq start (point)))))) (cdr line)) (insert "\n") (put-text-property start (point) 'vtable-object (car line)) @@ -556,6 +579,7 @@ This also updates the displayed table." (start (point)) (indicator (vtable--indicator table index)) (indicator-width (string-pixel-width indicator)) + (last (= index (1- (length (vtable-columns table))))) displayed) (insert (setq displayed @@ -566,11 +590,12 @@ This also updates the displayed table." name (- (elt widths index) indicator-width)) name) indicator)) + (or (vtable-divider table) "") (propertize " " 'display (list 'space :width (list (+ (- (elt widths index) (string-pixel-width displayed)) - spacer))))) + (if last 0 spacer)))))) (put-text-property start (point) 'vtable-column index))) (vtable-columns table)) (insert "\n") commit e2c7e48f838f7c8715867dd8e16325969d6050d2 Author: Sean Whitton Date: Tue Apr 12 11:38:32 2022 -0700 Document additions of cl-with-gensyms and cl-once-only * NEWS: Document additions of cl-with-gensyms and cl-once-only. * doc/misc/cl.texi (Macro-Writing Macros): New section. (Creating Symbols): Add to the concept index under the name "gensym". (Obsolete Setf Customization): Use cl-once-only rather than macroexp-let2, and fix a quotation bug in one example. diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index a6fe29e102..2008f5a079 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi @@ -843,6 +843,7 @@ constructs. * Iteration:: @code{cl-do}, @code{cl-dotimes}, @code{cl-dolist}, @code{cl-do-symbols}. * Loop Facility:: The Common Lisp @code{loop} macro. * Multiple Values:: @code{cl-values}, @code{cl-multiple-value-bind}, etc. +* Macro-Writing Macros:: @code{cl-with-gensyms}, @code{cl-once-only}. @end menu @node Assignment @@ -2513,6 +2514,86 @@ in @code{cl-multiple-value-bind}. Since a perfect emulation is not feasible in Emacs Lisp, this package opts to keep it as simple and predictable as possible. +@node Macro-Writing Macros +@section Macro-Writing Macros + +@noindent +This package includes two classic Common Lisp macro-writing macros to +help render complex macrology easier to read. + +@defmac cl-with-gensyms names@dots{} body +This macro expands to code that executes @var{body} with each of the +variables in @var{names} bound to a fresh uninterned symbol, or +@dfn{gensym}, in Common Lisp parlance. For macros requiring more than +one gensym, use of @code{cl-with-gensyms} shortens the code and +renders one's intentions clearer. Compare: + +@example +(defmacro my-macro (foo) + (let ((bar (gensym "bar")) + (baz (gensym "baz")) + (quux (gensym "quux"))) + `(let ((,bar (+ @dots{}))) + @dots{}))) + +(defmacro my-macro (foo) + (cl-with-gensyms (bar baz quux) + `(let ((,bar (+ @dots{}))) + @dots{}))) +@end example +@end defmac + +@defmac cl-once-only ((variable form)@dots{}) body +This macro is primarily to help the macro programmer ensure that forms +supplied by the user of the macro are evaluated just once by its +expansion even though the result of evaluating the form is to occur +more than once. Less often, this macro is used to ensure that forms +supplied by the macro programmer are evaluated just once. + +Each @var{variable} may be used to refer to the result of evaluating +@var{form} in @var{body}. @code{cl-once-only} binds each +@var{variable} to a fresh uninterned symbol during the evaluation of +@var{body}. Then, @code{cl-once-only} wraps the final expansion in +code to evaluate each @var{form} and bind the result to the +corresponding uninterned symbol. Thus, when the macro writer +substitutes the value for @var{variable} into the expansion they are +effectively referring to the result of evaluating @var{form}, rather +than @var{form} itself. Another way to put this is that each +@var{variable} is bound to an expression for the (singular) result of +evaluating @var{form}. + +The most common case is where @var{variable} is one of the arguments +to the macro being written, so @code{(variable variable)} may be +abbreviated to just @code{variable}. + +For example, consider this macro: + +@example +(defmacro my-list (x y &rest forms) + (let ((x-result (gensym)) + (y-result (gensym))) + `(let ((,x-result ,x) + (,y-result ,y)) + (list ,x-result ,y-result ,x-result ,y-result + (progn ,@@forms)))) +@end example + +In a call like @w{@code{(my-list (pop foo) @dots{})}} the intermediate +binding to @code{x-result} ensures that the @code{pop} is not done +twice. But as a result the code is rather complex: the reader must +keep track of how @code{x-result} really just means the first +parameter of the call to the macro, and the required use of multiple +gensyms to avoid variable capture by @code{(progn ,@@forms)} obscures +things further. @code{cl-once-only} takes care of these details: + +@example +(defmacro my-list (x y &rest forms) + (cl-once-only (x y) + `(list ,x ,y ,x ,y + (progn ,@@forms)))) +@end example +@end defmac + @node Macros @chapter Macros @@ -2868,6 +2949,7 @@ out the property and value cells. @node Creating Symbols @section Creating Symbols +@cindex gensym @noindent These functions create unique symbols, typically for use as @@ -5028,13 +5110,13 @@ The above @code{incf} example could be written using @example (defmacro incf (place &optional n) (gv-letplace (getter setter) place - (macroexp-let2 nil v (or n 1) + (cl-once-only ((v (or n 1))) (funcall setter `(+ ,v ,getter))))) @end example @ignore (defmacro concatf (place &rest args) (gv-letplace (getter setter) place - (macroexp-let2 nil v (mapconcat 'identity args) + (cl-once-only ((v `(mapconcat 'identity ',args))) (funcall setter `(concat ,getter ,v))))) @end ignore @end defmac diff --git a/etc/NEWS b/etc/NEWS index c24f3f6ed5..350a4f6da1 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1370,6 +1370,10 @@ functions. +++ ** 'macroexp-let2*' can omit 'test' arg and use single-var bindings. ++++ +** New macro-writing macros, 'cl-with-gensyms' and 'cl-once-only'. +See the '(cl) Macro-Writing Macros' manual section for descriptions. + +++ ** New variable 'last-event-device' and new function 'device-class'. On X Windows, 'last-event-device' specifies the input extension device commit 800998808a1ebf83263ffbdea833c155fcbae7a6 Author: Lars Ingebrigtsen Date: Thu Apr 14 01:00:44 2022 +0200 Allow putting alternating colors on vtable rows * doc/misc/vtable.texi (Making A Table): Document it. * lisp/emacs-lisp/vtable.el (vtable): Add :row-colors. (make-vtable): Ditto. (vtable--compute-colors, vtable--color-blend): New functions. (vtable--insert-line): Take a line number argument and adjust callers. diff --git a/doc/misc/vtable.texi b/doc/misc/vtable.texi index 4f7b722a28..77cb8663af 100644 --- a/doc/misc/vtable.texi +++ b/doc/misc/vtable.texi @@ -387,11 +387,21 @@ The face to be used. This defaults to @code{vtable}. This face doesn't override the faces in the data, or the faces supplied by the getter and formatter functions. +@item :row-colors +If present, this should be a list of color names to be used as the +background color on the rows. If there are fewer colors here than +there are rows, the rows will be repeated. The most common use +case here is to have alternating background colors on the rows, so +this would usually be a list of two colors. + @item :column-colors If present, this should be a list of color names to be used as the background color on the columns. If there are fewer colors here than there are columns, the colors will be repeated. The most common use -case here is to have alternating background colors on the columns. +case here is to have alternating background colors on the columns, so +this would usually be a list of two colors. If both +@code{:row-colors} and @code{:column-colors} is present, the colors +will be ``blended'' to produce the final colors in the table. @item :actions This uses the same syntax as @code{define-keymap}, but doesn't refer diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index 3e521c94a5..e001043444 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -64,6 +64,8 @@ (sort-by :initarg :sort-by :accessor vtable-sort-by) (ellipsis :initarg :ellipsis :accessor vtable-ellipsis) (column-colors :initarg :column-colors :accessor vtable-column-colors) + (row-colors :initarg :row-colors :accessor vtable-row-colors) + (-cached-colors :initform nil :accessor vtable--cached-colors) (-cache :initform (make-hash-table :test #'equal))) "A object to hold the data for a table.") @@ -91,6 +93,7 @@ sort-by (ellipsis t) (insert t) + row-colors column-colors) "Create and insert a vtable at point. The vtable object is returned. If INSERT is nil, the table won't @@ -130,10 +133,15 @@ be inserted." :keymap keymap :separator-width separator-width :sort-by sort-by + :row-colors row-colors :column-colors column-colors :ellipsis ellipsis))) ;; Compute missing column data. (setf (vtable-columns table) (vtable--compute-columns table)) + ;; Compute colors if we have to mix them. + (when (and row-colors column-colors) + (setf (vtable--cached-colors table) + (vtable--compute-colors row-colors column-colors))) (unless sort-by (seq-do-indexed (lambda (column index) (when (vtable-column-primary column) @@ -144,6 +152,20 @@ be inserted." (vtable-insert table)) table)) +(defun vtable--compute-colors (row-colors column-colors) + (cl-loop for row in row-colors + collect (cl-loop for column in column-colors + collect (vtable--color-blend row column)))) + +;;; FIXME: This is probably not the right way to blend two colors, is +;;; it? +(defun vtable--color-blend (color1 color2) + (cl-destructuring-bind (r g b) + (mapcar (lambda (n) (* (/ n 2) 255.0)) + (cl-mapcar #'+ (color-name-to-rgb color1) + (color-name-to-rgb color2))) + (format "#%02X%02X%02X" r g b))) + ;;; Interface utility functions. (defun vtable-current-table () @@ -219,7 +241,8 @@ If it can't be found, return nil and don't move point." (error "Can't find the old object")) (setcar (cdr objects) object)) ;; Then update the cache... - (let ((line (assq old-object (car (vtable--cache table))))) + (let* ((line-number (seq-position old-object (car (vtable--cache table)))) + (line (elt (car (vtable--cache table)) line-number))) (unless line (error "Can't find cached object")) (setcar line object) @@ -230,7 +253,8 @@ If it can't be found, return nil and don't move point." (let ((keymap (get-text-property (point) 'keymap)) (start (point))) (delete-line) - (vtable--insert-line table line (nth 1 (vtable--cache table)) + (vtable--insert-line table line line-number + (nth 1 (vtable--cache table)) (vtable--spacer table)) (add-text-properties start (point) (list 'keymap keymap 'vtable table)))) @@ -285,7 +309,10 @@ This also updates the displayed table." (unless (vtable-goto-object after-object) (vtable-end-of-table)))) (let ((start (point))) - (vtable--insert-line table line (nth 1 cache) (vtable--spacer table)) + ;; FIXME: We have to adjust colors in lines below this if we + ;; have :row-colors. + (vtable--insert-line table line 0 + (nth 1 cache) (vtable--spacer table)) (add-text-properties start (point) (list 'keymap keymap 'vtable table))) ;; We may have inserted a non-numerical value into a previously @@ -374,20 +401,26 @@ This also updates the displayed table." (setq start (point))) (vtable--sort table) ;; Insert the data. - (dolist (line (car (vtable--cache table))) - (vtable--insert-line table line widths spacer - ellipsis ellipsis-width)) + (let ((line-number 0)) + (dolist (line (car (vtable--cache table))) + (vtable--insert-line table line line-number widths spacer + ellipsis ellipsis-width) + (setq line-number (1+ line-number)))) (add-text-properties start (point) (list 'keymap (vtable--make-keymap table) 'rear-nonsticky t 'vtable table)) (goto-char start))) -(defun vtable--insert-line (table line widths spacer +(defun vtable--insert-line (table line line-number widths spacer &optional ellipsis ellipsis-width) (let ((start (point)) (columns (vtable-columns table)) - (colors (vtable-column-colors table))) + (column-colors + (if (vtable-row-colors table) + (elt (vtable--cached-colors table) + (mod line-number (length (vtable-row-colors table)))) + (vtable-column-colors table)))) (seq-do-indexed (lambda (elem index) (let ((value (nth 0 elem)) @@ -449,14 +482,20 @@ This also updates the displayed table." (list 'space :width (list spacer))))) (put-text-property start (point) 'vtable-column index) - (when colors + (when column-colors (add-face-text-property start (point) (list :background - (elt colors (mod index (length colors))))))))) + (elt column-colors (mod index (length column-colors))))))))) (cdr line)) (insert "\n") - (put-text-property start (point) 'vtable-object (car line)))) + (put-text-property start (point) 'vtable-object (car line)) + (unless column-colors + (when-let ((row-colors (vtable-row-colors table))) + (add-face-text-property + start (point) + (list :background + (elt row-colors (mod line-number (length row-colors))))))))) (defun vtable--cache-key () (cons (frame-terminal) (window-width))) commit 864c8013fdd0a548d98d81dd21af2f88f207858a Author: Lars Ingebrigtsen Date: Wed Apr 13 23:30:55 2022 +0200 Make `C-h m' actually output the documentation for the major mode * lisp/help-fns.el (describe-mode): Get the documentation for the correct major mode. diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 5a38153aca..c06c0f3815 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -1913,7 +1913,7 @@ documentation for the major and minor modes of that buffer." (lambda (_) (help-function-def--button-function major file-name)))))) - (insert (help-split-fundoc (documentation major-mode) nil 'doc) + (insert (help-split-fundoc (documentation major) nil 'doc) (with-current-buffer buffer (help-fns--list-local-commands))) (ensure-empty-lines 1) commit 6c3869a104075403b10130294e7f307143e09a73 Author: Lars Ingebrigtsen Date: Wed Apr 13 23:19:01 2022 +0200 Add a new `vtable' face * doc/misc/vtable.texi (Introduction): Document it. * lisp/emacs-lisp/vtable.el (vtable): Add a new face. diff --git a/doc/misc/vtable.texi b/doc/misc/vtable.texi index 48e6301fce..4f7b722a28 100644 --- a/doc/misc/vtable.texi +++ b/doc/misc/vtable.texi @@ -88,9 +88,9 @@ Here's just about the simplest vtable that can be created: ("Gazonk" 45))) @end lisp -By default, vtable uses the @code{variable-pitch} font, and -right-aligns columns that have only numerical data (and left-aligns -the rest). +By default, vtable uses the @code{vtable} face (which inherits from +the @code{variable-pitch} face), and right-aligns columns that have +only numerical data (and left-aligns the rest). You'd normally want to name the columns: @@ -383,9 +383,9 @@ there are several tables in the same buffer, then this should be @code{nil}. @item :face -The face to be used. This defaults to @code{variable-pitch}. This -face doesn't override the faces in the data, or the faces supplied by -the getter and formatter functions. +The face to be used. This defaults to @code{vtable}. This face +doesn't override the faces in the data, or the faces supplied by the +getter and formatter functions. @item :column-colors If present, this should be a list of color names to be used as the diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index 98106e4670..3e521c94a5 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -28,6 +28,12 @@ (require 'text-property-search) (require 'mule-util) +(defface vtable + '((t :inherit variable-pitch)) + "Face used (by default) for vtables." + :version "29.1" + :group 'faces) + (cl-defstruct vtable-column "A vtable column." name @@ -79,7 +85,7 @@ formatter displayer (use-header-line t) - (face 'variable-pitch) + (face 'vtable) actions keymap (separator-width 1) sort-by commit 10c675b96042f184524cc9ea817cad14ff1f7fc0 Author: Juri Linkov Date: Wed Apr 13 20:56:34 2022 +0300 * lisp/comint.el (comint-dynamic-list-input-ring): Keep replaced text props. * lisp/minibuffer.el (completions-header-format): Remove unused text prop. diff --git a/lisp/comint.el b/lisp/comint.el index 56082f622a..88eaf1120e 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -1110,7 +1110,8 @@ See also `comint-read-input-ring'." (use-local-map keymap)) (forward-line 3) (while (search-backward "completion" nil 'move) - (replace-match "history reference"))) + (replace-match (apply #'propertize "history reference" + (text-properties-at (point)))))) (sit-for 0) (message "Hit space to flush") (setq comint-dynamic-list-input-ring-window-conf conf) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index f60af482da..e1947ae5dd 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -1895,9 +1895,7 @@ completions." :version "28.1") (defcustom completions-header-format - (propertize "%s possible completions:\n" - 'face 'shadow - :help "Please select a completion") + (propertize "%s possible completions:\n" 'face 'shadow) "Format of completions header. It may contain one %s to show the total count of completions. When nil, no header is shown." commit 88998aab941a19cb7e5a8f22d10d607035760c4a Author: Lars Ingebrigtsen Date: Wed Apr 13 19:25:43 2022 +0200 Regenerated ldefs-boot.el diff --git a/lisp/ldefs-boot.el b/lisp/ldefs-boot.el index 5dd4291461..cb2da55ed2 100644 --- a/lisp/ldefs-boot.el +++ b/lisp/ldefs-boot.el @@ -527,20 +527,6 @@ Return t if `allout-mode' is active in current buffer." nil t) (autoload 'allout-mode "allout" "\ Toggle Allout outline mode. -This is a minor mode. If called interactively, toggle the `Allout -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `allout-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - \\ Allout outline mode is a minor mode that provides extensive outline oriented formatting and manipulation. It enables @@ -801,6 +787,20 @@ CONCEALED: CLOSED: A TOPIC whose immediate OFFSPRING and body-text is CONCEALED. OPEN: A TOPIC that is not CLOSED, though its OFFSPRING or BODY may be. +This is a minor mode. If called interactively, toggle the +`Allout mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `allout-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (defalias 'outlinify-sticky #'outlineify-sticky) @@ -851,20 +851,6 @@ See `allout-widgets-mode' for allout widgets mode features.") (autoload 'allout-widgets-mode "allout-widgets" "\ Toggle Allout Widgets mode. -This is a minor mode. If called interactively, toggle the -`Allout-Widgets mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `allout-widgets-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Allout Widgets mode is an extension of Allout mode that provides graphical decoration of outline structure. It is meant to operate along with `allout-mode', via `allout-mode-hook'. @@ -883,6 +869,20 @@ The bullet-icon and guide line graphics provide keybindings and mouse bindings for easy outline navigation and exposure control, extending outline hot-spot navigation (see `allout-mode'). +This is a minor mode. If called interactively, toggle the +`Allout-Widgets mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `allout-widgets-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "allout-widgets" '("allout-")) @@ -1286,20 +1286,6 @@ Entering array mode calls the function `array-mode-hook'. (autoload 'artist-mode "artist" "\ Toggle Artist mode. -This is a minor mode. If called interactively, toggle the `Artist -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `artist-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Artist lets you draw lines, squares, rectangles and poly-lines, ellipses and circles with your mouse and/or keyboard. @@ -1495,6 +1481,20 @@ Keymap summary \\{artist-mode-map} +This is a minor mode. If called interactively, toggle the +`Artist mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `artist-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "artist" '("artist-")) @@ -1622,22 +1622,22 @@ or call the function `auto-insert-mode'.") (autoload 'auto-insert-mode "autoinsert" "\ Toggle Auto-insert mode, a global minor mode. -This is a minor mode. If called interactively, toggle the -`Auto-Insert mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +When Auto-insert mode is enabled, when new files are created you can +insert a template for the file depending on the mode of the buffer. + +This is a global minor mode. If called interactively, toggle the +`Auto-Insert mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='auto-insert-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -When Auto-insert mode is enabled, when new files are created you can -insert a template for the file depending on the mode of the buffer. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -1718,20 +1718,6 @@ should be non-nil)." nil nil) (autoload 'auto-revert-mode "autorevert" "\ Toggle reverting buffer when the file changes (Auto-Revert Mode). -This is a minor mode. If called interactively, toggle the -`Auto-Revert mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `auto-revert-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Auto-Revert Mode is a minor mode that affects only the current buffer. When enabled, it reverts the buffer when the file on disk changes. @@ -1747,6 +1733,20 @@ Use `global-auto-revert-mode' to automatically revert all buffers. Use `auto-revert-tail-mode' if you know that the file will only grow without being changed in the part that is already in the buffer. +This is a minor mode. If called interactively, toggle the +`Auto-Revert mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `auto-revert-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'turn-on-auto-revert-mode "autorevert" "\ @@ -1758,20 +1758,6 @@ This function is designed to be added to hooks, for example: (autoload 'auto-revert-tail-mode "autorevert" "\ Toggle reverting tail of buffer when the file grows. -This is a minor mode. If called interactively, toggle the -`Auto-Revert-Tail mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `auto-revert-tail-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When Auto-Revert Tail Mode is enabled, the tail of the file is constantly followed, as with the shell command `tail -f'. This means that whenever the file grows on disk (presumably because @@ -1787,6 +1773,21 @@ suppressed by setting `auto-revert-verbose' to nil. Use `auto-revert-mode' for changes other than appends! +This is a minor mode. If called interactively, toggle the +`Auto-Revert-Tail mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `auto-revert-tail-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'turn-on-auto-revert-tail-mode "autorevert" "\ @@ -1808,20 +1809,6 @@ or call the function `global-auto-revert-mode'.") (autoload 'global-auto-revert-mode "autorevert" "\ Toggle Global Auto-Revert Mode. -This is a minor mode. If called interactively, toggle the `Global -Auto-Revert mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='global-auto-revert-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Global Auto-Revert Mode is a global minor mode that reverts any buffer associated with a file when the file changes on disk. Use `auto-revert-mode' to revert a particular buffer. @@ -1839,6 +1826,21 @@ This function calls the hook `global-auto-revert-mode-hook'. It displays the text that `global-auto-revert-mode-text' specifies in the mode line. +This is a global minor mode. If called interactively, toggle the +`Global Auto-Revert mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='global-auto-revert-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "autorevert" '("auto-revert-" "global-auto-revert-")) @@ -1947,24 +1949,24 @@ or call the function `display-battery-mode'.") (autoload 'display-battery-mode "battery" "\ Toggle battery status display in mode line (Display Battery mode). -This is a minor mode. If called interactively, toggle the +The text displayed in the mode line is controlled by +`battery-mode-line-format' and `battery-status-function'. +The mode line is be updated every `battery-update-interval' +seconds. + +This is a global minor mode. If called interactively, toggle the `Display-Battery mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='display-battery-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -The text displayed in the mode line is controlled by -`battery-mode-line-format' and `battery-status-function'. -The mode line is be updated every `battery-update-interval' -seconds. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -2930,18 +2932,18 @@ columns on its right towards the left. Toggle hyperlinking bug references in the buffer (Bug Reference mode). This is a minor mode. If called interactively, toggle the -`Bug-Reference mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +`Bug-Reference mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `bug-reference-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -2949,18 +2951,19 @@ disabled. Like `bug-reference-mode', but only buttonize in comments and strings. This is a minor mode. If called interactively, toggle the -`Bug-Reference-Prog mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Bug-Reference-Prog mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `bug-reference-prog-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -4722,26 +4725,26 @@ Prefix argument is the same as for `checkdoc-defun'." t nil) (autoload 'checkdoc-minor-mode "checkdoc" "\ Toggle automatic docstring checking (Checkdoc minor mode). -This is a minor mode. If called interactively, toggle the `Checkdoc -minor mode' mode. If the prefix argument is positive, enable the -mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `checkdoc-minor-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - In Checkdoc minor mode, the usual bindings for `eval-defun' which is bound to \\\\[checkdoc-eval-defun] and `checkdoc-eval-current-buffer' are overridden to include checking of documentation strings. \\{checkdoc-minor-mode-map} +This is a minor mode. If called interactively, toggle the +`Checkdoc minor mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `checkdoc-minor-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'checkdoc-package-keywords "checkdoc" "\ @@ -4841,20 +4844,20 @@ or call the function `cl-font-lock-built-in-mode'.") (autoload 'cl-font-lock-built-in-mode "cl-font-lock" "\ Highlight built-in functions, variables, and types in `lisp-mode'. -This is a minor mode. If called interactively, toggle the +This is a global minor mode. If called interactively, toggle the `Cl-Font-Lock-Built-In mode' mode. If the prefix argument is -positive, enable the mode, and if it is zero or negative, disable the -mode. +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='cl-font-lock-built-in-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -4941,7 +4944,7 @@ The set of acceptable TYPEs (also called \"specializers\") is defined (autoload 'cl-generic-define-method "cl-generic" "\ -\(fn NAME QUALIFIERS ARGS USES-CNM FUNCTION)" nil nil) +\(fn NAME QUALIFIERS ARGS CALL-CON FUNCTION)" nil nil) (autoload 'cl-find-method "cl-generic" "\ @@ -5073,23 +5076,25 @@ or call the function `cl-old-struct-compat-mode'.") (autoload 'cl-old-struct-compat-mode "cl-lib" "\ Enable backward compatibility with old-style structs. + This can be needed when using code byte-compiled using the old macro-expansion of `cl-defstruct' that used vectors objects instead of record objects. -This is a minor mode. If called interactively, toggle the -`Cl-Old-Struct-Compat mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Cl-Old-Struct-Compat mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='cl-old-struct-compat-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -5617,48 +5622,49 @@ Runs `compilation-mode-hook' with `run-mode-hooks' (which see). (autoload 'compilation-shell-minor-mode "compile" "\ Toggle Compilation Shell minor mode. +When Compilation Shell minor mode is enabled, all the +error-parsing commands of the Compilation major mode are +available but bound to keys that don't collide with Shell mode. +See `compilation-mode'. + This is a minor mode. If called interactively, toggle the `Compilation-Shell minor mode' mode. If the prefix argument is -positive, enable the mode, and if it is zero or negative, disable the -mode. +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `compilation-shell-minor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -When Compilation Shell minor mode is enabled, all the -error-parsing commands of the Compilation major mode are -available but bound to keys that don't collide with Shell mode. -See `compilation-mode'. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) (autoload 'compilation-minor-mode "compile" "\ Toggle Compilation minor mode. +When Compilation minor mode is enabled, all the error-parsing +commands of Compilation major mode are available. See +`compilation-mode'. + This is a minor mode. If called interactively, toggle the -`Compilation minor mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Compilation minor mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `compilation-minor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -When Compilation minor mode is enabled, all the error-parsing -commands of Compilation major mode are available. See -`compilation-mode'. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -5688,19 +5694,20 @@ or call the function `dynamic-completion-mode'.") (autoload 'dynamic-completion-mode "completion" "\ Toggle dynamic word-completion on or off. -This is a minor mode. If called interactively, toggle the -`Dynamic-Completion mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Dynamic-Completion mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='dynamic-completion-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -6257,20 +6264,6 @@ or call the function `cua-mode'.") (autoload 'cua-mode "cua-base" "\ Toggle Common User Access style editing (CUA mode). -This is a minor mode. If called interactively, toggle the `Cua mode' -mode. If the prefix argument is positive, enable the mode, and if it -is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='cua-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - CUA mode is a global minor mode. When enabled, typed text replaces the active selection, and you can use C-z, C-x, C-c, and C-v to undo, cut, copy, and paste in addition to the normal Emacs @@ -6289,6 +6282,20 @@ You can customize `cua-enable-cua-keys' to completely disable the CUA bindings, or `cua-prefix-override-inhibit-delay' to change the prefix fallback behavior. +This is a global minor mode. If called interactively, toggle the +`Cua mode' mode. If the prefix argument is positive, enable the +mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='cua-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'cua-selection-mode "cua-base" "\ @@ -6312,21 +6319,23 @@ Enable CUA selection mode without the C-z/C-x/C-c/C-v bindings. (autoload 'cua-rectangle-mark-mode "cua-rect" "\ Toggle the region as rectangular. + Activates the region if needed. Only lasts until the region is deactivated. This is a minor mode. If called interactively, toggle the -`Cua-Rectangle-Mark mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Cua-Rectangle-Mark mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `cua-rectangle-mark-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -6347,23 +6356,25 @@ By convention, this is a list of symbols where each symbol stands for the Keep cursor outside of any `cursor-intangible' text property. This is a minor mode. If called interactively, toggle the -`Cursor-Intangible mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Cursor-Intangible mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `cursor-intangible-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) (autoload 'cursor-sensor-mode "cursor-sensor" "\ Handle the `cursor-sensor-functions' text property. + This property should hold a list of functions which react to the motion of the cursor. They're called with three arguments (WINDOW OLDPOS DIR) where WINDOW is the affected window, OLDPOS is the last known position of @@ -6371,18 +6382,18 @@ the cursor and DIR can be `entered' or `left' depending on whether the cursor is entering the area covered by the text-property property or leaving it. This is a minor mode. If called interactively, toggle the -`Cursor-Sensor mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +`Cursor-Sensor mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `cursor-sensor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -6772,25 +6783,25 @@ Mode used for cvs status output. (autoload 'cwarn-mode "cwarn" "\ Minor mode that highlights suspicious C and C++ constructions. +Suspicious constructs are highlighted using `font-lock-warning-face'. + +Note, in addition to enabling this minor mode, the major mode must +be included in the variable `cwarn-configuration'. By default C and +C++ modes are included. + This is a minor mode. If called interactively, toggle the `Cwarn -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +mode' mode. If the prefix argument is positive, enable the mode, +and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `cwarn-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -Suspicious constructs are highlighted using `font-lock-warning-face'. - -Note, in addition to enabling this minor mode, the major mode must -be included in the variable `cwarn-configuration'. By default C and -C++ modes are included. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -7243,20 +7254,6 @@ or call the function `delete-selection-mode'.") (autoload 'delete-selection-mode "delsel" "\ Toggle Delete Selection mode. -This is a minor mode. If called interactively, toggle the -`Delete-Selection mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='delete-selection-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When Delete Selection mode is enabled, typed text replaces the selection if the selection is active. Otherwise, typed text is just inserted at point regardless of any selection. @@ -7264,6 +7261,21 @@ point regardless of any selection. See `delete-selection-helper' and `delete-selection-pre-hook' for information on adapting behavior of commands in Delete Selection mode. +This is a global minor mode. If called interactively, toggle the +`Delete-Selection mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='delete-selection-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'delete-active-region "delsel" "\ @@ -7433,20 +7445,6 @@ or call the function `desktop-save-mode'.") (autoload 'desktop-save-mode "desktop" "\ Toggle desktop saving (Desktop Save mode). -This is a minor mode. If called interactively, toggle the -`Desktop-Save mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='desktop-save-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When Desktop Save mode is enabled, the state of Emacs is saved from one session to another. In particular, Emacs will save the desktop when it exits (this may prompt you; see the option `desktop-save'). The next @@ -7462,6 +7460,20 @@ To see all the options you can set, browse the `desktop' customization group. For further details, see info node `(emacs)Saving Emacs Sessions'. +This is a global minor mode. If called interactively, toggle the +`Desktop-Save mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='desktop-save-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (defvar desktop-locals-to-save '(desktop-locals-to-save truncate-lines case-fold-search case-replace fill-column overwrite-mode change-log-default-name line-number-mode column-number-mode size-indication-mode buffer-file-coding-system buffer-display-time indent-tabs-mode tab-width indicate-buffer-boundaries indicate-empty-lines show-trailing-whitespace) "\ @@ -7897,6 +7909,8 @@ diff command. OLD and NEW may each be a buffer or a buffer name. +Also see the `diff-entire-buffers' variable. + \(fn OLD NEW &optional SWITCHES NO-ASYNC)" t nil) (register-definition-prefixes "diff" '("diff-")) @@ -7926,21 +7940,21 @@ a diff with \\[diff-reverse-direction]. (autoload 'diff-minor-mode "diff-mode" "\ Toggle Diff minor mode. -This is a minor mode. If called interactively, toggle the `Diff minor -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +\\{diff-minor-mode-map} + +This is a minor mode. If called interactively, toggle the `Diff +minor mode' mode. If the prefix argument is positive, enable the +mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `diff-minor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -\\{diff-minor-mode-map} +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -8124,20 +8138,6 @@ Like \\[dired-jump] (`dired-jump') but in other window. (autoload 'dirtrack-mode "dirtrack" "\ Toggle directory tracking in shell buffers (Dirtrack mode). -This is a minor mode. If called interactively, toggle the `Dirtrack -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `dirtrack-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - This method requires that your shell prompt contain the current working directory at all times, and that you set the variable `dirtrack-list' to match the prompt. @@ -8146,6 +8146,20 @@ This is an alternative to `shell-dirtrack-mode', which works by tracking `cd' and similar commands which change the shell working directory. +This is a minor mode. If called interactively, toggle the +`Dirtrack mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `dirtrack-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'dirtrack "dirtrack" "\ @@ -8302,22 +8316,8 @@ in `.emacs'. (autoload 'display-fill-column-indicator-mode "display-fill-column-indicator" "\ Toggle display of `fill-column' indicator. -This uses `display-fill-column-indicator' internally. - -This is a minor mode. If called interactively, toggle the -`Display-Fill-Column-Indicator mode' mode. If the prefix argument is -positive, enable the mode, and if it is zero or negative, disable the -mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `display-fill-column-indicator-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +This uses `display-fill-column-indicator' internally. To change the position of the column displayed by default customize `display-fill-column-indicator-column'. You can change the @@ -8326,6 +8326,21 @@ The globalized version is `global-display-fill-column-indicator-mode', which see. See Info node `Displaying Boundaries' for details. +This is a minor mode. If called interactively, toggle the +`Display-Fill-Column-Indicator mode' mode. If the prefix +argument is positive, enable the mode, and if it is zero or +negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `display-fill-column-indicator-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (put 'global-display-fill-column-indicator-mode 'globalized-minor-mode t) @@ -8386,25 +8401,27 @@ list.") (autoload 'display-line-numbers-mode "display-line-numbers" "\ Toggle display of line numbers in the buffer. + This uses `display-line-numbers' internally. +To change the type of line numbers displayed by default, +customize `display-line-numbers-type'. To change the type while +the mode is on, set `display-line-numbers' directly. + This is a minor mode. If called interactively, toggle the -`Display-Line-Numbers mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Display-Line-Numbers mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `display-line-numbers-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -To change the type of line numbers displayed by default, -customize `display-line-numbers-type'. To change the type while -the mode is on, set `display-line-numbers' directly. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -8544,21 +8561,21 @@ to the next best mode." nil nil) (autoload 'doc-view-minor-mode "doc-view" "\ Toggle displaying buffer via Doc View (Doc View minor mode). -This is a minor mode. If called interactively, toggle the `Doc-View -minor mode' mode. If the prefix argument is positive, enable the -mode, and if it is zero or negative, disable the mode. +See the command `doc-view-mode' for more information on this mode. + +This is a minor mode. If called interactively, toggle the +`Doc-View minor mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `doc-view-minor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -See the command `doc-view-mode' for more information on this mode. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -8615,22 +8632,22 @@ Switch to *doctor* buffer and start giving psychotherapy." t nil) (autoload 'double-mode "double" "\ Toggle special insertion on double keypresses (Double mode). -This is a minor mode. If called interactively, toggle the `Double -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +When Double mode is enabled, some keys will insert different +strings when pressed twice. See `double-map' for details. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +This is a minor mode. If called interactively, toggle the +`Double mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `double-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -When Double mode is enabled, some keys will insert different -strings when pressed twice. See `double-map' for details. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -9325,22 +9342,22 @@ or call the function `global-ede-mode'.") (autoload 'global-ede-mode "ede" "\ Toggle global EDE (Emacs Development Environment) mode. -This is a minor mode. If called interactively, toggle the `Global Ede -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +This global minor mode enables `ede-minor-mode' in all buffers in +an EDE controlled project. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +This is a global minor mode. If called interactively, toggle the +`Global Ede mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='global-ede-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -This global minor mode enables `ede-minor-mode' in all buffers in -an EDE controlled project. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -10170,7 +10187,7 @@ It creates an autoload function for CNAME's constructor. ;;;### (autoloads nil "eldoc" "emacs-lisp/eldoc.el" (0 0 0 0)) ;;; Generated autoloads from emacs-lisp/eldoc.el -(push (purecopy '(eldoc 1 11 0)) package--builtin-versions) +(push (purecopy '(eldoc 1 11 1)) package--builtin-versions) ;;;*** @@ -10190,20 +10207,6 @@ or call the function `electric-pair-mode'.") (autoload 'electric-pair-mode "elec-pair" "\ Toggle automatic parens pairing (Electric Pair mode). -This is a minor mode. If called interactively, toggle the -`Electric-Pair mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='electric-pair-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Electric Pair mode is a global minor mode. When enabled, typing an open parenthesis automatically inserts the corresponding closing parenthesis, and vice versa. (Likewise for brackets, etc.). @@ -10212,25 +10215,40 @@ inserted around the region instead. To toggle the mode in a single buffer, use `electric-pair-local-mode'. +This is a global minor mode. If called interactively, toggle the +`Electric-Pair mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='electric-pair-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'electric-pair-local-mode "elec-pair" "\ Toggle `electric-pair-mode' only in this buffer. This is a minor mode. If called interactively, toggle the -`Electric-Pair-Local mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Electric-Pair-Local mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(buffer-local-value \\='electric-pair-mode \(current-buffer))'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -10244,26 +10262,26 @@ disabled. (autoload 'elide-head-mode "elide-head" "\ Toggle eliding (hiding) header material in the current buffer. -This is a minor mode. If called interactively, toggle the `Elide-Head -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `elide-head-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When Elide Header mode is enabled, headers are hidden according to `elide-head-headers-to-hide'. This is suitable as an entry on `find-file-hook' or appropriate mode hooks. +This is a minor mode. If called interactively, toggle the +`Elide-Head mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `elide-head-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'elide-head "elide-head" "\ @@ -10359,7 +10377,7 @@ displayed." t nil) ;;;;;; 0)) ;;; Generated autoloads from eshell/em-extpipe.el -(register-definition-prefixes "em-extpipe" '("eshell-")) +(register-definition-prefixes "em-extpipe" '("em-extpipe--or-with-catch" "eshell-")) ;;;*** @@ -10522,23 +10540,10 @@ the name is not known. (autoload 'enriched-mode "enriched" "\ Minor mode for editing text/enriched files. + These are files with embedded formatting information in the MIME standard text/enriched format. -This is a minor mode. If called interactively, toggle the `Enriched -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `enriched-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Turning the mode on or off runs `enriched-mode-hook'. More information about Enriched mode is available in the file @@ -10548,6 +10553,20 @@ Commands: \\{enriched-mode-map} +This is a minor mode. If called interactively, toggle the +`Enriched mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `enriched-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'enriched-encode "enriched" "\ @@ -10811,19 +10830,19 @@ enough, since keyservers have strict timeout settings. (autoload 'epa-mail-mode "epa-mail" "\ A minor-mode for composing encrypted/clearsigned mails. -This is a minor mode. If called interactively, toggle the `epa-mail -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +This is a minor mode. If called interactively, toggle the +`epa-mail mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `epa-mail-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -10884,19 +10903,19 @@ or call the function `epa-global-mail-mode'.") (autoload 'epa-global-mail-mode "epa-mail" "\ Minor mode to hook EasyPG into Mail mode. -This is a minor mode. If called interactively, toggle the +This is a global minor mode. If called interactively, toggle the `Epa-Global-Mail mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='epa-global-mail-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -11826,13 +11845,18 @@ non-nil, collect results from all servers. \(fn &optional SAVE-QUERY-AS-KILL TRY-ALL-SERVERS)" t nil) +(autoload 'eudc-format-inline-expansion-result "eudc" "\ +Format a query result according to `eudc-inline-expansion-format'. + +\(fn RES QUERY-ATTRS)" nil nil) + (autoload 'eudc-query-with-words "eudc" "\ Query the directory server, and return the matching responses. The variable `eudc-inline-query-format' controls how to associate the individual QUERY-WORDS with directory attribute names. After querying the server for the given string, the expansion specified by `eudc-inline-expansion-format' is applied to the -matches before returning them.inserted in the buffer at point. +matches before returning them. Multiple servers can be tried with the same query until one finds a match, see `eudc-inline-expansion-servers'. When TRY-ALL-SERVERS is non-nil, keep collecting results from subsequent servers after the first match. @@ -12356,22 +12380,22 @@ Adjust the height of the default face by the scale in the pinch event EVENT. (autoload 'buffer-face-mode "face-remap" "\ Minor mode for a buffer-specific default face. +When enabled, the face specified by the variable +`buffer-face-mode-face' is used to display the buffer text. + This is a minor mode. If called interactively, toggle the -`Buffer-Face mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +`Buffer-Face mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `buffer-face-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -When enabled, the face specified by the variable -`buffer-face-mode-face' is used to display the buffer text. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -13323,20 +13347,6 @@ region is invalid. This function saves match data. (autoload 'flymake-mode "flymake" "\ Toggle Flymake mode on or off. -This is a minor mode. If called interactively, toggle the `Flymake -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `flymake-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Flymake is an Emacs minor mode for on-the-fly syntax checking. Flymake collects diagnostic information from multiple sources, called backends, and visually annotates the buffer with the @@ -13367,6 +13377,20 @@ suitable for the current buffer. The commands `flymake-reporting-backends' summarize the situation, as does the special *Flymake log* buffer. +This is a minor mode. If called interactively, toggle the +`Flymake mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `flymake-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'flymake-mode-on "flymake" "\ @@ -13414,20 +13438,6 @@ Turn on `flyspell-mode' for comments and strings." t nil) (autoload 'flyspell-mode "flyspell" "\ Toggle on-the-fly spell checking (Flyspell mode). -This is a minor mode. If called interactively, toggle the `Flyspell -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `flyspell-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Flyspell mode is a buffer-local minor mode. When enabled, it spawns a single Ispell process and checks each word. The default flyspell behavior is to highlight incorrect words. @@ -13457,6 +13467,20 @@ in your init file. \\[flyspell-region] checks all words inside a region. \\[flyspell-buffer] checks the whole buffer. +This is a minor mode. If called interactively, toggle the +`Flyspell mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `flyspell-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'turn-on-flyspell "flyspell" "\ @@ -13503,20 +13527,6 @@ Turn off Follow mode. Please see the function `follow-mode'." nil nil) (autoload 'follow-mode "follow" "\ Toggle Follow mode. -This is a minor mode. If called interactively, toggle the `Follow -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `follow-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Follow mode is a minor mode that combines windows into one tall virtual window. This is accomplished by two main techniques: @@ -13546,6 +13556,20 @@ This command runs the normal hook `follow-mode-hook'. Keys specific to Follow mode: \\{follow-mode-map} +This is a minor mode. If called interactively, toggle the +`Follow mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `follow-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'follow-scroll-up-window "follow" "\ @@ -13636,24 +13660,24 @@ selected if the original window is the first one in the frame. (autoload 'footnote-mode "footnote" "\ Toggle Footnote mode. -This is a minor mode. If called interactively, toggle the `Footnote -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +Footnote mode is a buffer-local minor mode. If enabled, it +provides footnote support for `message-mode'. To get started, +play around with the following keys: +\\{footnote-minor-mode-map} + +This is a minor mode. If called interactively, toggle the +`Footnote mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `footnote-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -Footnote mode is a buffer-local minor mode. If enabled, it -provides footnote support for `message-mode'. To get started, -play around with the following keys: -\\{footnote-minor-mode-map} +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -14104,25 +14128,27 @@ for a description of this minor mode.") (autoload 'gdb-enable-debug "gdb-mi" "\ Toggle logging of transaction between Emacs and Gdb. + The log is stored in `gdb-debug-log' as an alist with elements whose cons is send, send-item or recv and whose cdr is the string being transferred. This list may grow up to a size of `gdb-debug-log-max' after which the oldest element (at the end of the list) is deleted every time a new one is added (at the front). -This is a minor mode. If called interactively, toggle the -`Gdb-Enable-Debug mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Gdb-Enable-Debug mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='gdb-enable-debug)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -14297,22 +14323,22 @@ regular expression that can be used as an element of (autoload 'glasses-mode "glasses" "\ Minor mode for making identifiers likeThis readable. -This is a minor mode. If called interactively, toggle the `Glasses -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +When this mode is active, it tries to add virtual +separators (like underscores) at places they belong to. + +This is a minor mode. If called interactively, toggle the +`Glasses mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `glasses-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -When this mode is active, it tries to add virtual -separators (like underscores) at places they belong to. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -14326,22 +14352,24 @@ separators (like underscores) at places they belong to. (autoload 'glyphless-display-mode "glyphless-mode" "\ Minor mode for displaying glyphless characters in the current buffer. + If enabled, all glyphless characters will be displayed as boxes that display their acronyms. This is a minor mode. If called interactively, toggle the -`Glyphless-Display mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Glyphless-Display mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `glyphless-display-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -14945,21 +14973,22 @@ If FORCE is non-nil, replace the old ones. (autoload 'gnus-mailing-list-mode "gnus-ml" "\ Minor mode for providing mailing-list commands. +\\{gnus-mailing-list-mode-map} + This is a minor mode. If called interactively, toggle the -`Gnus-Mailing-List mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Gnus-Mailing-List mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `gnus-mailing-list-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -\\{gnus-mailing-list-mode-map} +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -15417,18 +15446,18 @@ Also fontifies the buffer appropriately (see `goto-address-fontify-p' and Minor mode to buttonize URLs and e-mail addresses in the current buffer. This is a minor mode. If called interactively, toggle the -`Goto-Address mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +`Goto-Address mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `goto-address-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -15464,18 +15493,19 @@ See `goto-address-mode' for more information on Goto-Address mode. Like `goto-address-mode', but only for comments and strings. This is a minor mode. If called interactively, toggle the -`Goto-Address-Prog mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Goto-Address-Prog mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `goto-address-prog-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -15587,8 +15617,8 @@ Set up `compilation-exit-message-function' and run `grep-setup-hook'." nil nil) Compute the defaults for the `grep' command. The value depends on `grep-command', `grep-template', `grep-use-null-device', `grep-find-command', `grep-find-template', -`grep-use-null-filename-separator', `grep-find-use-xargs' and -`grep-highlight-matches'." nil nil) +`grep-use-null-filename-separator', `grep-find-use-xargs', +`grep-highlight-matches', and `grep-quoting-style'." nil nil) (autoload 'grep-mode "grep" "\ Sets `grep-last-buffer' and `compilation-window-height'. @@ -15630,7 +15660,7 @@ easily repeat a find command. \(fn COMMAND-ARGS)" t nil) -(defalias 'find-grep 'grep-find) +(defalias 'find-grep #'grep-find) (autoload 'lgrep "grep" "\ Run grep, searching for REGEXP in FILES in directory DIR. @@ -15692,7 +15722,7 @@ command before it's run. \(fn REGEXP &optional FILES DIR CONFIRM TEMPLATE)" t nil) -(defalias 'rzgrep 'zrgrep) +(defalias 'rzgrep #'zrgrep) (register-definition-prefixes "grep" '("grep-" "kill-grep" "rgrep-")) @@ -15811,19 +15841,19 @@ or call the function `gud-tooltip-mode'.") (autoload 'gud-tooltip-mode "gud" "\ Toggle the display of GUD tooltips. -This is a minor mode. If called interactively, toggle the -`Gud-Tooltip mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Gud-Tooltip mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='gud-tooltip-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -16565,20 +16595,6 @@ This discards the buffer's undo information." t nil) (autoload 'hi-lock-mode "hi-lock" "\ Toggle selective highlighting of patterns (Hi Lock mode). -This is a minor mode. If called interactively, toggle the `Hi-Lock -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `hi-lock-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Hi Lock mode is automatically enabled when you invoke any of the highlighting commands listed below, such as \\[highlight-regexp]. To enable Hi Lock mode in all buffers, use `global-hi-lock-mode' @@ -16639,6 +16655,20 @@ position (number of characters into buffer) Hi-lock: end is found. A mode is excluded if it's in the list `hi-lock-exclude-modes'. +This is a minor mode. If called interactively, toggle the +`Hi-Lock mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `hi-lock-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (put 'global-hi-lock-mode 'globalized-minor-mode t) @@ -16787,20 +16817,6 @@ Populate MENU with a menu item to highlight symbol at CLICK. (autoload 'hide-ifdef-mode "hideif" "\ Toggle features to hide/show #ifdef blocks (Hide-Ifdef mode). -This is a minor mode. If called interactively, toggle the `Hide-Ifdef -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `hide-ifdef-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Hide-Ifdef mode is a buffer-local minor mode for use with C and C-like major modes. When enabled, code within #ifdef constructs that the C preprocessor would eliminate may be hidden from view. @@ -16835,6 +16851,20 @@ Several variables affect how the hiding is done: \\{hide-ifdef-mode-map} +This is a minor mode. If called interactively, toggle the +`Hide-Ifdef mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `hide-ifdef-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "hideif" '("backward-ifdef" "down-ifdef" "forward-ifdef" "hide-ifdef" "hif-" "intern-safe" "next-ifdef" "previous-ifdef" "show-ifdef" "up-ifdef")) @@ -16875,20 +16905,6 @@ whitespace. Case does not matter.") (autoload 'hs-minor-mode "hideshow" "\ Minor mode to selectively hide/show code and comment blocks. -This is a minor mode. If called interactively, toggle the `hs minor -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `hs-minor-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When hideshow minor mode is on, the menu bar is augmented with hideshow commands and the hideshow commands are enabled. The value (hs . t) is added to `buffer-invisibility-spec'. @@ -16905,6 +16921,20 @@ Lastly, the normal hook `hs-minor-mode-hook' is run using `run-hooks'. Key bindings: \\{hs-minor-mode-map} +This is a minor mode. If called interactively, toggle the `hs +minor mode' mode. If the prefix argument is positive, enable the +mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `hs-minor-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'turn-off-hideshow "hideshow" "\ @@ -16928,20 +16958,6 @@ Unconditionally turn off `hs-minor-mode'." nil nil) (autoload 'highlight-changes-mode "hilit-chg" "\ Toggle highlighting changes in this buffer (Highlight Changes mode). -This is a minor mode. If called interactively, toggle the -`Highlight-Changes mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `highlight-changes-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When Highlight Changes is enabled, changes are marked with a text property. Normally they are displayed in a distinctive face, but command \\[highlight-changes-visible-mode] can be used to toggle @@ -16957,25 +16973,25 @@ through various faces. buffer with the contents of a file \\[highlight-compare-buffers] highlights differences between two buffers. -\(fn &optional ARG)" t nil) - -(autoload 'highlight-changes-visible-mode "hilit-chg" "\ -Toggle visibility of highlighting due to Highlight Changes mode. - This is a minor mode. If called interactively, toggle the -`Highlight-Changes-Visible mode' mode. If the prefix argument is -positive, enable the mode, and if it is zero or negative, disable the -mode. +`Highlight-Changes mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, -evaluate `highlight-changes-visible-mode'. +evaluate `highlight-changes-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. -The mode's hook is called both when the mode is enabled and when it is -disabled. +\(fn &optional ARG)" t nil) + +(autoload 'highlight-changes-visible-mode "hilit-chg" "\ +Toggle visibility of highlighting due to Highlight Changes mode. Highlight Changes Visible mode only has an effect when Highlight Changes mode is on. When enabled, the changed text is displayed @@ -16986,6 +17002,21 @@ The default value can be customized with variable This command does not itself set Highlight Changes mode. +This is a minor mode. If called interactively, toggle the +`Highlight-Changes-Visible mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `highlight-changes-visible-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'highlight-changes-remove-highlight "hilit-chg" "\ @@ -17117,26 +17148,34 @@ argument VERBOSE non-nil makes the function verbose. ;;; Generated autoloads from hl-line.el (autoload 'hl-line-mode "hl-line" "\ -Toggle highlighting of the current line. +Toggle highlighting of the current line (Hl-Line mode). -This is a minor mode. If called interactively, toggle the `Hl-Line -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +Hl-Line mode is a buffer-local minor mode. If +`hl-line-sticky-flag' is non-nil, Hl-Line mode highlights the +line about the buffer's point in all windows. Caveat: the +buffer's point might be different from the point of a +non-selected window. Hl-Line mode uses the function +`hl-line-highlight' on `post-command-hook' in this case. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +When `hl-line-sticky-flag' is nil, Hl-Line mode highlights the +line about point in the selected window only. + +This is a minor mode. If called interactively, toggle the +`Hl-Line mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `hl-line-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) -(put 'global-hl-line-mode 'globalized-minor-mode t) - (defvar global-hl-line-mode nil "\ Non-nil if Global Hl-Line mode is enabled. See the `global-hl-line-mode' command @@ -17148,22 +17187,32 @@ or call the function `global-hl-line-mode'.") (custom-autoload 'global-hl-line-mode "hl-line" nil) (autoload 'global-hl-line-mode "hl-line" "\ -Toggle Hl-Line mode in all buffers. -With prefix ARG, enable Global Hl-Line mode if ARG is positive; -otherwise, disable it. +Toggle line highlighting in all buffers (Global Hl-Line mode). -If called from Lisp, toggle the mode if ARG is `toggle'. -Enable the mode if ARG is nil, omitted, or is a positive number. +If `global-hl-line-sticky-flag' is non-nil, Global Hl-Line mode +highlights the line about the current buffer's point in all live +windows. + +Global-Hl-Line mode uses the function `global-hl-line-highlight' +on `post-command-hook'. + +This is a global minor mode. If called interactively, toggle the +`Global Hl-Line mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number. -Hl-Line mode is enabled in all buffers where `hl-line-turn-on' would -do it. +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='global-hl-line-mode)'. -See `hl-line-mode' for more information on Hl-Line mode. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) -(register-definition-prefixes "hl-line" '("hl-line-")) +(register-definition-prefixes "hl-line" '("global-hl-line-" "hl-line-")) ;;;*** @@ -17561,22 +17610,22 @@ or call the function `fido-mode'.") (autoload 'fido-mode "icomplete" "\ An enhanced `icomplete-mode' that emulates `ido-mode'. -This is a minor mode. If called interactively, toggle the `Fido mode' -mode. If the prefix argument is positive, enable the mode, and if it -is zero or negative, disable the mode. +This global minor mode makes minibuffer completion behave +more like `ido-mode' than regular `icomplete-mode'. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +This is a global minor mode. If called interactively, toggle the +`Fido mode' mode. If the prefix argument is positive, enable the +mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='fido-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -This global minor mode makes minibuffer completion behave -more like `ido-mode' than regular `icomplete-mode'. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -17593,20 +17642,6 @@ or call the function `icomplete-mode'.") (autoload 'icomplete-mode "icomplete" "\ Toggle incremental minibuffer completion (Icomplete mode). -This is a minor mode. If called interactively, toggle the `Icomplete -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='icomplete-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When this global minor mode is enabled, typing in the minibuffer continuously displays a list of possible completions that match the string you have typed. See `icomplete-completions' for a @@ -17620,6 +17655,20 @@ completions: \\{icomplete-minibuffer-map} +This is a global minor mode. If called interactively, toggle the +`Icomplete mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='icomplete-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (defvar icomplete-vertical-mode nil "\ @@ -17635,26 +17684,27 @@ or call the function `icomplete-vertical-mode'.") (autoload 'icomplete-vertical-mode "icomplete" "\ Toggle vertical candidate display in `icomplete-mode' or `fido-mode'. -This is a minor mode. If called interactively, toggle the -`Icomplete-Vertical mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='icomplete-vertical-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - If none of these modes are on, turn on `icomplete-mode'. As many completion candidates as possible are displayed, depending on the value of `max-mini-window-height', and the way the mini-window is resized depends on `resize-mini-windows'. +This is a global minor mode. If called interactively, toggle the +`Icomplete-Vertical mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='icomplete-vertical-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (defvar fido-vertical-mode nil "\ @@ -17669,22 +17719,23 @@ or call the function `fido-vertical-mode'.") (autoload 'fido-vertical-mode "icomplete" "\ Toggle vertical candidate display in `fido-mode'. + When turning on, if non-vertical `fido-mode' is off, turn it on. If it's on, just add the vertical display. -This is a minor mode. If called interactively, toggle the -`Fido-Vertical mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Fido-Vertical mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='fido-vertical-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) (when (locate-library "obsolete/iswitchb") @@ -18218,21 +18269,19 @@ See `inferior-emacs-lisp-mode' for details. (autoload 'iimage-mode "iimage" "\ Toggle Iimage mode on or off. -This is a minor mode. If called interactively, toggle the `Iimage -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +This is a minor mode. If called interactively, toggle the +`Iimage mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `iimage-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -\\{iimage-mode-map} +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -18269,6 +18318,16 @@ be determined. \(fn FILE)" nil nil) +(make-obsolete 'image-type-from-file-name 'image-supported-file-p '"29.1") + +(autoload 'image-supported-file-p "image" "\ +Say whether Emacs has native support for displaying TYPE. +The value is a symbol specifying the image type, or nil if type +cannot be determined (or if Emacs doesn't have built-in support +for the image type). + +\(fn FILE)" nil nil) + (autoload 'image-type "image" "\ Determine and return image type. SOURCE is an image file name or image data. @@ -18549,22 +18608,24 @@ Jump to thumbnail buffer." t nil) (autoload 'image-dired-minor-mode "image-dired" "\ Setup easy-to-use keybindings for the commands to be used in Dired mode. + Note that n, p and and will be hijacked and bound to `image-dired-dired-next-line' and `image-dired-dired-previous-line'. This is a minor mode. If called interactively, toggle the -`Image-Dired minor mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Image-Dired minor mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `image-dired-minor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -18664,23 +18725,23 @@ or call the function `auto-image-file-mode'.") (autoload 'auto-image-file-mode "image-file" "\ Toggle visiting of image files as images (Auto Image File mode). -This is a minor mode. If called interactively, toggle the +An image file is one whose name has an extension in +`image-file-name-extensions', or matches a regexp in +`image-file-name-regexps'. + +This is a global minor mode. If called interactively, toggle the `Auto-Image-File mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='auto-image-file-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -An image file is one whose name has an extension in -`image-file-name-extensions', or matches a regexp in -`image-file-name-regexps'. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -18702,23 +18763,23 @@ Key bindings: (autoload 'image-minor-mode "image-mode" "\ Toggle Image minor mode in this buffer. +Image minor mode provides the key \\\\[image-toggle-display], +to switch back to `image-mode' and display an image file as the +actual image. + This is a minor mode. If called interactively, toggle the `Image minor mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `image-minor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -Image minor mode provides the key \\\\[image-toggle-display], -to switch back to `image-mode' and display an image file as the -actual image. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -19663,20 +19724,6 @@ available on the net." t nil) (autoload 'ispell-minor-mode "ispell" "\ Toggle last-word spell checking (Ispell minor mode). -This is a minor mode. If called interactively, toggle the `ISpell -minor mode' mode. If the prefix argument is positive, enable the -mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `ispell-minor-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Ispell minor mode is a buffer-local minor mode. When enabled, typing SPC or RET warns you if the previous word is incorrectly spelled. @@ -19688,6 +19735,20 @@ SPC. For spell-checking \"on the fly\", not just after typing SPC or RET, use `flyspell-mode'. +This is a minor mode. If called interactively, toggle the +`ISpell minor mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `ispell-minor-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'ispell-message "ispell" "\ @@ -19997,11 +20058,9 @@ and the return value is the length of the conversion. (global-set-key "\C-x\C-k" #'kmacro-keymap) (autoload 'kmacro-keymap "kmacro" "Keymap for keyboard macro commands." t 'keymap) -(autoload 'kmacro-exec-ring-item "kmacro" "\ +(define-obsolete-function-alias 'kmacro-exec-ring-item #'funcall "29.1" "\ Execute item ITEM from the macro ring. -ARG is the number of times to execute the item. - -\(fn ITEM ARG)" nil nil) +ARG is the number of times to execute the item.") (autoload 'kmacro-start-macro "kmacro" "\ Record subsequent keyboard input, defining a keyboard macro. @@ -20102,11 +20161,19 @@ If kbd macro currently being defined end it before activating it. \(fn EVENT)" t nil) +(autoload 'kmacro "kmacro" "\ +Create a `kmacro' for macro bound to symbol or key. +KEYS should be a vector or a string that obeys `key-valid-p'. + +\(fn KEYS &optional COUNTER FORMAT)" nil nil) + (autoload 'kmacro-lambda-form "kmacro" "\ -Create lambda form for macro bound to symbol or key. + \(fn MAC &optional COUNTER FORMAT)" nil nil) +(make-obsolete 'kmacro-lambda-form 'kmacro '"29.1") + (register-definition-prefixes "kmacro" '("kdb-macro-redisplay" "kmacro-")) ;;;*** @@ -20361,21 +20428,21 @@ sleep in seconds. (autoload 'linum-mode "linum" "\ Toggle display of line numbers in the left margin (Linum mode). +Linum mode is a buffer-local minor mode. + This is a minor mode. If called interactively, toggle the `Linum -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +mode' mode. If the prefix argument is positive, enable the mode, +and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `linum-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -Linum mode is a buffer-local minor mode. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -20767,7 +20834,7 @@ and then select the region of un-tablified names and use \(fn TOP BOTTOM &optional MACRO)" t nil) (define-key ctl-x-map "q" 'kbd-macro-query) -(register-definition-prefixes "macros" '("macros--insert-vector-macro")) +(register-definition-prefixes "macros" '("macro")) ;;;*** @@ -20953,24 +21020,24 @@ or call the function `mail-abbrevs-mode'.") (autoload 'mail-abbrevs-mode "mailabbrev" "\ Toggle abbrev expansion of mail aliases (Mail Abbrevs mode). -This is a minor mode. If called interactively, toggle the -`Mail-Abbrevs mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +Mail Abbrevs mode is a global minor mode. When enabled, +abbrev-like expansion is performed when editing certain mail +headers (those specified by `mail-abbrev-mode-regexp'), based on +the entries in your `mail-personal-alias-file'. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +This is a global minor mode. If called interactively, toggle the +`Mail-Abbrevs mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='mail-abbrevs-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -Mail Abbrevs mode is a global minor mode. When enabled, -abbrev-like expansion is performed when editing certain mail -headers (those specified by `mail-abbrev-mode-regexp'), based on -the entries in your `mail-personal-alias-file'. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -21346,20 +21413,6 @@ Populate MENU with commands that open a man page at point. (autoload 'master-mode "master" "\ Toggle Master mode. -This is a minor mode. If called interactively, toggle the `Master -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `master-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When Master mode is enabled, you can scroll the slave buffer using the following commands: @@ -21369,6 +21422,20 @@ The slave buffer is stored in the buffer-local variable `master-of'. You can set this variable using `master-set-slave'. You can show yourself the value of `master-of' by calling `master-show-slave'. +This is a minor mode. If called interactively, toggle the +`Master mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `master-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "master" '("master-")) @@ -21391,25 +21458,25 @@ or call the function `minibuffer-depth-indicate-mode'.") (autoload 'minibuffer-depth-indicate-mode "mb-depth" "\ Toggle Minibuffer Depth Indication mode. -This is a minor mode. If called interactively, toggle the +Minibuffer Depth Indication mode is a global minor mode. When +enabled, any recursive use of the minibuffer will show the +recursion depth in the minibuffer prompt. This is only useful if +`enable-recursive-minibuffers' is non-nil. + +This is a global minor mode. If called interactively, toggle the `Minibuffer-Depth-Indicate mode' mode. If the prefix argument is -positive, enable the mode, and if it is zero or negative, disable the -mode. +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='minibuffer-depth-indicate-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -Minibuffer Depth Indication mode is a global minor mode. When -enabled, any recursive use of the minibuffer will show the -recursion depth in the minibuffer prompt. This is only useful if -`enable-recursive-minibuffers' is non-nil. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -21960,19 +22027,19 @@ or call the function `midnight-mode'.") (autoload 'midnight-mode "midnight" "\ Non-nil means run `midnight-hook' at midnight. -This is a minor mode. If called interactively, toggle the `Midnight -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Midnight mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='midnight-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -22015,21 +22082,6 @@ or call the function `minibuffer-electric-default-mode'.") (autoload 'minibuffer-electric-default-mode "minibuf-eldef" "\ Toggle Minibuffer Electric Default mode. -This is a minor mode. If called interactively, toggle the -`Minibuffer-Electric-Default mode' mode. If the prefix argument is -positive, enable the mode, and if it is zero or negative, disable the -mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='minibuffer-electric-default-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Minibuffer Electric Default mode is a global minor mode. When enabled, minibuffer prompts that show a default value only show the default when it's applicable -- that is, when hitting RET @@ -22037,6 +22089,21 @@ would yield the default value. If the user modifies the input such that hitting RET would enter a non-default value, the prompt is modified to remove the default indication. +This is a global minor mode. If called interactively, toggle the +`Minibuffer-Electric-Default mode' mode. If the prefix argument +is positive, enable the mode, and if it is zero or negative, +disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='minibuffer-electric-default-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "minibuf-eldef" '("minibuf")) @@ -22602,22 +22669,22 @@ or call the function `msb-mode'.") (autoload 'msb-mode "msb" "\ Toggle Msb mode. -This is a minor mode. If called interactively, toggle the `Msb mode' -mode. If the prefix argument is positive, enable the mode, and if it -is zero or negative, disable the mode. +This mode overrides the binding(s) of `mouse-buffer-menu' to provide a +different buffer menu using the function `msb'. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +This is a global minor mode. If called interactively, toggle the +`Msb mode' mode. If the prefix argument is positive, enable the +mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='msb-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -This mode overrides the binding(s) of `mouse-buffer-menu' to provide a -different buffer menu using the function `msb'. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -22954,19 +23021,19 @@ or call the function `mouse-wheel-mode'.") (autoload 'mouse-wheel-mode "mwheel" "\ Toggle mouse wheel support (Mouse Wheel mode). -This is a minor mode. If called interactively, toggle the -`Mouse-Wheel mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Mouse-Wheel mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='mouse-wheel-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -24901,21 +24968,21 @@ Turning on outline mode calls the value of `text-mode-hook' and then of (autoload 'outline-minor-mode "outline" "\ Toggle Outline minor mode. -This is a minor mode. If called interactively, toggle the `Outline -minor mode' mode. If the prefix argument is positive, enable the -mode, and if it is zero or negative, disable the mode. +See the command `outline-mode' for more information on this mode. + +This is a minor mode. If called interactively, toggle the +`Outline minor mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `outline-minor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -See the command `outline-mode' for more information on this mode. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -25960,19 +26027,19 @@ or call the function `pixel-scroll-mode'.") (autoload 'pixel-scroll-mode "pixel-scroll" "\ A minor mode to scroll text pixel-by-pixel. -This is a minor mode. If called interactively, toggle the -`Pixel-Scroll mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Pixel-Scroll mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='pixel-scroll-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -25988,23 +26055,24 @@ or call the function `pixel-scroll-precision-mode'.") (autoload 'pixel-scroll-precision-mode "pixel-scroll" "\ Toggle pixel scrolling. + When enabled, this minor mode allows to scroll the display precisely, according to the turning of the mouse wheel. -This is a minor mode. If called interactively, toggle the +This is a global minor mode. If called interactively, toggle the `Pixel-Scroll-Precision mode' mode. If the prefix argument is -positive, enable the mode, and if it is zero or negative, disable the -mode. +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='pixel-scroll-precision-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -26689,8 +26757,12 @@ are both set to t. (autoload 'proced "proced" "\ Generate a listing of UNIX system processes. \\ -If invoked with optional ARG, do not select the window displaying -the process information. +If invoked with optional non-negative ARG, do not select the +window displaying the process information. + +If `proced-show-remote-processes' is non-nil or the command is +invoked with a negative ARG `\\[universal-argument] \\[negative-argument]', and `default-directory' +points to a remote host, the system processes of that host are shown. This function runs the normal hook `proced-post-display-hook'. @@ -27814,19 +27886,20 @@ or call the function `rcirc-track-minor-mode'.") (autoload 'rcirc-track-minor-mode "rcirc" "\ Global minor mode for tracking activity in rcirc buffers. -This is a minor mode. If called interactively, toggle the -`Rcirc-Track minor mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Rcirc-Track minor mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='rcirc-track-minor-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -27874,20 +27947,6 @@ or call the function `recentf-mode'.") (autoload 'recentf-mode "recentf" "\ Toggle \"Open Recent\" menu (Recentf mode). -This is a minor mode. If called interactively, toggle the `Recentf -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='recentf-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When Recentf mode is enabled, a \"Open Recent\" submenu is displayed in the \"File\" menu, containing a list of files that were operated on recently, in the most-recently-used order. @@ -27899,6 +27958,20 @@ buffers you switch to a lot, you can say something like the following: (add-hook 'buffer-list-update-hook 'recentf-track-opened-file) +This is a global minor mode. If called interactively, toggle the +`Recentf mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='recentf-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "recentf" '("recentf-")) @@ -28042,22 +28115,22 @@ with a prefix argument, prompt for START-AT and FORMAT. (autoload 'rectangle-mark-mode "rect" "\ Toggle the region as rectangular. +Activates the region if it's inactive and Transient Mark mode is +on. Only lasts until the region is next deactivated. + This is a minor mode. If called interactively, toggle the `Rectangle-Mark mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `rectangle-mark-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -Activates the region if it's inactive and Transient Mark mode is -on. Only lasts until the region is next deactivated. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -28085,20 +28158,6 @@ on. Only lasts until the region is next deactivated. (autoload 'refill-mode "refill" "\ Toggle automatic refilling (Refill mode). -This is a minor mode. If called interactively, toggle the `Refill -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `refill-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Refill mode is a buffer-local minor mode. When enabled, the current paragraph is refilled as you edit. Self-inserting characters only cause refilling if they would cause @@ -28106,6 +28165,20 @@ auto-filling. For true \"word wrap\" behavior, use `visual-line-mode' instead. +This is a minor mode. If called interactively, toggle the +`Refill mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `refill-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "refill" '("refill-")) @@ -28125,20 +28198,6 @@ Turn on RefTeX mode." nil nil) (autoload 'reftex-mode "reftex" "\ Minor mode with distinct support for \\label, \\ref and \\cite in LaTeX. -This is a minor mode. If called interactively, toggle the `Reftex -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `reftex-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - \\A Table of Contents of the entire (multifile) document with browsing capabilities is available with `\\[reftex-toc]'. @@ -28167,6 +28226,20 @@ on the menu bar. ------------------------------------------------------------------------------ +This is a minor mode. If called interactively, toggle the +`Reftex mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `reftex-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'reftex-reset-scanning-information "reftex" "\ @@ -28355,23 +28428,24 @@ or call the function `repeat-mode'.") (autoload 'repeat-mode "repeat" "\ Toggle Repeat mode. + When Repeat mode is enabled, and the command symbol has the property named `repeat-map', this map is activated temporarily for the next command. See `describe-repeat-maps' for a list of all repeatable commands. -This is a minor mode. If called interactively, toggle the `Repeat -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Repeat mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='repeat-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -28448,24 +28522,24 @@ report errors as appropriate for this kind of usage. (autoload 'reveal-mode "reveal" "\ Toggle uncloaking of invisible text near point (Reveal mode). -This is a minor mode. If called interactively, toggle the `Reveal -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +Reveal mode is a buffer-local minor mode. When enabled, it +reveals invisible text around point. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +Also see the `reveal-auto-hide' variable. -To check whether the minor mode is enabled in the current buffer, -evaluate `reveal-mode'. +This is a minor mode. If called interactively, toggle the +`Reveal mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -The mode's hook is called both when the mode is enabled and when it is -disabled. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. -Reveal mode is a buffer-local minor mode. When enabled, it -reveals invisible text around point. +To check whether the minor mode is enabled in the current buffer, +evaluate `reveal-mode'. -Also see the `reveal-auto-hide' variable. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -28481,21 +28555,22 @@ or call the function `global-reveal-mode'.") (autoload 'global-reveal-mode "reveal" "\ Toggle Reveal mode in all buffers (Global Reveal mode). + Reveal mode renders invisible text around point visible again. -This is a minor mode. If called interactively, toggle the `Global -Reveal mode' mode. If the prefix argument is positive, enable the -mode, and if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Global Reveal mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='global-reveal-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -29236,20 +29311,6 @@ Validation will be enabled if `rng-nxml-auto-validate-flag' is non-nil." t nil) (autoload 'rng-validate-mode "rng-valid" "\ Minor mode performing continual validation against a RELAX NG schema. -This is a minor mode. If called interactively, toggle the -`Rng-Validate mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `rng-validate-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Checks whether the buffer is a well-formed XML 1.0 document, conforming to the XML Namespaces Recommendation and valid against a RELAX NG schema. The mode-line indicates whether it is or not. Any @@ -29270,6 +29331,20 @@ conventionally have a suffix of `.rnc'). The variable `rng-schema-locating-files' specifies files containing rules to use for finding the schema. +This is a minor mode. If called interactively, toggle the +`Rng-Validate mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `rng-validate-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "rng-valid" '("rng-")) @@ -29396,23 +29471,23 @@ highlighting. (autoload 'rst-minor-mode "rst" "\ Toggle ReST minor mode. -This is a minor mode. If called interactively, toggle the `Rst minor -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +When ReST minor mode is enabled, the ReST mode keybindings +are installed on top of the major mode bindings. Use this +for modes derived from Text mode, like Mail mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +This is a minor mode. If called interactively, toggle the `Rst +minor mode' mode. If the prefix argument is positive, enable the +mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `rst-minor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -When ReST minor mode is enabled, the ReST mode keybindings -are installed on top of the major mode bindings. Use this -for modes derived from Text mode, like Mail mode. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -29456,18 +29531,18 @@ Use the command `ruler-mode' to change this variable.") Toggle display of ruler in header line (Ruler mode). This is a minor mode. If called interactively, toggle the `Ruler -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +mode' mode. If the prefix argument is positive, enable the mode, +and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `ruler-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -29736,20 +29811,6 @@ or call the function `savehist-mode'.") (autoload 'savehist-mode "savehist" "\ Toggle saving of minibuffer history (Savehist mode). -This is a minor mode. If called interactively, toggle the `Savehist -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='savehist-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When Savehist mode is enabled, minibuffer history is saved to `savehist-file' periodically and when exiting Emacs. When Savehist mode is enabled for the first time in an Emacs session, @@ -29776,6 +29837,20 @@ This mode should normally be turned on from your Emacs init file. Calling it at any other time replaces your current minibuffer histories, which is probably undesirable. +This is a global minor mode. If called interactively, toggle the +`Savehist mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='savehist-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "savehist" '("savehist-")) @@ -29797,49 +29872,52 @@ or call the function `save-place-mode'.") (autoload 'save-place-mode "saveplace" "\ Non-nil means automatically save place in each file. + This means when you visit a file, point goes to the last place where it was when you previously visited the same file. -This is a minor mode. If called interactively, toggle the `Save-Place -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Save-Place mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='save-place-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) (autoload 'save-place-local-mode "saveplace" "\ Toggle whether to save your place in this file between sessions. + If this mode is enabled, point is recorded when you kill the buffer or exit Emacs. Visiting this file again will go to that position, even in a later Emacs session. +To save places automatically in all files, put this in your init +file: + +\(save-place-mode 1) + This is a minor mode. If called interactively, toggle the -`Save-Place-Local mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Save-Place-Local mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `save-place-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -To save places automatically in all files, put this in your init -file: - -\(save-place-mode 1) +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -29919,22 +29997,22 @@ or call the function `scroll-all-mode'.") (autoload 'scroll-all-mode "scroll-all" "\ Toggle shared scrolling in same-frame windows (Scroll-All mode). -This is a minor mode. If called interactively, toggle the `Scroll-All -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +When Scroll-All mode is enabled, scrolling commands invoked in +one window apply to all visible windows in the same frame. + +This is a global minor mode. If called interactively, toggle the +`Scroll-All mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='scroll-all-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -When Scroll-All mode is enabled, scrolling commands invoked in -one window apply to all visible windows in the same frame. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -29955,20 +30033,6 @@ one window apply to all visible windows in the same frame. (autoload 'scroll-lock-mode "scroll-lock" "\ Buffer-local minor mode for pager-like scrolling. -This is a minor mode. If called interactively, toggle the -`Scroll-Lock mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `scroll-lock-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When enabled, keys that normally move point by line or paragraph will scroll the buffer by the respective amount of lines instead and point will be kept vertically fixed relative to window @@ -29977,6 +30041,20 @@ boundaries during scrolling. Note that the default key binding to `scroll' will not work on MS-Windows systems if `w32-scroll-lock-modifier' is non-nil. +This is a minor mode. If called interactively, toggle the +`Scroll-Lock mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `scroll-lock-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "scroll-lock" '("scroll-lock-")) @@ -30034,20 +30112,6 @@ or call the function `semantic-mode'.") (autoload 'semantic-mode "semantic" "\ Toggle parser features (Semantic mode). -This is a minor mode. If called interactively, toggle the `Semantic -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='semantic-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - In Semantic mode, Emacs parses the buffers you visit for their semantic content. This information is used by a variety of auxiliary minor modes, listed in `semantic-default-submodes'; @@ -30056,6 +30120,20 @@ Semantic mode. \\{semantic-mode-map} +This is a global minor mode. If called interactively, toggle the +`Semantic mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='semantic-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "semantic" '("bovinate" "semantic-")) @@ -30712,23 +30790,23 @@ or call the function `server-mode'.") (autoload 'server-mode "server" "\ Toggle Server mode. -This is a minor mode. If called interactively, toggle the `Server -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +Server mode runs a process that accepts commands from the +`emacsclient' program. See Info node `Emacs server' and +`server-start' for details. + +This is a global minor mode. If called interactively, toggle the +`Server mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='server-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -Server mode runs a process that accepts commands from the -`emacsclient' program. See Info node `Emacs server' and -`server-start' for details. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -31381,21 +31459,21 @@ buffer names. (autoload 'smerge-mode "smerge-mode" "\ Minor mode to simplify editing output from the diff3 program. -This is a minor mode. If called interactively, toggle the `SMerge -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +\\{smerge-mode-map} + +This is a minor mode. If called interactively, toggle the +`SMerge mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `smerge-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -\\{smerge-mode-map} +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -31517,26 +31595,26 @@ Open the customization group `so-long'." t nil) (autoload 'so-long-minor-mode "so-long" "\ This is the minor mode equivalent of `so-long-mode'. -This is a minor mode. If called interactively, toggle the `So-Long -minor mode' mode. If the prefix argument is positive, enable the -mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `so-long-minor-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Any active minor modes listed in `so-long-minor-modes' are disabled for the current buffer, and buffer-local values are assigned to variables in accordance with `so-long-variable-overrides'. This minor mode is a standard `so-long-action' option. +This is a minor mode. If called interactively, toggle the +`So-Long minor mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `so-long-minor-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'so-long-mode "so-long" "\ @@ -31603,20 +31681,6 @@ or call the function `global-so-long-mode'.") (autoload 'global-so-long-mode "so-long" "\ Toggle automated performance mitigations for files with long lines. -This is a minor mode. If called interactively, toggle the `Global -So-Long mode' mode. If the prefix argument is positive, enable the -mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='global-so-long-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Many Emacs modes struggle with buffers which contain excessively long lines, and may consequently cause unacceptable performance issues. @@ -31632,6 +31696,20 @@ Use \\[so-long-commentary] for more information. Use \\[so-long-customize] to open the customization group `so-long' to configure the behaviour. +This is a global minor mode. If called interactively, toggle the +`Global So-Long mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='global-so-long-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "so-long" '("so-long-" "turn-o")) @@ -32744,20 +32822,6 @@ or call the function `strokes-mode'.") (autoload 'strokes-mode "strokes" "\ Toggle Strokes mode, a global minor mode. -This is a minor mode. If called interactively, toggle the `Strokes -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='strokes-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - \\ Strokes are pictographic mouse gestures which invoke commands. Strokes are invoked with \\[strokes-do-stroke]. You can define @@ -32771,6 +32835,20 @@ Encode/decode your strokes with \\[strokes-encode-buffer], \\{strokes-mode-map} +This is a global minor mode. If called interactively, toggle the +`Strokes mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='strokes-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'strokes-decode-buffer "strokes" "\ @@ -32853,27 +32931,6 @@ removed. \(fn STRING)" nil nil) -(autoload 'string-lines "subr-x" "\ -Split STRING into a list of lines. -If OMIT-NULLS, empty lines will be removed from the results. - -\(fn STRING &optional OMIT-NULLS)" nil nil) - -(autoload 'ensure-empty-lines "subr-x" "\ -Ensure that there are LINES number of empty lines before point. -If LINES is nil or omitted, ensure that there is a single empty -line before point. - -If called interactively, LINES is given by the prefix argument. - -If there are more than LINES empty lines before point, the number -of empty lines is reduced to LINES. - -If point is not at the beginning of a line, a newline character -is inserted before adjusting the number of empty lines. - -\(fn &optional LINES)" t nil) - (autoload 'string-pixel-width "subr-x" "\ Return the width of STRING in pixels. @@ -32912,20 +32969,6 @@ Query the user for a process and return the process object. (autoload 'subword-mode "subword" "\ Toggle subword movement and editing (Subword mode). -This is a minor mode. If called interactively, toggle the `Subword -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `subword-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Subword mode is a buffer-local minor mode. Enabling it changes the definition of a word so that word-based commands stop inside symbols with mixed uppercase and lowercase letters, @@ -32944,6 +32987,20 @@ called a `subword'. Here are some examples: This mode changes the definition of a word so that word commands treat nomenclature boundaries as word boundaries. +This is a minor mode. If called interactively, toggle the +`Subword mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `subword-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (put 'global-subword-mode 'globalized-minor-mode t) @@ -32977,20 +33034,6 @@ See `subword-mode' for more information on Subword mode. (autoload 'superword-mode "subword" "\ Toggle superword movement and editing (Superword mode). -This is a minor mode. If called interactively, toggle the `Superword -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `superword-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Superword mode is a buffer-local minor mode. Enabling it changes the definition of words such that characters which have symbol syntax are treated as parts of words: e.g., in `superword-mode', @@ -32998,6 +33041,20 @@ syntax are treated as parts of words: e.g., in `superword-mode', \\{superword-mode-map} +This is a minor mode. If called interactively, toggle the +`Superword mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `superword-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (put 'global-superword-mode 'globalized-minor-mode t) @@ -33088,20 +33145,6 @@ or call the function `gpm-mouse-mode'.") (autoload 'gpm-mouse-mode "t-mouse" "\ Toggle mouse support in GNU/Linux consoles (GPM Mouse mode). -This is a minor mode. If called interactively, toggle the `Gpm-Mouse -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='gpm-mouse-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - This allows the use of the mouse when operating on a GNU/Linux console, in the same way as you can use the mouse under X11. It relies on the `gpm' daemon being activated. @@ -33110,6 +33153,20 @@ Note that when `gpm-mouse-mode' is enabled, you cannot use the mouse to transfer text between Emacs and other programs which use GPM. This is due to limitations in GPM and the Linux kernel. +This is a global minor mode. If called interactively, toggle the +`Gpm-Mouse mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='gpm-mouse-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "t-mouse" '("gpm-mouse-")) @@ -33122,19 +33179,19 @@ GPM. This is due to limitations in GPM and the Linux kernel. (autoload 'tab-line-mode "tab-line" "\ Toggle display of tab line in the windows displaying the current buffer. -This is a minor mode. If called interactively, toggle the `Tab-Line -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +This is a minor mode. If called interactively, toggle the +`Tab-Line mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `tab-line-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -33208,6 +33265,7 @@ The variable `tab-width' controls the spacing of tab stops. (autoload 'table-fixed-width-mode "table" "\ Cell width is fixed when this is non-nil. + Normally it should be nil for allowing automatic cell width expansion that widens a cell when it is necessary. When non-nil, typing in a cell does not automatically expand the cell width. A word that is too @@ -33217,18 +33275,19 @@ variable's value can be toggled by \\[table-fixed-width-mode] at run-time. This is a minor mode. If called interactively, toggle the -`Table-Fixed-Width mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. +`Table-Fixed-Width mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `table-fixed-width-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -34535,7 +34594,7 @@ Compose Thai characters in the current buffer." t nil) (autoload 'forward-thing "thingatpt" "\ Move forward to the end of the Nth next THING. THING should be a symbol specifying a type of syntactic entity. -Possibilities include `symbol', `list', `sexp', `defun', +Possibilities include `symbol', `list', `sexp', `defun', `number', `filename', `url', `email', `uuid', `word', `sentence', `whitespace', `line', and `page'. @@ -34544,7 +34603,7 @@ Possibilities include `symbol', `list', `sexp', `defun', (autoload 'bounds-of-thing-at-point "thingatpt" "\ Determine the start and end buffer locations for the THING at point. THING should be a symbol specifying a type of syntactic entity. -Possibilities include `symbol', `list', `sexp', `defun', +Possibilities include `symbol', `list', `sexp', `defun', `number', `filename', `url', `email', `uuid', `word', `sentence', `whitespace', `line', and `page'. @@ -34788,20 +34847,6 @@ This function is meant to be used as a `post-self-insert-hook'." t nil) (autoload 'tildify-mode "tildify" "\ Adds electric behavior to space character. -This is a minor mode. If called interactively, toggle the `Tildify -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `tildify-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When space is inserted into a buffer in a position where hard space is required instead (determined by `tildify-space-pattern' and `tildify-space-predicates'), that space character is replaced by a hard space specified by @@ -34811,6 +34856,20 @@ When `tildify-mode' is enabled, if `tildify-string-alist' specifies a hard space representation for current major mode, the `tildify-space-string' buffer-local variable will be set to the representation. +This is a minor mode. If called interactively, toggle the +`Tildify mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `tildify-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "tildify" '("tildify-")) @@ -34846,26 +34905,26 @@ or call the function `display-time-mode'.") (autoload 'display-time-mode "time" "\ Toggle display of time, load level, and mail flag in mode lines. -This is a minor mode. If called interactively, toggle the -`Display-Time mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='display-time-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When Display Time mode is enabled, it updates every minute (you can control the number of seconds between updates by customizing `display-time-interval'). If `display-time-day-and-date' is non-nil, the current day and date are displayed as well. This runs the normal hook `display-time-hook' after each update. +This is a global minor mode. If called interactively, toggle the +`Display-Time mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='display-time-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (define-obsolete-function-alias 'display-time-world #'world-clock "28.1") @@ -34985,6 +35044,10 @@ The \"%z\" specifier does not print anything. When it is used, specifiers must be given in order of decreasing size. To the left of \"%z\", nothing is output until the first non-zero unit is encountered. +The \"%x\" specifier does not print anything. When it is used, +specifiers must be given in order of decreasing size. To the +right of \"%x\", trailing zero units are not output. + \(fn STRING SECONDS)" nil nil) (autoload 'seconds-to-string "time-date" "\ @@ -35505,7 +35568,7 @@ like \"/sys\" or \"/C:\".") Load Tramp file name handler, and perform OPERATION." (tramp-unload-file-name-handlers) (when tramp-mode (let ((default-directory temporary-file-directory)) (when (bound-and-true-p tramp-archive-autoload) (load "tramp-archive" 'noerror 'nomessage)) (load "tramp" 'noerror 'nomessage))) (apply operation args)) (defun tramp-register-autoload-file-name-handlers nil "\ -Add Tramp file name handlers to `file-name-handler-alist' during autoload." (add-to-list 'file-name-handler-alist (cons tramp-autoload-file-name-regexp #'tramp-autoload-file-name-handler)) (put #'tramp-autoload-file-name-handler 'safe-magic t)) +Add Tramp file name handlers to `file-name-handler-alist' during autoload." (unless (rassq #'tramp-file-name-handler file-name-handler-alist) (add-to-list 'file-name-handler-alist (cons tramp-autoload-file-name-regexp #'tramp-autoload-file-name-handler)) (put #'tramp-autoload-file-name-handler 'safe-magic t))) (tramp-register-autoload-file-name-handlers) (defun tramp-unload-file-name-handlers nil "\ @@ -35547,7 +35610,7 @@ Regular expression matching archive file names." '(concat "\\`" "\\(" ".+" "\\." Load Tramp archive file name handler, and perform OPERATION." (defvar tramp-archive-autoload) (when tramp-archive-enabled (let ((default-directory temporary-file-directory) (tramp-archive-autoload t)) (apply #'tramp-autoload-file-name-handler operation args)))) (defun tramp-register-archive-file-name-handler nil "\ -Add archive file name handler to `file-name-handler-alist'." (when tramp-archive-enabled (add-to-list 'file-name-handler-alist (cons (tramp-archive-autoload-file-name-regexp) #'tramp-archive-autoload-file-name-handler)) (put #'tramp-archive-autoload-file-name-handler 'safe-magic t))) +Add archive file name handler to `file-name-handler-alist'." (when (and tramp-archive-enabled (not (rassq #'tramp-archive-file-name-handler file-name-handler-alist))) (add-to-list 'file-name-handler-alist (cons (tramp-archive-autoload-file-name-regexp) #'tramp-archive-autoload-file-name-handler)) (put #'tramp-archive-autoload-file-name-handler 'safe-magic t))) (add-hook 'after-init-hook #'tramp-register-archive-file-name-handler) @@ -35838,21 +35901,8 @@ or call the function `type-break-mode'.") (autoload 'type-break-mode "type-break" "\ Enable or disable typing-break mode. -This is a minor mode, but it is global to all buffers by default. - -This is a minor mode. If called interactively, toggle the `Type-Break -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='type-break-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. +This is a minor mode, but it is global to all buffers by default. When this mode is enabled, the user is encouraged to take typing breaks at appropriate intervals; either after a specified amount of time or when the @@ -35921,6 +35971,20 @@ across Emacs sessions. This provides recovery of the break status between sessions and after a crash. Manual changes to the file may result in problems. +This is a global minor mode. If called interactively, toggle the +`Type-Break mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='type-break-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'type-break "type-break" "\ @@ -36332,29 +36396,30 @@ or call the function `url-handler-mode'.") (autoload 'url-handler-mode "url-handlers" "\ Handle URLs as if they were file names throughout Emacs. + After switching on this minor mode, Emacs file primitives handle URLs. For instance: -This is a minor mode. If called interactively, toggle the -`Url-Handler mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='url-handler-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - (file-exists-p \"https://www.gnu.org/\") => t and `C-x C-f https://www.gnu.org/ RET' will give you the HTML at that URL in a buffer. +This is a global minor mode. If called interactively, toggle the +`Url-Handler mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='url-handler-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'url-file-handler "url-handlers" "\ @@ -38531,20 +38596,6 @@ own View-like bindings. (autoload 'view-mode "view" "\ Toggle View mode, a minor mode for viewing text but not editing it. -This is a minor mode. If called interactively, toggle the `View mode' -mode. If the prefix argument is positive, enable the mode, and if it -is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `view-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - When View mode is enabled, commands that do not change the buffer contents are available as usual. Kill commands save text but do not delete it from the buffer. Most other commands beep and @@ -38622,6 +38673,20 @@ then \\[View-leave], \\[View-quit] and \\[View-kill-and-leave] will return to th Entry to view-mode runs the normal hook `view-mode-hook'. +This is a minor mode. If called interactively, toggle the `View +mode' mode. If the prefix argument is positive, enable the mode, +and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `view-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'view-return-to-alist-update "view" "\ @@ -38906,23 +38971,23 @@ or call the function `which-function-mode'.") (autoload 'which-function-mode "which-func" "\ Toggle mode line display of current function (Which Function mode). -This is a minor mode. If called interactively, toggle the +Which Function mode is a global minor mode. When enabled, the +current function name is continuously displayed in the mode line, +in certain major modes. + +This is a global minor mode. If called interactively, toggle the `Which-Function mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='which-function-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -Which Function mode is a global minor mode. When enabled, the -current function name is continuously displayed in the mode line, -in certain major modes. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -38937,44 +39002,30 @@ in certain major modes. (autoload 'whitespace-mode "whitespace" "\ Toggle whitespace visualization (Whitespace mode). -This is a minor mode. If called interactively, toggle the `Whitespace -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `whitespace-mode'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - See also `whitespace-style', `whitespace-newline' and `whitespace-display-mappings'. This mode uses a number of faces to visualize the whitespace; see the customization group `whitespace' for details. -\(fn &optional ARG)" t nil) - -(autoload 'whitespace-newline-mode "whitespace" "\ -Toggle newline visualization (Whitespace Newline mode). - This is a minor mode. If called interactively, toggle the -`Whitespace-Newline mode' mode. If the prefix argument is positive, +`Whitespace mode' mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, -evaluate `whitespace-newline-mode'. +evaluate `whitespace-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + +\(fn &optional ARG)" t nil) -The mode's hook is called both when the mode is enabled and when it is -disabled. +(autoload 'whitespace-newline-mode "whitespace" "\ +Toggle newline visualization (Whitespace Newline mode). Use `whitespace-newline-mode' only for NEWLINE visualization exclusively. For other visualizations, including NEWLINE @@ -38983,6 +39034,21 @@ use `whitespace-mode'. See also `whitespace-newline' and `whitespace-display-mappings'. +This is a minor mode. If called interactively, toggle the +`Whitespace-Newline mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `whitespace-newline-mode'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (defvar global-whitespace-mode nil "\ @@ -38998,22 +39064,23 @@ or call the function `global-whitespace-mode'.") (autoload 'global-whitespace-mode "whitespace" "\ Toggle whitespace visualization globally (Global Whitespace mode). -This is a minor mode. If called interactively, toggle the `Global -Whitespace mode' mode. If the prefix argument is positive, enable the -mode, and if it is zero or negative, disable the mode. +See also `whitespace-style', `whitespace-newline' and +`whitespace-display-mappings'. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +This is a global minor mode. If called interactively, toggle the +`Global Whitespace mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='global-whitespace-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. - -See also `whitespace-style', `whitespace-newline' and -`whitespace-display-mappings'. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -39030,20 +39097,6 @@ or call the function `global-whitespace-newline-mode'.") (autoload 'global-whitespace-newline-mode "whitespace" "\ Toggle global newline visualization (Global Whitespace Newline mode). -This is a minor mode. If called interactively, toggle the `Global -Whitespace-Newline mode' mode. If the prefix argument is positive, -enable the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='global-whitespace-newline-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Use `global-whitespace-newline-mode' only for NEWLINE visualization exclusively. For other visualizations, including NEWLINE visualization together with (HARD) SPACEs and/or TABs, @@ -39051,6 +39104,21 @@ please use `global-whitespace-mode'. See also `whitespace-newline' and `whitespace-display-mappings'. +This is a global minor mode. If called interactively, toggle the +`Global Whitespace-Newline mode' mode. If the prefix argument is +positive, enable the mode, and if it is zero or negative, disable +the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='global-whitespace-newline-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (autoload 'whitespace-toggle-options "whitespace" "\ @@ -39363,19 +39431,19 @@ Show widget browser for WIDGET in other window. (autoload 'widget-minor-mode "wid-browse" "\ Minor mode for traversing widgets. -This is a minor mode. If called interactively, toggle the `Widget -minor mode' mode. If the prefix argument is positive, enable the -mode, and if it is zero or negative, disable the mode. +This is a minor mode. If called interactively, toggle the +`Widget minor mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `widget-minor-mode'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -39482,19 +39550,19 @@ for a description of this minor mode.") (autoload 'windmove-mode "windmove" "\ Global minor mode for default windmove commands. -This is a minor mode. If called interactively, toggle the `Windmove -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. +This is a global minor mode. If called interactively, toggle the +`Windmove mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, evaluate `(default-value \\='windmove-mode)'. -The mode's hook is called both when the mode is enabled and when it is -disabled. +The mode's hook is called both when the mode is enabled and when +it is disabled. \(fn &optional ARG)" t nil) @@ -39646,20 +39714,6 @@ or call the function `winner-mode'.") (autoload 'winner-mode "winner" "\ Toggle Winner mode on or off. -This is a minor mode. If called interactively, toggle the `Winner -mode' mode. If the prefix argument is positive, enable the mode, and -if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='winner-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Winner mode is a global minor mode that records the changes in the window configuration (i.e. how the frames are partitioned into windows) so that the changes can be \"undone\" using the @@ -39667,6 +39721,20 @@ command `winner-undo'. By default this one is bound to the key sequence `C-c '. If you change your mind (while undoing), you can press `C-c ' (calling `winner-redo'). +This is a global minor mode. If called interactively, toggle the +`Winner mode' mode. If the prefix argument is positive, enable +the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='winner-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "winner" '("winner-")) @@ -39971,20 +40039,6 @@ or call the function `xterm-mouse-mode'.") (autoload 'xterm-mouse-mode "xt-mouse" "\ Toggle XTerm mouse mode. -This is a minor mode. If called interactively, toggle the -`Xterm-Mouse mode' mode. If the prefix argument is positive, enable -the mode, and if it is zero or negative, disable the mode. - -If called from Lisp, toggle the mode if ARG is `toggle'. Enable the -mode if ARG is nil, omitted, or is a positive number. Disable the -mode if ARG is a negative number. - -To check whether the minor mode is enabled in the current buffer, -evaluate `(default-value \\='xterm-mouse-mode)'. - -The mode's hook is called both when the mode is enabled and when it is -disabled. - Turn it on to use Emacs mouse commands, and off to use xterm mouse commands. This works in terminal emulators compatible with xterm. It only works for simple uses of the mouse. Basically, only non-modified @@ -39992,6 +40046,20 @@ single clicks are supported. When turned on, the normal xterm mouse functionality for such clicks is still available by holding down the SHIFT key while pressing the mouse button. +This is a global minor mode. If called interactively, toggle the +`Xterm-Mouse mode' mode. If the prefix argument is positive, +enable the mode, and if it is zero or negative, disable the mode. + +If called from Lisp, toggle the mode if ARG is `toggle'. Enable +the mode if ARG is nil, omitted, or is a positive number. +Disable the mode if ARG is a negative number. + +To check whether the minor mode is enabled in the current buffer, +evaluate `(default-value \\='xterm-mouse-mode)'. + +The mode's hook is called both when the mode is enabled and when +it is disabled. + \(fn &optional ARG)" t nil) (register-definition-prefixes "xt-mouse" '("turn-o" "xt-mouse-epoch" "xterm-mouse-")) @@ -40121,10 +40189,10 @@ Zone out, completely." t nil) ;;;;;; "emacs-lisp/cl-seq.el" "emacs-lisp/debug-early.el" "emacs-lisp/easymenu.el" ;;;;;; "emacs-lisp/eieio-custom.el" "emacs-lisp/eieio-opt.el" "emacs-lisp/float-sup.el" ;;;;;; "emacs-lisp/lisp-mode.el" "emacs-lisp/lisp.el" "emacs-lisp/macroexp.el" -;;;;;; "emacs-lisp/map-ynp.el" "emacs-lisp/nadvice.el" "emacs-lisp/shorthands.el" -;;;;;; "emacs-lisp/syntax.el" "emacs-lisp/timer.el" "env.el" "epa-hook.el" -;;;;;; "erc/erc-autoaway.el" "erc/erc-button.el" "erc/erc-capab.el" -;;;;;; "erc/erc-compat.el" "erc/erc-dcc.el" "erc/erc-desktop-notifications.el" +;;;;;; "emacs-lisp/map-ynp.el" "emacs-lisp/nadvice.el" "emacs-lisp/oclosure.el" +;;;;;; "emacs-lisp/shorthands.el" "emacs-lisp/syntax.el" "emacs-lisp/timer.el" +;;;;;; "env.el" "epa-hook.el" "erc/erc-autoaway.el" "erc/erc-button.el" +;;;;;; "erc/erc-capab.el" "erc/erc-compat.el" "erc/erc-dcc.el" "erc/erc-desktop-notifications.el" ;;;;;; "erc/erc-ezbounce.el" "erc/erc-fill.el" "erc/erc-identd.el" ;;;;;; "erc/erc-imenu.el" "erc/erc-join.el" "erc/erc-list.el" "erc/erc-log.el" ;;;;;; "erc/erc-match.el" "erc/erc-menu.el" "erc/erc-netsplit.el" commit 0a368e007723d79ac07f3a0622b28a02ae0bd3dc Author: Michael Albinus Date: Wed Apr 13 16:55:09 2022 +0200 ; Reinsert lines in tramp.texi deleted by accident diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 4f4e78061e..bb91aec0cc 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -2643,6 +2643,11 @@ where @samp{192.168.0.1} is the remote host IP address @node Ssh setup @section Ssh setup hints +The most common @value{tramp} connection family is based on either +@command{ssh} or @command{scp} of OpenSSH, or @command{plink} or +@command{pscp} of PuTTY on MS Windows. In the following, some +configuration recommendations are given. + @subsection Using ssh config include for host name completion commit fbf27afb6a08c7315c0d1e787d83fc529fcb6260 Author: Michael Albinus Date: Wed Apr 13 16:40:32 2022 +0200 Adapt Tramp manual * doc/misc/tramp.texi (Ssh setup): New subsection "Using ssh config include for host name completion". (Bug#54885) Precise, that list-system-processes and process-attributes are about system processes. diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 3cc312d2f5..4f4e78061e 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -2643,10 +2643,40 @@ where @samp{192.168.0.1} is the remote host IP address @node Ssh setup @section Ssh setup hints -The most common @value{tramp} connection family is based on either -@command{ssh} or @command{scp} of OpenSSH, or @command{plink} or -@command{pscp} of PuTTY on MS Windows. In the following, some -configuration recommendations are given. + +@subsection Using ssh config include for host name completion + +@vindex Include@r{, ssh option} +@findex tramp-set-completion-function +@findex tramp-get-completion-function +OpenSSH configuration files can use an @option{Include} option for +further configuration files. Default @value{tramp} host name +completion ignores this option. However, you can configure this +yourself. + +Given, your @file{~/.ssh/config} file contains the following option: + +@example +Include ~/.ssh/conf.d/* +@end example + +The following code snippet in your @file{.emacs} uses all files in +that directory for host name completion: + +@lisp +@group +(tramp-set-completion-function + "ssh" (append (tramp-get-completion-function "ssh") + (mapcar (lambda (file) `(tramp-parse-sconfig ,file)) + (directory-files + "~/.ssh/conf.d/" + 'full directory-files-no-dot-files-regexp)))) +@end group +@end lisp + +This code snippet does it for the @option{ssh} method. If you replace +@t{"ssh"} by @t{"scp"}, it does it also for that method (or any other +method you like). @subsection Detection of session hangouts @@ -4041,9 +4071,9 @@ inspect @value{tramp} @ref{Traces and Profiles, traces}. @findex list-system-processes @findex process-attributes The functions @code{list-system-processes} and -@code{process-attributes} return information about processes on the -respective remote host. In order to retrieve this information, they -use the command @command{ps}, driven by the following constants: +@code{process-attributes} return information about system processes on +the respective remote host. In order to retrieve this information, +they use the command @command{ps}, driven by the following constants: @defvr Constant tramp-process-attributes-ps-args This is a list of arguments (strings) @command{ps} is called with. commit 29fae93d1c480cc69406a19ab9ef69d84ef8142f Author: Lars Ingebrigtsen Date: Wed Apr 13 16:25:52 2022 +0200 Add support for column background colors in vtable * doc/misc/vtable.texi (Making A Table): Document it. * lisp/emacs-lisp/vtable.el (vtable): Add a column color element. (make-vtable): Use it. (vtable--insert-line): Insert the colors here. diff --git a/doc/misc/vtable.texi b/doc/misc/vtable.texi index 472dee70ec..48e6301fce 100644 --- a/doc/misc/vtable.texi +++ b/doc/misc/vtable.texi @@ -387,6 +387,12 @@ The face to be used. This defaults to @code{variable-pitch}. This face doesn't override the faces in the data, or the faces supplied by the getter and formatter functions. +@item :column-colors +If present, this should be a list of color names to be used as the +background color on the columns. If there are fewer colors here than +there are columns, the colors will be repeated. The most common use +case here is to have alternating background colors on the columns. + @item :actions This uses the same syntax as @code{define-keymap}, but doesn't refer to commands directly. Instead each key is bound to a command that diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el index 8d77733531..98106e4670 100644 --- a/lisp/emacs-lisp/vtable.el +++ b/lisp/emacs-lisp/vtable.el @@ -57,6 +57,7 @@ (separator-width :initarg :separator-width :accessor vtable-separator-width) (sort-by :initarg :sort-by :accessor vtable-sort-by) (ellipsis :initarg :ellipsis :accessor vtable-ellipsis) + (column-colors :initarg :column-colors :accessor vtable-column-colors) (-cache :initform (make-hash-table :test #'equal))) "A object to hold the data for a table.") @@ -83,7 +84,8 @@ (separator-width 1) sort-by (ellipsis t) - (insert t)) + (insert t) + column-colors) "Create and insert a vtable at point. The vtable object is returned. If INSERT is nil, the table won't be inserted." @@ -122,6 +124,7 @@ be inserted." :keymap keymap :separator-width separator-width :sort-by sort-by + :column-colors column-colors :ellipsis ellipsis))) ;; Compute missing column data. (setf (vtable-columns table) (vtable--compute-columns table)) @@ -377,7 +380,8 @@ This also updates the displayed table." (defun vtable--insert-line (table line widths spacer &optional ellipsis ellipsis-width) (let ((start (point)) - (columns (vtable-columns table))) + (columns (vtable-columns table)) + (colors (vtable-column-colors table))) (seq-do-indexed (lambda (elem index) (let ((value (nth 0 elem)) @@ -438,7 +442,12 @@ This also updates the displayed table." (propertize " " 'display (list 'space :width (list spacer))))) - (put-text-property start (point) 'vtable-column index)))) + (put-text-property start (point) 'vtable-column index) + (when colors + (add-face-text-property + start (point) + (list :background + (elt colors (mod index (length colors))))))))) (cdr line)) (insert "\n") (put-text-property start (point) 'vtable-object (car line)))) commit e14e5dff2c5d8113b06e2aafa0d920120bdb68e9 Merge: 131ac4d209 0ef9f6d07b Author: Eli Zaretskii Date: Wed Apr 13 17:00:59 2022 +0300 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs commit 131ac4d20997f813f5e3f869fe944950ca5c5bc9 Merge: 157e97a3b5 5a223c7f2e Author: Eli Zaretskii Date: Wed Apr 13 16:57:49 2022 +0300 Merge from origin/emacs-28 commit 0ef9f6d07b5abe60005bea3eb2bb6d9c3aafbb98 Author: Lars Ingebrigtsen Date: Wed Apr 13 15:57:24 2022 +0200 Fix format-seconds error in previous change * lisp/calendar/time-date.el (format-seconds): Fix zero elision when using fractional seconds. diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index 0db973ea16..ba7c48b290 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el @@ -343,15 +343,18 @@ right of \"%x\", trailing zero units are not output." ;; Cf article-make-date-line in gnus-art. (setq num (floor seconds unit) seconds (- seconds (* num unit))) - ;; Start position of the first non-zero unit. - (when (and (not leading-zeropos) - (not (zerop num))) - (setq leading-zeropos (match-beginning 0))) - (unless (zerop num) - (setq trailing-zeropos nil)) - (when (and (not trailing-zeropos) - (zerop num)) - (setq trailing-zeropos (match-beginning 0))) + (let ((is-zero (zerop (if (= unit 1) + (+ num fraction) + num)))) + ;; Start position of the first non-zero unit. + (when (and (not leading-zeropos) + (not is-zero)) + (setq leading-zeropos (match-beginning 0))) + (unless is-zero + (setq trailing-zeropos nil)) + (when (and (not trailing-zeropos) + is-zero) + (setq trailing-zeropos (match-beginning 0)))) (setq string (replace-match (format (if (match-string 2 string) commit 157e97a3b592d0d13ea961c39a9474e54010face Merge: 5a14406ecf de7901abbc Author: Eli Zaretskii Date: Wed Apr 13 16:52:53 2022 +0300 ; Merge from origin/emacs-28 The following commit was skipped: de7901a Bump Emacs version to 28.1 commit 5a14406ecfbd1efd03a00c49a84c19d31bb77f48 Merge: be42fdc6dc f2ae398298 Author: Eli Zaretskii Date: Wed Apr 13 16:52:50 2022 +0300 Merge from origin/emacs-28 # Conflicts: # etc/NEWS # lisp/desktop.el # lisp/dired.el commit be42fdc6dc60bec1d14065d04dc43b693398c591 Author: Eli Zaretskii Date: Wed Apr 13 16:48:13 2022 +0300 ; * src/xterm.c (x_term_init): Fix whitespace. diff --git a/src/xterm.c b/src/xterm.c index 86db1a5c5f..db9266f10b 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -12684,7 +12684,7 @@ x_scroll_bar_expose (struct scroll_bar *bar, const XEvent *event) /* Switch to scroll bar foreground color. */ if (f->output_data.x->scroll_bar_foreground_pixel != -1) XSetForeground (FRAME_X_DISPLAY (f), gc, - f->output_data.x->scroll_bar_foreground_pixel); + f->output_data.x->scroll_bar_foreground_pixel); /* Draw a one-pixel border just inside the edges of the scroll bar. */ XDrawRectangle (FRAME_X_DISPLAY (f), w, gc, @@ -14677,19 +14677,19 @@ handle_one_xevent (struct x_display_info *dpyinfo, memset (&compose_status, 0, sizeof (compose_status)); orig_keysym = keysym; - /* Common for all keysym input events. */ - XSETFRAME (inev.ie.frame_or_window, f); - inev.ie.modifiers - = x_x_to_emacs_modifiers (FRAME_DISPLAY_INFO (f), modifiers); - inev.ie.timestamp = xkey.time; + /* Common for all keysym input events. */ + XSETFRAME (inev.ie.frame_or_window, f); + inev.ie.modifiers + = x_x_to_emacs_modifiers (FRAME_DISPLAY_INFO (f), modifiers); + inev.ie.timestamp = xkey.time; - /* First deal with keysyms which have defined - translations to characters. */ - if (keysym >= 32 && keysym < 128) - /* Avoid explicitly decoding each ASCII character. */ - { - inev.ie.kind = ASCII_KEYSTROKE_EVENT; - inev.ie.code = keysym; + /* First deal with keysyms which have defined + translations to characters. */ + if (keysym >= 32 && keysym < 128) + /* Avoid explicitly decoding each ASCII character. */ + { + inev.ie.kind = ASCII_KEYSTROKE_EVENT; + inev.ie.code = keysym; #ifdef HAVE_XINPUT2 if (event->xkey.time == pending_keystroke_time) @@ -14734,7 +14734,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, Vx_keysym_table, Qnil), FIXNATP (c))) - { + { inev.ie.kind = (SINGLE_BYTE_CHAR_P (XFIXNAT (c)) ? ASCII_KEYSTROKE_EVENT : MULTIBYTE_CHAR_KEYSTROKE_EVENT); @@ -14751,11 +14751,11 @@ handle_one_xevent (struct x_display_info *dpyinfo, } #endif - goto done_keysym; - } + goto done_keysym; + } - /* Random non-modifier sorts of keysyms. */ - if (((keysym >= XK_BackSpace && keysym <= XK_Escape) + /* Random non-modifier sorts of keysyms. */ + if (((keysym >= XK_BackSpace && keysym <= XK_Escape) || keysym == XK_Delete #ifdef XK_ISO_Left_Tab || (keysym >= XK_ISO_Left_Tab @@ -22480,7 +22480,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) vendor ? build_string (vendor) : empty_unibyte_string)); block_input (); terminal->next_terminal = terminal_list; - terminal_list = terminal; + terminal_list = terminal; } /* Don't let the initial kboard remain current longer than necessary. commit 918669cb3db21eebc9fb409098a4395f131379ee Author: Lars Ingebrigtsen Date: Wed Apr 13 15:31:02 2022 +0200 Make list-times not include zero elements * doc/lispref/os.texi (Time Parsing): Mention %x. * lisp/calendar/time-date.el (format-seconds): Accept a new %x spec that removes trailing zeros (bug#54904). * lisp/emacs-lisp/timer-list.el (list-timers): Don't display trailing zero bits. diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 9cb9bc75d0..4ee893f860 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi @@ -1961,6 +1961,10 @@ encountered. For example, the default format used by @w{@code{"%Y, %D, %H, %M, %z%S"}} means that the number of seconds will always be produced, but years, days, hours, and minutes will only be shown if they are non-zero. +@item %x +Non-printing control flag that works along the same lines as +@samp{%z}, but instead suppresses printing of trailing zero-value time +elements. @item %% Produces a literal @samp{%}. @end table diff --git a/etc/NEWS b/etc/NEWS index 8665a825ce..c24f3f6ed5 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1856,6 +1856,11 @@ temporary transition aid for Emacs 27, has served its purpose. month, day, or time. For example, (date-to-time "2021-12-04") now assumes a time of 00:00 instead of signaling an error. ++++ +** 'format-seconds' now allows suppressing zero-value trailing elements. +The new "%x" non-printing control character will suppress zero-value +elements that appear after "%x". + +++ ** New events for taking advantage of touchscreen devices. The events 'touchscreen-begin, 'touchscreen-update', and diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index 51cf7eb213..0db973ea16 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el @@ -287,17 +287,23 @@ use. \"%,1s\" means \"use one decimal\". The \"%z\" specifier does not print anything. When it is used, specifiers must be given in order of decreasing size. To the left of \"%z\", nothing -is output until the first non-zero unit is encountered." +is output until the first non-zero unit is encountered. + +The \"%x\" specifier does not print anything. When it is used, +specifiers must be given in order of decreasing size. To the +right of \"%x\", trailing zero units are not output." (let ((start 0) (units '(("y" "year" 31536000) ("d" "day" 86400) ("h" "hour" 3600) ("m" "minute" 60) ("s" "second" 1) - ("z"))) + ("z") + ("x"))) (case-fold-search t) - spec match usedunits zeroflag larger prev name unit num zeropos - fraction) + spec match usedunits zeroflag larger prev name unit num + leading-zeropos trailing-zeropos fraction + chop-leading chop-trailing) (while (string-match "%\\.?[0-9]*\\(,[0-9]\\)?\\(.\\)" string start) (setq start (match-end 0) spec (match-string 2 string)) @@ -306,15 +312,16 @@ is output until the first non-zero unit is encountered." (error "Bad format specifier: `%s'" spec)) (if (assoc (downcase spec) usedunits) (error "Multiple instances of specifier: `%s'" spec)) - (if (string-equal (car match) "z") + (if (or (string-equal (car match) "z") + (string-equal (car match) "x")) (setq zeroflag t) (unless larger (setq unit (nth 2 match) larger (and prev (> unit prev)) prev unit))) (push match usedunits))) - (and zeroflag larger - (error "Units are not in decreasing order of size")) + (when (and zeroflag larger) + (error "Units are not in decreasing order of size")) (unless (numberp seconds) (setq seconds (float-time seconds))) (setq fraction (mod seconds 1) @@ -326,18 +333,25 @@ is output until the first non-zero unit is encountered." (when (string-match (format "%%\\(\\.?[0-9]+\\)?\\(,[0-9]+\\)?\\(%s\\)" spec) string) - (if (string-equal spec "z") ; must be last in units - (setq string - (replace-regexp-in-string - "%z" "" - (substring string (min (or zeropos (match-end 0)) - (match-beginning 0))))) + (cond + ((string-equal spec "z") + (setq chop-leading (and leading-zeropos + (min leading-zeropos (match-beginning 0))))) + ((string-equal spec "x") + (setq chop-trailing t)) + (t ;; Cf article-make-date-line in gnus-art. (setq num (floor seconds unit) seconds (- seconds (* num unit))) ;; Start position of the first non-zero unit. - (or zeropos - (setq zeropos (unless (zerop num) (match-beginning 0)))) + (when (and (not leading-zeropos) + (not (zerop num))) + (setq leading-zeropos (match-beginning 0))) + (unless (zerop num) + (setq trailing-zeropos nil)) + (when (and (not trailing-zeropos) + (zerop num)) + (setq trailing-zeropos (match-beginning 0))) (setq string (replace-match (format (if (match-string 2 string) @@ -360,7 +374,17 @@ is output until the first non-zero unit is encountered." (format " %s%s" name (if (= num 1) "" "s")))) t t string)))))) - (string-replace "%%" "%" string)) + (let ((pre string)) + (when (and chop-trailing trailing-zeropos) + (setq string (substring string 0 trailing-zeropos))) + (when chop-leading + (setq string (substring string chop-leading))) + ;; If we ended up removing everything, return the formatted + ;; string in full. + (when (equal string "") + (setq string pre))) + (setq string (replace-regexp-in-string "%[zx]" "" string))) + (string-trim (string-replace "%%" "%" string))) (defvar seconds-to-string (list (list 1 "ms" 0.001) diff --git a/lisp/emacs-lisp/timer-list.el b/lisp/emacs-lisp/timer-list.el index c93a50cabf..aef18d0ba2 100644 --- a/lisp/emacs-lisp/timer-list.el +++ b/lisp/emacs-lisp/timer-list.el @@ -62,7 +62,7 @@ ((numberp repeat) (propertize (format "%12s" (format-seconds - "%dd %hh %mm %z%,1ss" repeat)) + "%x%dd %hh %mm %z%,1ss" repeat)) 'help-echo "Repeat interval")) ((null repeat) (propertize " -" 'help-echo "Runs once")) diff --git a/test/lisp/calendar/time-date-tests.el b/test/lisp/calendar/time-date-tests.el index 5a37c91493..fd4d5ac8a1 100644 --- a/test/lisp/calendar/time-date-tests.el +++ b/test/lisp/calendar/time-date-tests.el @@ -88,14 +88,19 @@ (ert-deftest test-format-seconds () (should (equal (format-seconds "%y %d %h %m %s %%" 0) "0 0 0 0 0 %")) (should (equal (format-seconds "%y %d %h %m %s %%" 9999999) "0 115 17 46 39 %")) - (should (equal (format-seconds "%y %d %h %m %z %s %%" 1) " 1 %")) + (should (equal (format-seconds "%y %d %h %m %z %s %%" 1) "1 %")) (should (equal (format-seconds "%mm %ss" 66) "1m 6s")) (should (equal (format-seconds "%mm %5ss" 66) "1m 6s")) (should (equal (format-seconds "%mm %.5ss" 66.4) "1m 00006s")) (should (equal (format-seconds "%mm %,1ss" 66.4) "1m 6.4s")) (should (equal (format-seconds "%mm %5,1ss" 66.4) "1m 6.4s")) - (should (equal (format-seconds "%mm %.5,1ss" 66.4) "1m 006.4s"))) + (should (equal (format-seconds "%mm %.5,1ss" 66.4) "1m 006.4s")) + + (should (equal (format-seconds "%hh %z%x%mm %ss" (* 60 2)) "2m")) + (should (equal (format-seconds "%hh %z%mm %ss" (* 60 2)) "2m 0s")) + (should (equal (format-seconds "%hh %x%mm %ss" (* 60 2)) "0h 2m")) + (should (equal (format-seconds "%hh %x%mm %ss" 0) "0h 0m 0s"))) (ert-deftest test-ordinal () (should (equal (date-ordinal-to-time 2008 271) commit e587fc05a70c08a50258b152bb5403afd013007d Author: Eli Zaretskii Date: Wed Apr 13 14:53:35 2022 +0300 ; * etc/NEWS: Mention that PGTK build needs GTK >= 3.20. diff --git a/etc/NEWS b/etc/NEWS index 41e7f376ff..8665a825ce 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -68,15 +68,16 @@ XInput 2 support from Lisp programs. +++ ** Emacs now supports being built with pure GTK. -To use this option, make sure the GTK 3 and Cairo development files -are installed, and configure Emacs with the option '--with-pgtk'. -Unlike the default X and GTK build, the resulting Emacs binary will -work on any underlying window system supported by GDK, such as Wayland -and Broadway. We do not recommend that you use this configuration, -unless you are running a window system that's supported by GDK other -than X. Running this configuration on X is known to have problems, -such as undesirable frame positioning and various issues with keyboard -input of sequences such as 'C-;' and 'C-S-u'. +To use this option, make sure the GTK 3 (version 3.20 or later) and +Cairo development files are installed, and configure Emacs with the +option '--with-pgtk'. Unlike the default X and GTK build, the +resulting Emacs binary will work on any underlying window system +supported by GDK, such as Wayland and Broadway. We do not recommend +that you use this configuration, unless you are running a window +system that's supported by GDK other than X. Running this +configuration on X is known to have problems, such as undesirable +frame positioning and various issues with keyboard input of sequences +such as 'C-;' and 'C-S-u'. --- ** The docstrings of preloaded files are not in "etc/DOC" any more. commit ed6237e039e6fb51229054d0fce74df074903f19 Author: Po Lu Date: Wed Apr 13 19:13:38 2022 +0800 Move raw event selection on GTK+ 2 to a more appropriate place * src/xfns.c (setup_xi_event_mask): Stop selecting for RawKeyPress on the root window. * src/xterm.c (x_new_focus_frame): Select here instead, once a frame becomes focused. diff --git a/src/xfns.c b/src/xfns.c index 2f90534c48..5cf3eb4199 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -3688,15 +3688,6 @@ setup_xi_event_mask (struct frame *f) XISelectEvents (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &mask, 1); - -#if defined USE_GTK && !defined HAVE_GTK3 - memset (m, 0, l); - XISetMask (m, XI_RawKeyPress); - - XISelectEvents (FRAME_X_DISPLAY (f), - FRAME_DISPLAY_INFO (f)->root_window, - &mask, 1); -#endif unblock_input (); } #endif diff --git a/src/xterm.c b/src/xterm.c index 0c1c70340d..86db1a5c5f 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9067,6 +9067,20 @@ static void x_new_focus_frame (struct x_display_info *dpyinfo, struct frame *frame) { struct frame *old_focus = dpyinfo->x_focus_frame; +#if defined USE_GTK && !defined HAVE_GTK3 && defined HAVE_XINPUT2 + XIEventMask mask; + ptrdiff_t l; + + if (dpyinfo->supports_xi2) + { + l = XIMaskLen (XI_LASTEVENT); + mask.mask = alloca (l); + mask.mask_len = l; + memset (mask.mask, 0, l); + + mask.deviceid = XIAllDevices; + } +#endif if (frame != dpyinfo->x_focus_frame) { @@ -9074,6 +9088,17 @@ x_new_focus_frame (struct x_display_info *dpyinfo, struct frame *frame) the correct value of x_focus_frame. */ dpyinfo->x_focus_frame = frame; + /* Once none of our frames are focused anymore, stop selecting + for raw input events from the root window. */ + +#if defined USE_GTK && !defined HAVE_GTK3 && defined HAVE_XINPUT2 + if (frame && dpyinfo->supports_xi2) + XISetMask (mask.mask, XI_RawKeyPress); + + if (dpyinfo->supports_xi2) + XISelectEvents (dpyinfo->display, dpyinfo->root_window, &mask, 1); +#endif + if (old_focus && old_focus->auto_lower) x_lower_frame (old_focus); commit 8259e368001a6e30418efed40809e17f3f977622 Author: Po Lu Date: Wed Apr 13 07:17:30 2022 +0000 Fix marking upgrades for packages from ELPA or NonGNU ELPA * lisp/emacs-lisp/package.el (package-menu--find-upgrades): Look inside ``external'' packages as well when searching for upgrades. (bug#54117) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 4f1ac5a5da..f6aad64d35 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -3465,7 +3465,7 @@ corresponding to the newer version." ;; ENTRY is (PKG-DESC [NAME VERSION STATUS DOC]) (let ((pkg-desc (car entry)) (status (aref (cadr entry) 2))) - (cond ((member status '("installed" "dependency" "unsigned")) + (cond ((member status '("installed" "dependency" "unsigned" "external")) (push pkg-desc installed)) ((member status '("available" "new")) (setq available (package--append-to-alist pkg-desc available)))))) commit 5a223c7f2ef4c31abbd46367b6ea83cd19d30aa7 (tag: refs/tags/emacs-28.1) Author: Eli Zaretskii Date: Sun Apr 3 08:26:02 2022 -0400 Update logs and HISTORY for Emacs 28.1 * ChangeLog.3: * etc/HISTORY: * etc/AUTHORS: Update for Emacs 28.1 release. diff --git a/ChangeLog.3 b/ChangeLog.3 index 778c01b5e5..52c6300f1f 100644 --- a/ChangeLog.3 +++ b/ChangeLog.3 @@ -1,3 +1,116 @@ +2022-03-30 Tassilo Horn + + dired: implement feature from 7b50ed553f differently + + * lisp/dired.el (dired-buffers-for-dir): Restore to emacs-27 version. + (dired-buffers-for-dir-or-subdir): New function. + (dired-clean-up-after-deletion): Use dired-buffers-for-dir-or-subdir + instead dired-buffers-for-dir. + +2022-03-30 Eli Zaretskii + + Fix regression in 'dired-buffers-for-dir' + + * lisp/dired.el (dired-buffers-for-dir): Fix inadvertently swapped + arguments. (Bug#54636) + +2022-03-27 Eli Zaretskii + + * lisp/desktop.el (desktop-read): Clarify warning text. + +2022-03-26 Po Lu + + * doc/emacs/anti.texi (Antinews): Unannounce removal of Motif. + +2022-03-25 Lars Ingebrigtsen + + Fix eshell-explicit-command-char doc string typo + + * lisp/eshell/esh-ext.el (eshell-explicit-command-char): Fix typo + in doc string (bug#54567). + +2022-03-24 Eli Zaretskii + + Clarify the description of "selected tags table" + + * doc/emacs/maintaining.texi (Select Tags Table): Clarify the + distinction between the "selected tags table" and the "current + list of tags tables". (Bug#54543) + +2022-03-21 Lars Ingebrigtsen + + Add notes about command modes and nativecomp interaction + + * doc/lispref/commands.texi (Command Modes): Note interaction with + native-compile (bug#54437). + + * src/data.c: Add comment about not being supported. + + Do not merge to master. + +2022-03-20 Kyle Meyer + + Update to Org 9.5.2-25-gaf6f12 + +2022-03-20 Eli Zaretskii + + Improve doc strings of read-char-from-minibuffer-insert-* commands + + * lisp/subr.el (read-char-from-minibuffer-insert-char) + (read-char-from-minibuffer-insert-other): Clarify the doc strings. + (Bug#54479) + +2022-03-19 Eli Zaretskii + + Fix region highlight in non-selected windows + + * src/xdisp.c (prepare_menu_bars): Include in the windows passed + to pre-redisplay-functions windows whose point was moved from the + last recorded position. (Bug#54450) + +2022-03-18 Eli Zaretskii + + Fix a regression in 'decipher-digram-list' + + * lisp/play/decipher.el (decipher-stats-buffer): Don't assume the + statistics buffer always exists. (Bug#54443) + +2022-03-17 Karl Fogel + + Improve documentation of bookmark default sorting + + * lisp/bookmark.el (bookmark-alist, bookmark-store, + bookmark-maybe-sort-alist): Update doc strings and comments. + +2022-03-15 Juri Linkov + + * doc/misc/transient.texi: Fix @dircategory to "Emacs misc features" for dir. + +2022-03-13 Jim Porter + + Fix evaluation of negated argument predicates in Eshell + + * lisp/eshell/em-pred.el (eshell-add-pred-func): Let-bind 'pred' so + the lambdas see the original value (bug#54369). + + Committed on the wrong branch. + + Do not merge to master. + +2022-03-12 Eli Zaretskii + + Emacs pretest 28.0.92 + + * README: + * configure.ac: + * nt/README.W32: + * msdos/sed2v2.inp: Bump Emacs version to 28.0.92. + + * etc/AUTHORS: + * lisp/ldefs-boot.el: Update for pretest 28.0.92. + + * ChangeLog.3: Regenerate. + 2022-03-10 Eli Zaretskii Fix regression in 'custom-prompt-customize-unsaved-options' @@ -234865,7 +234978,7 @@ This file records repository revisions from commit 9d56a21e6a696ad19ac65c4b405aeca44785884a (exclusive) to -commit dbe6a3ecf74536cbfb7ca59630b48020ae4e732a (inclusive). +commit f2ae39829812098d8269eafbc0fcb98959ee5bb7 (inclusive). See ChangeLog.2 for earlier changes. ;; Local Variables: diff --git a/etc/AUTHORS b/etc/AUTHORS index 8281aa9692..61bdf93661 100644 --- a/etc/AUTHORS +++ b/etc/AUTHORS @@ -1573,7 +1573,7 @@ and co-wrote help-tests.el and changed xdisp.c display.texi w32.c msdos.c w32fns.c simple.el files.el fileio.c keyboard.c emacs.c w32term.c text.texi dispnew.c w32proc.c files.texi frames.texi configure.ac dispextern.h lisp.h - process.c ms-w32.h and 1235 other files + process.c ms-w32.h and 1236 other files Eliza Velasquez: changed server.el @@ -2610,9 +2610,9 @@ Jim Paris: changed process.c Jim Porter: changed delsel.el ansi-color-tests.el ansi-color.el bindings.el esh-var.el term-tests.el term.el tramp.el callproc.c - dichromacy-theme.el diff-mode.el eshell-tests.el eshell.texi + dichromacy-theme.el diff-mode.el em-pred.el eshell-tests.el eshell.texi files-tests.el gdb-mi.el grep-tests.el ispell.el leuven-theme.el man.el - menu-bar.el misterioso-theme.el and 9 other files + menu-bar.el and 10 other files Jim Radford: changed gnus-start.el @@ -2949,7 +2949,7 @@ Juri Linkov: wrote compose.el files-x.el misearch.el repeat-tests.el and changed isearch.el simple.el info.el replace.el dired.el dired-aux.el progmodes/grep.el subr.el window.el image-mode.el mouse.el diff-mode.el files.el menu-bar.el minibuffer.el progmodes/compile.el startup.el - faces.el vc.el display.texi search.texi and 445 other files + faces.el vc.el display.texi search.texi and 446 other files Jussi Lahdenniemi: changed w32fns.c ms-w32.h msdos.texi w32.c w32.h w32console.c w32heap.c w32inevt.c w32term.h @@ -3306,7 +3306,7 @@ and co-wrote gnus-kill.el gnus-mh.el gnus-msg.el gnus-score.el and changed gnus.texi simple.el subr.el files.el process.c text.texi display.texi dired.el gnutls.c gnus-ems.el smtpmail.el help-fns.el auth-source.el url-http.el edebug.el image.el gnus-cite.el pop3.el - dired-aux.el fns.c image.c and 859 other files + dired-aux.el fns.c image.c and 860 other files Lars Rasmusson: changed ebrowse.c @@ -4565,10 +4565,10 @@ and changed xdisp.c comp.c fns.c pdumper.c alloc.c byte-opt.el ccl-tests.el ccl.c ccl.el cmds.c comint.el comp-test-funcs.el comp-tests.el comp.el composite.c and 28 other files -Po Lu: changed xdisp.c browse-url.el callproc.c cc-compat.el config.bat - esh-cmd.el fileio.c langinfo.h loadup.el msdos.c msdos.h nsfns.m - nsterm.m process.c sed1v2.inp sed2v2.inp sed3v2.inp sedlibmk.inp - tooltip.el xterm.c +Po Lu: changed xdisp.c anti.texi browse-url.el callproc.c cc-compat.el + config.bat esh-cmd.el fileio.c langinfo.h loadup.el msdos.c msdos.h + nsfns.m nsterm.m process.c sed1v2.inp sed2v2.inp sed3v2.inp + sedlibmk.inp tooltip.el xterm.c Pontus Michael: changed simple.el @@ -5389,8 +5389,8 @@ and co-wrote ol-gnus.el and changed bug-reference.el reftex-vars.el tex-mode.el browse-url.el gnus.texi reftex-cite.el tsdh-dark-theme.el tsdh-light-theme.el gnus-sum.el maintaining.texi file-notify-tests.el gnus-art.el misc.texi - reftex.el org-gnus.el prog-mode.el subword.el image-mode.el json.el - lisp-mode.el rcirc.el and 99 other files + reftex.el org-gnus.el prog-mode.el subword.el dired.el image-mode.el + json.el lisp-mode.el and 99 other files Tatsuya Ichikawa: changed gnus-agent.el gnus-cache.el diff --git a/etc/HISTORY b/etc/HISTORY index 1d6425e938..bb4e3e38e1 100644 --- a/etc/HISTORY +++ b/etc/HISTORY @@ -224,6 +224,8 @@ GNU Emacs 27.1 (2020-08-10) emacs-27.1 GNU Emacs 27.2 (2021-03-25) emacs-27.2 +GNU Emacs 28.1 (2022-04-04) emacs-28.1 + ---------------------------------------------------------------------- This file is part of GNU Emacs. commit de7901abbc21114721057c907cc52455e228f826 Author: Eli Zaretskii Date: Sun Apr 3 07:38:15 2022 -0400 Bump Emacs version to 28.1 * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Bump Emacs version to 28.1 diff --git a/README b/README index 7840e7a108..5e7cadeaa0 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ Copyright (C) 2001-2022 Free Software Foundation, Inc. See the end of the file for license conditions. -This directory tree holds version 28.0.92 of GNU Emacs, the extensible, +This directory tree holds version 28.1 of GNU Emacs, the extensible, customizable, self-documenting real-time display editor. The file INSTALL in this directory says how to build and install GNU diff --git a/configure.ac b/configure.ac index 7c2b7aa62e..660784347b 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ dnl along with GNU Emacs. If not, see . AC_PREREQ(2.65) dnl Note this is parsed by (at least) make-dist and lisp/cedet/ede/emacs.el. -AC_INIT(GNU Emacs, 28.0.92, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/) +AC_INIT(GNU Emacs, 28.1, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/) dnl Set emacs_config_options to the options of 'configure', quoted for the shell, dnl and then quoted again for a C string. Separate options with spaces. diff --git a/msdos/sed2v2.inp b/msdos/sed2v2.inp index c2bb17c546..6f57ad3181 100644 --- a/msdos/sed2v2.inp +++ b/msdos/sed2v2.inp @@ -67,7 +67,7 @@ /^#undef PACKAGE_NAME/s/^.*$/#define PACKAGE_NAME ""/ /^#undef PACKAGE_STRING/s/^.*$/#define PACKAGE_STRING ""/ /^#undef PACKAGE_TARNAME/s/^.*$/#define PACKAGE_TARNAME ""/ -/^#undef PACKAGE_VERSION/s/^.*$/#define PACKAGE_VERSION "28.0.92"/ +/^#undef PACKAGE_VERSION/s/^.*$/#define PACKAGE_VERSION "28.1"/ /^#undef SYSTEM_TYPE/s/^.*$/#define SYSTEM_TYPE "ms-dos"/ /^#undef HAVE_DECL_GETENV/s/^.*$/#define HAVE_DECL_GETENV 1/ /^#undef SYS_SIGLIST_DECLARED/s/^.*$/#define SYS_SIGLIST_DECLARED 1/ diff --git a/nt/README.W32 b/nt/README.W32 index 57c87e9c4b..94f538aa91 100644 --- a/nt/README.W32 +++ b/nt/README.W32 @@ -1,7 +1,7 @@ Copyright (C) 2001-2022 Free Software Foundation, Inc. See the end of the file for license conditions. - Emacs version 28.0.92 for MS-Windows + Emacs version 28.1 for MS-Windows This README file describes how to set up and run a precompiled distribution of the latest version of GNU Emacs for MS-Windows. You commit f2ae39829812098d8269eafbc0fcb98959ee5bb7 Author: Eli Zaretskii Date: Sun Apr 3 07:16:10 2022 -0400 ; * etc/NEWS: Remove temporary notes and marks. diff --git a/etc/NEWS b/etc/NEWS index 84041d79c2..995de8d317 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -15,12 +15,6 @@ in older Emacs versions. You can narrow news to a specific version by calling 'view-emacs-news' with a prefix argument or by typing 'C-u C-h C-n'. -Temporary note: -+++ indicates that all relevant manuals in doc/ have been updated. ---- means no change in the manuals is needed. -When you add a new item, use the appropriate mark if you are sure it -applies, and please also update docstrings as needed. - * Installation Changes in Emacs 28.1 @@ -58,30 +52,25 @@ still be available when HarfBuzz is supported, but will not be used by default. We strongly recommend building with HarfBuzz support. 'x' is still a valid backend. ---- ** 'configure' now warns about building with libXft support. libXft is unmaintained, and causes a number of problems with modern fonts including but not limited to crashes; support for it may be removed in a future version of Emacs. Please consider using Cairo + HarfBuzz instead. ---- ** 'configure' now warns about not using HarfBuzz if using Cairo. We want to encourage people to use the most modern font features available, and this is the Cairo graphics library + HarfBuzz for font shaping, so 'configure' now recommends that combination. ---- ** Building without double buffering support. 'configure --with-xdbe=no' can now be used to disable double buffering at build time. ---- ** The configure option '--without-makeinfo' has been removed. This was only ever relevant when building from a repository checkout. This now requires makeinfo, which is part of the texinfo package. ---- ** New configure option '--disable-year2038'. This causes Emacs to use only 32-bit time_t on platforms that have both 32- and 64-bit time_t. This may help when linking Emacs with a @@ -90,16 +79,13 @@ currently affects only 32-bit ARM and x86 running GNU/Linux with glibc 2.34 and later. Emacs now defaults to 64-bit time_t on these platforms. ---- ** Support for building with '-fcheck-pointer-bounds' has been removed. GCC has withdrawn the '-fcheck-pointer-bounds' option and support for its implementation has been removed from the Linux kernel. ---- ** The ftx font backend driver has been removed. It was declared obsolete in Emacs 27.1. ---- ** Emacs no longer supports old OpenBSD systems. OpenBSD 5.3 and older releases are no longer supported, as they lack proper pty support that Emacs needs. @@ -107,13 +93,11 @@ proper pty support that Emacs needs. * Startup Changes in Emacs 28.1 ---- ** In GTK builds, Emacs now supports startup notification. This means that Emacs won't steal keyboard focus upon startup (when started via the Desktop) if the user is typing into another application. ---- ** Errors in 'kill-emacs-hook' no longer prevent Emacs from shutting down. If a function in that hook signals an error in an interactive Emacs, the user will be prompted on whether to continue. If the user doesn't @@ -136,7 +120,6 @@ lacks the terminfo database, you can instruct Emacs to support 24-bit true color by setting 'COLORTERM=truecolor' in the environment. This is useful on systems such as FreeBSD which ships only with "etc/termcap". ---- ** File names given on the command line are now be pushed onto history. The file names will be pushed onto 'file-name-history', like the names of files visited via 'C-x C-f' and other commands. @@ -144,10 +127,8 @@ of files visited via 'C-x C-f' and other commands. * Changes in Emacs 28.1 ---- ** Emacs now supports Unicode Standard version 14.0. -+++ ** Improved support for Emoji. On capable systems, Emacs now correctly displays Emoji and Emoji sequences by default, provided that a suitable font is available to @@ -171,20 +152,17 @@ the above example. (Previously, the Emoji characters were assigned to the 'symbol' script, together with other symbol and punctuation characters.) -+++ ** 'glyphless-char-display-control' now applies to Variation Selectors. VS-1 through VS-16 are now displayed as 'thin-space' by default when not composed with previous characters (typically, as part of Emoji sequences). -+++ ** New command 'execute-extended-command-for-buffer'. This new command, bound to 'M-S-x', works like 'execute-extended-command', but limits the set of commands to the commands that have been determined to be particularly useful with the current mode. -+++ ** New user option 'read-extended-command-predicate'. This user option controls how 'M-x' performs completion of commands when you type 'TAB'. By default, any command that matches what you have @@ -193,36 +171,30 @@ option to exclude commands that are not applicable to the current buffer's major and minor modes, and respect the command's completion predicate (if any). -+++ ** Completion on 'M-x' shows key bindings for commands. When 'suggest-key-bindings' is non-nil (as it is by default), the completion list popped up by 'M-x' shows the key bindings for all the commands shown in the list of candidate completions that have a key binding. -+++ ** New user option 'completions-detailed'. When non-nil, some commands like 'describe-symbol' show more detailed completions with more information in completion prefix and suffix. The default is nil. ---- ** 'C-s' in 'M-x' now once again searches over completions. In Emacs 23, typing 'M-x' ('read-extended-command') and then 'C-s' (to do an interactive search) would search over possible completions. This was lost in Emacs 24, but is now back again. -+++ ** User option 'completions-format' supports a new value 'one-column'. -+++ ** New system for displaying documentation for groups of functions. This can either be used by saying 'M-x shortdoc-display-group' and choosing a group, or clicking a button in the "*Help*" buffers when looking at the doc string of a function that belongs to one of these groups. -+++ ** New minor mode 'context-menu-mode' for context menus popped by 'mouse-3'. When this mode is enabled, clicking 'down-mouse-3' (usually, the right mouse button) anywhere in the buffer pops up a menu whose @@ -232,7 +204,6 @@ by customizing the user option 'context-menu-functions'. You can also invoke the context menu by pressing 'S-' or, on macOS, by clicking 'C-down-mouse-1'. -+++ ** A new keymap for buffer actions has been added. The 'C-x x' keymap now holds keystrokes for various buffer-oriented commands. The new keystrokes are 'C-x x g' ('revert-buffer-quick'), @@ -240,34 +211,29 @@ commands. The new keystrokes are 'C-x x g' ('revert-buffer-quick'), ('clone-buffer'), 'C-x x i' ('insert-buffer'), 'C-x x t' ('toggle-truncate-lines') and 'C-x x f' ('font-lock-update'). -+++ ** Modifiers now go outside angle brackets in pretty-printed key bindings. For example, 'RET' with Control and Meta modifiers is now shown as 'C-M-' instead of ''. Either variant can be used as input; functions such as 'kbd' and 'read-kbd-macro' accept both styles as equivalent (they have done so for a long time). ---- ** 'eval-expression' no longer signals an error on incomplete expressions. Previously, typing 'M-: ( RET' would result in Emacs saying "End of file during parsing" and dropping out of the minibuffer. The user would have to type 'M-: M-p' to edit and redo the expression. Now Emacs will echo the message and allow the user to continue editing. -+++ ** 'eval-last-sexp' now handles 'defvar'/'defcustom'/'defface' specially. This command would previously not redefine values defined by these forms, but this command has now been changed to work more like 'eval-defun', and reset the values as specified. ---- ** New user option 'use-short-answers'. When non-nil, the function 'y-or-n-p' is used instead of 'yes-or-no-p'. This eliminates the need to define an alias that maps one to another in the init file. The same user option also controls whether the function 'read-answer' accepts short answers. -+++ ** New user option 'kill-buffer-delete-auto-save-files'. If non-nil, killing a buffer that has an auto-save file will prompt the user for whether that auto-save file should be deleted. (Note @@ -277,37 +243,31 @@ unsaved changes, but this has apparently not worked for several decades, so the documented semantics of this variable has been changed to match the behavior.) -+++ ** New user option 'next-error-message-highlight'. In addition to a fringe arrow, 'next-error' error may now optionally highlight the current error message in the 'next-error' buffer. This user option can be also customized to keep highlighting on all visited errors, so you can have an overview what errors were already visited. ---- ** New choice 'next-error-quit-window' for 'next-error-found-function'. When 'next-error-found-function' is customized to 'next-error-quit-window', then typing the numeric prefix argument 0 before the command 'next-error' will quit the source window after visiting the next occurrence. -+++ ** New user option 'file-preserve-symlinks-on-save'. This controls what Emacs does when saving buffers that visit files via symbolic links, and 'file-precious-flag' is non-nil. -+++ ** New user option 'copy-directory-create-symlink'. If non-nil, will make 'copy-directory' (when used on a symbolic link) copy the link instead of following the link. The default is nil, so the default behavior is unchanged. -+++ ** New user option 'ignored-local-variable-values'. This is the opposite of 'safe-local-variable-values' -- it's an alist of variable-value pairs that are to be ignored when reading a local-variables section of a file. ---- ** Specific warnings can now be disabled from the warning buffer. When a warning is displayed to the user, the resulting buffer now has buttons which allow making permanent changes to the treatment of that @@ -315,21 +275,17 @@ warning. Automatic showing of the warning can be disabled (although it is still logged to the "*Messages*" buffer), or the warning can be disabled entirely. -+++ ** ".dir-locals.el" now supports setting 'auto-mode-alist'. The new 'auto-mode-alist' specification in ".dir-locals.el" files can now be used to override the global 'auto-mode-alist' in the current directory tree. ---- ** User option 'uniquify-buffer-name-style' can now be a function. This user option can be one of the predefined styles or a function to personalize the uniquified buffer name. ---- ** 'remove-hook' is now an interactive command. ---- ** 'expand-file-name' now checks for null bytes in filenames. The function will now check for null bytes in both NAME and DEFAULT-DIRECTORY arguments, as well as in the 'default-directory' @@ -339,22 +295,18 @@ This means that practically all file-related operations will now check file names for null bytes, thus avoiding subtle bugs with silently using only the part of file name up to the first null byte. ---- ** Frames -+++ *** The key prefix 'C-x 5 5' displays next command buffer in a new frame. It's bound to the command 'other-frame-prefix' that requests the buffer of the next command to be displayed in a new frame. -+++ *** New command 'clone-frame' (bound to 'C-x 5 c'). This is like 'C-x 5 2', but uses the window configuration and frame parameters of the current frame instead of 'default-frame-alist'. When called interactively with a prefix arg, the window configuration is not cloned. ---- *** Default values of 'frame-title-format' and 'icon-title-format' have changed. These variables are used to display the title bar of visible frames and the title bar of an iconified frame. They now show the name of @@ -365,68 +317,56 @@ your init file: (setq frame-title-format '(multiple-frames "%b" ("" invocation-name "@" system-name))) -+++ *** New frame parameter 'drag-with-tab-line'. This parameter, similar to 'drag-with-header-line', allows moving frames by dragging the tab lines of their topmost windows with the mouse. -+++ *** New optional behavior of 'delete-other-frames'. When invoked with a prefix argument, 'delete-other-frames' now iconifies frames, rather than deleting them. ---- *** Commands 'set-frame-width' and 'set-frame-height' now prompt for values. These commands now prompt for the value via the minibuffer, instead of requiring the user to specify the value via the prefix argument. ** Windows -+++ *** The key prefix 'C-x 4 1' displays next command buffer in the same window. It's bound to the command 'same-window-prefix' that requests the buffer of the next command to be displayed in the same window. -+++ *** The key prefix 'C-x 4 4' displays next command buffer in a new window. It's bound to the command 'other-window-prefix' that requests the buffer of the next command to be displayed in a new window. -+++ *** New command 'recenter-other-window', bound to 'S-M-C-l'. Like 'recenter-top-bottom', but acting on the other window. -+++ *** New user option 'delete-window-choose-selected'. This allows specifying how Emacs chooses which window will be the frame's selected window after the currently selected window is deleted. -+++ *** New argument NO-OTHER for some window functions. 'get-lru-window', 'get-mru-window' and 'get-largest-window' now accept a new optional argument NO-OTHER which, if non-nil, avoids returning a window whose 'no-other-window' parameter is non-nil. -+++ *** New 'display-buffer' function 'display-buffer-use-least-recent-window'. This is like 'display-buffer-use-some-window', but won't reuse the current window, and when called repeatedly will try not to reuse a previously selected window. -+++ *** New function 'window-bump-use-time'. This updates the use time of a window. ** Minibuffer -+++ *** Minibuffer scrolling is now conservative by default. This is controlled by the new variable 'scroll-minibuffer-conservatively'. It is t by default; setting it to nil will cause scrolling in the minibuffer obey the value of 'scroll-conservatively'. -+++ *** Improved handling of minibuffers on switching frames. By default, when you switch to another frame, an active minibuffer now moves to the newly selected frame. Nevertheless, the effect of what @@ -439,14 +379,12 @@ behavior, which mixed these two, can be approximated by customizing 'minibuffer-follows-selected-frame' to a value which is neither nil nor t. -+++ *** New user option 'read-minibuffer-restore-windows'. When customized to nil, it uses 'minibuffer-restore-windows' in 'minibuffer-exit-hook' to remove only the window showing the "*Completions*" buffer, but keeps all other windows created while the minibuffer was active. ---- *** New variable 'redisplay-adhoc-scroll-in-resize-mini-windows'. Customizing it to nil will disable the ad-hoc auto-scrolling of minibuffer text shown in mini-windows when resizing those windows. @@ -457,13 +395,11 @@ cases anyway. ** Mode Line -+++ *** New user option 'mode-line-compact'. If non-nil, repeating spaces are compressed into a single space. If 'long', this is only done when the mode line is longer than the current window width (in columns). -+++ *** New user options to control format of line/column numbers in the mode line. 'mode-line-position-line-format' is the line number format (when 'line-number-mode' is on), 'mode-line-position-column-format' is @@ -473,16 +409,13 @@ both modes are on). ** Tab Bars and Tab Lines -+++ *** The prefix key 'C-x t t' can be used to display a buffer in a new tab. Typing 'C-x t t' before a command will cause the buffer shown by that command to be displayed in a new tab. 'C-x t t' is bound to the command 'other-tab-prefix'. -+++ *** New command 'C-x t C-r' to open file read-only in the other tab. -+++ *** The tab bar now supports more mouse commands. Clicking 'mouse-2' closes the tab, 'mouse-3' displays the context menu with items that operate on the clicked tab. Dragging the tab with @@ -490,20 +423,17 @@ with items that operate on the clicked tab. Dragging the tab with scrolling switches to the previous/next tab, and holding the Shift key during scrolling moves the tab to the left/right. -+++ *** Frame-specific appearance of the tab bar when 'tab-bar-show' is a number. When 'tab-bar-show' is a number, the tab bar on different frames can be shown or hidden independently, as determined by the number of tabs on each frame compared to the numerical value of 'tab-bar-show'. -+++ *** New command 'toggle-frame-tab-bar'. It can be used to enable/disable the tab bar on the currently selected frame regardless of the values of 'tab-bar-mode' and 'tab-bar-show'. This allows enabling/disabling the tab bar independently on different frames. -+++ *** New user option 'tab-bar-format' defines a list of tab bar items. When it contains 'tab-bar-format-global' (possibly appended after 'tab-bar-format-align-right'), then after enabling 'display-time-mode' @@ -512,7 +442,6 @@ aligned to the right on the tab bar instead of on the mode line. When 'tab-bar-format-tabs' is replaced with 'tab-bar-format-tabs-groups', the tab bar displays tab groups. -+++ *** New optional key binding for 'tab-last'. If you customize the user option 'tab-bar-select-tab-modifiers' to allow selecting tabs using their index numbers, the '-9' key @@ -522,20 +451,16 @@ is any of the modifiers in the list that is the value of which count from the last tab: 1 is the last tab, 2 the one before that, etc. ---- *** New command 'tab-duplicate' bound to 'C-x t n'. ---- *** 'C-x t N' creates a new tab at the specified absolute position. The position is provided as prefix arg, and specifies an index that starts at 1. Negative values count from the end of the tab bar. ---- *** 'C-x t M' moves the current tab to the specified absolute position. The position is provided as prefix arg, whose interpretation is as in 'C-x t N'. ---- *** 'C-x t G' assigns a tab to a named group of tabs. 'tab-close-group' closes all tabs that belong to the selected group. The user option 'tab-bar-new-tab-group' defines the default group of @@ -543,18 +468,14 @@ new tabs. After customizing 'tab-bar-tab-post-change-group-functions' to 'tab-bar-move-tab-to-group', changing the group of a tab will also move it closer to other tabs in the same group. ---- *** New user option 'tab-bar-tab-name-format-function'. ---- *** New user option 'tab-line-tab-name-format-function'. ---- *** The tabs in the tab line can now be scrolled using horizontal scroll. If your mouse or trackpad supports it, you can now scroll tabs when the mouse pointer is in the tab line by scrolling left or right. ---- *** New tab-line faces and user options. The face 'tab-line-tab-special' is used for tabs whose buffers are special, i.e. buffers that don't visit a file. The face @@ -569,17 +490,14 @@ in other ways. ** Mouse wheel ---- *** Mouse wheel scrolling now defaults to one line at a time. ---- *** Mouse wheel scrolling now works on more parts of frame's display. When using 'mouse-wheel-mode', the mouse wheel will now scroll also when the mouse cursor is on the scroll bars, fringes, margins, header line, and mode line. ('mouse-wheel-mode' is enabled by default on most graphical displays.) -+++ *** Mouse wheel scrolling with Shift modifier now scrolls horizontally. This works in text buffers and over images. Typing a numeric prefix arg (e.g. 'M-5') before starting horizontal scrolling changes its step value. @@ -587,10 +505,8 @@ The value is saved in the user option 'mouse-wheel-scroll-amount-horizontal'. ** Customize ---- *** Customize buffers can now be reverted with 'C-x x g'. ---- *** Most customize commands now hide obsolete user options. Obsolete user options are no longer shown in the listings produced by the commands 'customize', 'customize-group', 'customize-apropos' and @@ -599,35 +515,28 @@ the commands 'customize', 'customize-group', 'customize-apropos' and To customize obsolete user options, use 'customize-option' or 'customize-saved'. ---- *** New SVG icons for checkboxes and arrows. They will be used automatically instead of the old icons. If Emacs is built without SVG support, the old icons will be used instead. ** Help ---- *** The order of things displayed in the "*Help*" buffer has been changed. The indented "administrative" block (containing the "probably introduced" and "other relevant functions" (and similar things) has been moved to after the doc string. -+++ *** New command 'describe-command' shows help for a command. This can be used instead of 'describe-function' for interactive commands and is globally bound to 'C-h x'. -+++ *** New command 'describe-keymap' describes keybindings in a keymap. ---- *** New command 'apropos-function'. This works like 'C-u M-x apropos-command' but is more discoverable. ---- *** New keybinding 'C-h R' prompts for an Info manual and displays it. ---- *** Keybindings in 'help-mode' use the new 'help-key-binding' face. This face is added by 'substitute-command-keys' to any "\[command]" substitution. The return value of that function should consequently @@ -638,17 +547,14 @@ with the new optional argument NO-FACE non-nil. Note that the new face will also be used in tooltips. When using the GTK toolkit, this is only true if 'x-gtk-use-system-tooltips' is t. -+++ *** New user option 'help-enable-symbol-autoload'. If non-nil, displaying help for an autoloaded function whose 'autoload' form provides no documentation string will try to load the file it's from. This will give more extensive help for such functions. ---- *** The 'help-for-help' ('C-h C-h') screen has been redesigned. -+++ *** New convenience commands with short keys in the "*Help*" buffer. New command 'help-view-source' ('s') will view the source file (if any) of the current help topic. New command 'help-goto-info' ('i') @@ -656,79 +562,65 @@ will look up the current symbol (if any) in Info. New command 'help-customize' ('c') will customize the user option or the face (if any) whose doc string is being shown in the "*Help*" buffer. ---- *** New user option 'describe-bindings-outline'. It enables outlines in the output buffer of 'describe-bindings' that can provide a better overview in a long list of available bindings. -+++ *** New commands to describe buttons and widgets. 'widget-describe' (on a widget) will pop up the "*Help*" buffer and give a description of the properties. Likewise 'button-describe' does the same for a button. ---- *** Improved "find definition" feature of "*Help*" buffers. Now clicking on the link to find the definition of functions generated by 'cl-defstruct', or variables generated by 'define-derived-mode', for example, will go to the exact place where they are defined. ---- *** New commands 'apropos-next-symbol' and 'apropos-previous-symbol'. These new navigation commands are bound to 'n' and 'p' in 'apropos-mode'. ---- *** The command 'view-lossage' can now be invoked from the menu bar. The menu bar "Help" menu now has a "Show Recent Inputs" item under the "Describe" sub-menu. -+++ *** New command 'lossage-size'. It allows users to change the maximum number of keystrokes and commands recorded for the purpose of 'view-lossage'. ---- *** Closing the "*Help*" buffer from the toolbar now buries the buffer. In previous Emacs versions, the "*Help*" buffer was killed instead when clicking the "X" icon in the tool bar. ---- *** 'g' ('revert-buffer') in 'help-mode' no longer requires confirmation. ** File Locks -+++ *** New user option 'lock-file-name-transforms'. This option allows controlling where lock files are written. It uses the same syntax as 'auto-save-file-name-transforms'. -+++ *** New user option 'remote-file-name-inhibit-locks'. When non-nil, this option suppresses lock files for remote files. Default is nil. -+++ *** New minor mode 'lock-file-mode'. This command, called interactively, toggles the local value of 'create-lockfiles' in the current buffer. ** Emacs Server -+++ *** New user option 'server-client-instructions'. When emacsclient connects, Emacs will (by default) output a message about how to exit the client frame. If 'server-client-instructions' is set to nil, this message is inhibited. -+++ *** New command 'server-edit-abort'. This command (not bound to any key by default) can be used to abort an edit instead of marking it as "Done" (which the 'C-x #' command does). The 'emacsclient' program exits with an abnormal status as result of this command. -+++ *** New desktop integration for connecting to the server. If your operating system's desktop environment is freedesktop.org-compatible (which is true of most GNU/Linux and other @@ -739,25 +631,20 @@ running. ** Miscellaneous -+++ *** New command 'font-lock-update', bound to 'C-x x f'. This command updates the syntax highlighting in this buffer. -+++ *** New command 'memory-report'. This command opens a new buffer called "*Memory Report*" and gives a summary of where Emacs is using memory currently. -+++ *** New command 'submit-emacs-patch'. This works like 'report-emacs-bug', but is more geared towards sending patches to the Emacs issue tracker. ---- *** New face 'apropos-button'. Applies to buttons that indicate a face. -+++ *** New face 'font-lock-doc-markup-face'. Intended for documentation mark-up syntax and tags inside text that uses 'font-lock-doc-face', which it should appropriately stand out @@ -766,41 +653,34 @@ documentation comments in program source code by language-specific modes, for mark-up conventions like Haddock, Javadoc or Doxygen. By default this face inherits from 'font-lock-constant-face'. -+++ *** New face box style 'flat-button'. This is a plain 2D button, but uses the background color instead of the foreground color. ---- *** New faces 'shortdoc-heading' and 'shortdoc-section'. Applied to shortdoc headings and sections. ---- *** New face 'separator-line'. This is used by 'make-separator-line' (see below). -+++ *** 'redisplay-skip-fontification-on-input' helps Emacs keep up with fast input. This is another attempt to solve the problem of handling high key repeat rate and other "slow scrolling" situations. It is hoped it behaves better than 'fast-but-imprecise-scrolling' and 'jit-lock-defer-time'. It is not enabled by default. ---- *** Obsolete aliases are no longer hidden from command completion. Completion of command names now considers obsolete aliases as candidates, if they were marked obsolete in the current major version of Emacs. Invoking a command via an obsolete alias now mentions the obsolescence fact and shows the new name of the command. -+++ *** Support for '(box . SIZE)' 'cursor-type'. By default, 'box' cursor always has a filled box shape. But if you specify 'cursor-type' to be '(box . SIZE)', the cursor becomes a hollow box if the point is on an image larger than SIZE pixels in any dimension. -+++ *** The user can now customize how "default" values are prompted for. The new utility function 'format-prompt' has been added which uses the new 'minibuffer-default-prompt-format' user option to format "default" @@ -810,7 +690,6 @@ number [10]", or not have the default displayed at all, like "Enter a number". (This only affects callers that were altered to use 'format-prompt'.) ---- *** New help window when Emacs prompts before opening a large file. Commands like 'find-file' or 'visit-tags-table' ask to visit a file normally or literally when the file is larger than a certain size (by @@ -818,20 +697,17 @@ default, 9.5 MiB). Press '?' or 'C-h' in that prompt to read more about the different options to visit a file, how you can disable the prompt, and how you can tweak the file size threshold. -+++ *** Emacs now defaults to UTF-8 instead of ISO-8859-1. This is only for the default, where the user has set no 'LANG' (or similar) variable or environment. This change should lead to no user-visible changes for normal usage. ---- *** 'global-display-fill-column-indicator-mode' skips some buffers. By default, turning on 'global-display-fill-column-indicator-mode' doesn't turn on 'display-fill-column-indicator-mode' in special-mode buffers. This can be controlled by customizing the user option 'global-display-fill-column-indicator-modes'. -+++ *** 'nobreak-char-display' now also affects all non-ASCII space characters. Previously, this was limited only to 'NO-BREAK SPACE' and hyphen characters. Now it also covers the rest of the non-ASCII Unicode @@ -840,7 +716,6 @@ non-ASCII characters are displayed as themselves when 'nobreak-char-display' is t, i.e. they are not replaced on display with the ASCII space and hyphen characters. ---- *** New backward compatibility variable 'nobreak-char-ascii-display'. This variable is nil by default, and non-ASCII space and hyphen characters are displayed as themselves, even if 'nobreak-char-display' @@ -854,7 +729,6 @@ t. You may need this on text-mode terminals that produce messed up display when non-ASCII spaces and hyphens are written to the display. (This variable is only effective when 'nobreak-char-display' is t.) -+++ *** Improved support for terminal emulators that encode the Meta flag. Some terminal emulators set the 8th bit of Meta characters, and then encode the resulting character code as if it were non-ASCII character @@ -865,7 +739,6 @@ Meta characters to Emacs, e.g., send "ESC x" when the user types emulators by using the new input-meta-mode with the special value 'encoded' with these terminal emulators. ---- *** 'auto-composition-mode' can now be selectively disabled on some TTYs. Some text-mode terminals produce display glitches trying to compose characters. The 'auto-composition-mode' can now have a string value @@ -874,14 +747,12 @@ function compares equal with that string, automatic composition will be disabled in windows shown on that terminal. The Linux terminal sets this up by default. ---- *** Support for the 'strike-through' face attribute on TTY frames. If your terminal's termcap or terminfo database entry has the 'smxx' capability defined, Emacs will now emit the prescribed escape sequences necessary to render faces with the 'strike-through' attribute on TTY frames. ---- *** TTY menu navigation is now supported in 'xterm-mouse-mode'. TTY menus support mouse navigation and selection when 'xterm-mouse-mode' is active. When run on a terminal, clicking on the menu bar with the @@ -889,19 +760,15 @@ mouse now pops up a TTY menu by default instead of running the command 'tmm-menubar'. To restore the old behavior, set the user option 'tty-menu-open-use-tmm' to non-nil. ---- *** 'M-x report-emacs-bug' will no longer include "Recent messages" section. These were taken from the "*Messages*" buffer, and may inadvertently leak information from the reporting user. ---- *** 'C-u M-x dig' will now prompt for a query type to use. ---- *** Rudimentary support for the 'st' terminal emulator. Emacs now supports 256 color display on the 'st' terminal emulator. -+++ *** Update IRC-related references to point to Libera.Chat. The Free Software Foundation and the GNU Project have moved their official IRC channels from the Freenode network to Libera.Chat. For the @@ -921,12 +788,10 @@ https://lists.gnu.org/archive/html/info-gnu-emacs/2021-06/msg00000.html * Incompatible Editing Changes in Emacs 28.1 ---- ** 'toggle-truncate-lines' now disables 'visual-line-mode'. This is for symmetry with 'visual-line-mode', which disables 'truncate-lines'. ---- ** 'electric-indent-mode' now also indents inside strings and comments. (This only happens when indentation function also supports this.) @@ -935,7 +800,6 @@ To recover the previous behavior you can use: (add-hook 'electric-indent-functions (lambda (_) (if (nth 8 (syntax-ppss)) 'no-indent))) ---- ** The 'M-o' ('facemenu-keymap') global binding has been removed. To restore the old binding, say something like: @@ -947,7 +811,6 @@ To restore the old binding, say something like: The last two lines are not strictly necessary if you don't care about having those two commands on the 'M-o' keymap; see the next section. ---- ** The 'M-o M-s' and 'M-o M-S' global bindings have been removed. Use 'M-x center-line' and 'M-x center-paragraph' instead. See the previous section for how to get back the old bindings. Alternatively, @@ -957,12 +820,10 @@ had before, you can add the following to your init file: (define-key global-map "\M-o\M-s" 'center-line) (define-key global-map "\M-o\M-S" 'center-paragraph) ---- ** The 'M-o M-o' global binding has been removed. Use 'M-x font-lock-fontify-block' instead, or the new 'C-x x f' command, which updates the syntax highlighting in the current buffer. ---- ** The escape sequence '\e[29~' in Xterm is now mapped to 'menu'. Xterm sends this sequence for both 'F16' and 'Menu' keys It used to be mapped to 'print' but we couldn't find a terminal @@ -970,26 +831,21 @@ that uses this sequence for any kind of 'Print' key. This makes the Menu key (see https://en.wikipedia.org/wiki/Menu_key) work for 'context-menu-mode' in Xterm. ---- ** New user option 'xterm-store-paste-on-kill-ring'. If non-nil (the default), Emacs pushes pasted text onto the kill ring (if using an xterm-like terminal that supports bracketed paste). Setting this to nil inhibits that. ---- ** 'vc-print-branch-log' shows the change log from its root directory. It previously used to use the default directory. ---- ** 'project-shell' and 'shell' now use 'pop-to-buffer-same-window'. This is to keep the same behavior as Eshell. ---- ** In 'nroff-mode', 'center-line' is no longer bound to a key. The original key binding was 'M-s', which interfered with Isearch, since the latter uses 'M-s' as a prefix key of the search prefix map. ---- ** In 'f90-mode', the backslash character ('\') no longer escapes. For about a decade, the backslash character has no longer had a special escape syntax in Fortran F90. To get the old behavior back, @@ -997,7 +853,6 @@ say something like: (modify-syntax-entry ?\\ "\\" f90-mode-syntax-table) -+++ ** Setting 'fill-column' to nil is obsolete. This undocumented use of 'fill-column' is now obsolete. To disable auto filling, turn off 'auto-fill-mode' instead. @@ -1012,7 +867,6 @@ file: ** Input methods -+++ *** Emacs now supports "transient" input methods. A transient input method is enabled for inserting a single character, and is then automatically disabled. 'C-x \' temporarily enables the @@ -1024,33 +878,27 @@ character '½', and disable the 'compose' input method afterwards. You can use 'C-x \' in incremental search to insert a single character to the search string. ---- *** New input method 'compose' based on X Multi_key sequences. ---- *** New input method 'iso-transl' with the same keys as 'C-x 8'. After selecting it as a transient input method with 'C-u C-x \ iso-transl RET', it supports the same key sequences as 'C-x 8', so e.g. like 'C-x 8 [' inserts a left single quotation mark, 'C-x \ [' does the same. ---- *** New user option 'read-char-by-name-sort'. It defines the sorting order of characters for completion of 'C-x 8 RET TAB' and can be customized to sort them by codepoints instead of character names. Additionally, you can group characters by Unicode blocks after customizing 'completions-group' and 'completions-group-sort'. ---- *** Improved language transliteration in Malayalam input methods. Added a new Mozhi scheme. The inapplicable ITRANS scheme is now deprecated. Errors in the Inscript method were corrected. ---- *** New input method 'cham'. There's also a Cham greeting in "etc/HELLO". ---- *** New input methods for Lakota language orthographies. Two orthographies are represented here, the Suggested Lakota Orthography and what is known as the White Hat Orthography. Input @@ -1058,7 +906,6 @@ methods 'lakota-slo-prefix', 'lakota-slo-postfix', and 'lakota-white-hat-postfix' have been added. There is also a Lakota greeting in "etc/HELLO". -+++ ** Standalone 'M-y' allows interactive selection from previous kills. 'M-y' can now be typed after a command that is not a yank command. When invoked like that, it prompts in the minibuffer for one of the @@ -1068,14 +915,12 @@ in Isearch can be invoked if you bind 'C-s M-y' to the command 'isearch-yank-pop'. When the user option 'yank-from-kill-ring-rotate' is nil the kill ring is not rotated after 'yank-from-kill-ring'. -+++ ** New user option 'word-wrap-by-category'. When word-wrap is enabled, and this option is non-nil, that allows Emacs to break lines after more characters than just whitespace characters. In particular, this significantly improves word-wrapping for CJK text mixed with Latin text. -+++ ** New command 'undo-redo'. It undoes previous undo commands, but doesn't record itself as an undoable command. It is bound to 'C-?' and 'C-M-_', the first binding @@ -1084,43 +929,35 @@ works well in graphical mode, and the second one is easy to hit on tty. For full conventional undo/redo behavior, you can also customize the user option 'undo-no-redo' to t. -+++ ** New commands 'copy-matching-lines' and 'kill-matching-lines'. These commands are similar to the command 'flush-lines', but add the matching lines to the kill ring as a single string, including the newlines that separate the lines. -+++ ** New user option 'kill-transform-function'. This can be used to transform (and suppress) strings from entering the kill ring. -+++ ** 'save-interprogram-paste-before-kill' can now be a number. In that case, it's interpreted as a limit on the size of the clipboard data that will be saved to the 'kill-ring' prior to killing text: if the size of the clipboard data is greater than or equal to the limit, it will not be saved. -+++ ** New user option 'tab-first-completion'. If 'tab-always-indent' is 'complete', this new user option can be used to further tweak whether to complete or indent. ---- ** 'indent-tabs-mode' is now a global minor mode instead of just a variable. -+++ ** New choice 'permanent' for 'shift-select-mode'. When the mark was activated by shifted motion keys, non-shifted motion keys don't deactivate the mark after customizing 'shift-select-mode' to 'permanent'. Similarly, the active mark will not be deactivated by typing shifted motion keys. -+++ ** The "Edit => Clear" menu item now obeys a rectangular region. -+++ ** New command 'revert-buffer-with-fine-grain'. Revert a buffer trying to be as non-destructive as possible, preserving markers, properties and overlays. The new variable @@ -1128,18 +965,15 @@ preserving markers, properties and overlays. The new variable number of seconds that 'revert-buffer-with-fine-grain' should spend trying to be non-destructive, with a default value of 2 seconds. -+++ ** New command 'revert-buffer-quick'. This is bound to 'C-x x g' and is like 'revert-buffer', but prompts less. -+++ ** New user option 'revert-buffer-quick-short-answers'. This controls how the new 'revert-buffer-quick' ('C-x x g') command prompts. A non-nil value will make it use 'y-or-n-p' rather than 'yes-or-no-p'. Defaults to nil. -+++ ** New user option 'query-about-changed-file'. If non-nil (the default), Emacs prompts as before when re-visiting a file that has changed externally after it was visited the first time. @@ -1147,30 +981,25 @@ If nil, Emacs does not prompt, but instead shows the buffer with its contents before the change, and provides instructions how to revert the buffer. ---- ** New value 'save-some-buffers-root' of 'save-some-buffers-default-predicate'. When using this predicate, only buffers under the current project root will be considered when saving buffers with 'save-some-buffers'. ---- ** New user option 'save-place-abbreviate-file-names'. This can simplify sharing the 'save-place-file' file across different hosts. ---- ** New user options 'copy-region-blink-delay' and 'delete-pair-blink-delay'. 'copy-region-blink-delay' specifies a delay to indicate the region copied by 'kill-ring-save'. 'delete-pair-blink-delay' specifies a delay to show the paired character to delete. ---- ** 'zap-up-to-char' now uses 'read-char-from-minibuffer'. This allows navigating through the history of characters that have been input. This is mostly useful for characters that have complex input methods where inputting the character again may involve many keystrokes. -+++ ** Input history for 'goto-line' can now be made local to every buffer. In any event, line numbers used with 'goto-line' are kept in their own history list. This should help make faster the process of finding @@ -1178,7 +1007,6 @@ line numbers that were previously jumped to. By default, all buffers share a single history list. To make every buffer have its own history list, customize the user option 'goto-line-history-local'. -+++ ** New command 'goto-line-relative' for use in a narrowed buffer. It moves point to the line relative to the accessible portion of the narrowed buffer. 'M-g M-g' in Info is rebound to this command. @@ -1186,7 +1014,6 @@ When 'widen-automatically' is non-nil, 'goto-line' widens the narrowed buffer to be able to move point to the inaccessible portion. 'goto-line-relative' is bound to 'C-x n g'. -+++ ** 'goto-char' prompts for the character position. When called interactively, 'goto-char' now offers the position at point as the default. @@ -1195,11 +1022,9 @@ point as the default. Set the user option 'auto-save-visited-mode' buffer-locally to nil to achieve that. -+++ ** New command 'kdb-macro-redisplay' to force redisplay in keyboard macros. This command is bound to 'C-x C-k d'. ---- ** 'blink-cursor-mode' is now enabled by default regardless of the UI. It used to be enabled when Emacs is started in GUI mode but not when started in text mode. The cursor still only actually blinks in GUI frames. @@ -1208,7 +1033,6 @@ in text mode. The cursor still only actually blinks in GUI frames. To go back to the previous behavior, customize the user option of the same name to nil. -+++ ** New minor mode 'show-paren-local-mode'. It serves as a local counterpart for 'show-paren-mode', allowing you to toggle it separately in different buffers. To use it only in @@ -1221,7 +1045,6 @@ programming modes, for example, add the following to your init file: ** Isearch and Replace -+++ *** Interactive regular expression search now uses faces for sub-groups. E.g., 'C-M-s foo-\([0-9]+\)' will now use the 'isearch-group-1' face on the part of the regexp that matches the sub-expression "[0-9]+". @@ -1233,12 +1056,10 @@ This is controlled by the 'search-highlight-submatches' user option. This feature is available only on terminals that have enough colors to distinguish between sub-expression highlighting. -+++ *** Interactive regular expression replace now uses faces for sub-groups. Like 'search-highlight-submatches', this is controlled by the new user option 'query-replace-highlight-submatches'. -+++ *** New key 'M-s M-.' starts isearch looking for the thing at point. This key is bound to the new command 'isearch-forward-thing-at-point'. The new user option 'isearch-forward-thing-at-point' defines @@ -1246,20 +1067,17 @@ a list of symbols to try to get the "thing" at point. By default, the first element of the list is 'region' that tries to yank the currently active region to the search string. -+++ *** New user option 'isearch-wrap-pause' defines how to wrap the search. There are choices to disable wrapping completely and to wrap immediately. When wrapping immediately, it consistently handles the numeric arguments of 'C-s' ('isearch-repeat-forward') and 'C-r' ('isearch-repeat-backward'), continuing with the remaining count after wrapping. -+++ *** New user option 'isearch-repeat-on-direction-change'. When this option is set, direction changes in Isearch move to another search match, if there is one, instead of moving point to the other end of the current match. -+++ *** New user option 'isearch-allow-motion'. When 'isearch-allow-motion' is set, the commands 'beginning-of-buffer', 'end-of-buffer', 'scroll-up-command' and 'scroll-down-command', when @@ -1271,14 +1089,12 @@ during Isearch by using their 'isearch-motion' property. The user option 'isearch-motion-changes-direction' controls whether the direction of the search changes after a motion command. -+++ *** New user option 'lazy-highlight-no-delay-length'. Lazy highlighting of matches in Isearch now starts immediately if the search string is at least this long. 'lazy-highlight-initial-delay' still applies for shorter search strings, which avoids flicker in the search buffer due to too many matches being highlighted. -+++ *** The default 'search-whitespace-regexp' value has changed. This used to be "\\s-+", which meant that it was mode-dependent whether newlines were included in the whitespace set. This has now been @@ -1286,52 +1102,43 @@ changed to only match spaces and tab characters. ** Dired -+++ *** New user option 'dired-kill-when-opening-new-dired-buffer'. If non-nil, Dired will kill the current buffer when selecting a new directory to display. -+++ *** Behavior change on 'dired-do-chmod'. As a security precaution, Dired's 'M' command no longer follows symbolic links. Instead, it changes the symbolic link's own mode; this always fails on platforms where such modes are immutable. ---- *** Behavior change on 'dired-clean-confirm-killing-deleted-buffers'. Previously, if 'dired-clean-up-buffers-too' was non-nil, and 'dired-clean-confirm-killing-deleted-buffers' was nil, the buffers wouldn't be killed. This combination will now kill the buffers. -+++ *** New user option 'dired-switches-in-mode-line'. This user option controls how 'ls' switches are displayed in the mode line, and allows truncating them (to preserve space on the mode line) or showing them literally, either instead of, or in addition to, displaying "by name" or "by date" sort order. -+++ *** New user option 'dired-compress-directory-default-suffix'. This user option controls the default suffix for compressing a directory. If it's nil, ".tar.gz" will be used. Refer to 'dired-compress-files-alist' for a list of supported suffixes. -+++ *** New user option 'dired-compress-file-default-suffix'. This user option controls the default suffix for compressing files. If it's nil, ".gz" will be used. Refer to 'dired-compress-file-alist' for a list of supported suffixes. ---- *** Broken and circular links are shown with the 'dired-broken-symlink' face. ---- *** '=' ('dired-diff') will now put all backup files into the 'M-n' history. When using '=' on a file with backup files, the default file to use for diffing is the newest backup file. You can now use 'M-n' to quickly select a different backup file instead. -+++ *** New user option 'dired-maybe-use-globstar'. If set, enables globstar (recursive globbing) in shells that support this feature, but have it turned off by default. This allows producing @@ -1340,19 +1147,16 @@ subdirectories of a given directory. The new variable 'dired-enable-globstar-in-shell' lists which shells can have globstar enabled, and how to enable it. -+++ *** New user option 'dired-copy-dereference'. If set to non-nil, Dired will dereference symbolic links when copying. This can be switched off on a per-usage basis by providing 'dired-do-copy' with a 'C-u' prefix. ---- *** New user option 'dired-do-revert-buffer'. Non-nil reverts the destination Dired buffer after performing one of these operations: 'dired-do-copy', 'dired-do-rename', 'dired-do-symlink', 'dired-do-hardlink'. ---- *** New user option 'dired-mark-region'. This option affects all Dired commands that mark files. When non-nil and the region is active in Transient Mark mode, then Dired commands @@ -1360,12 +1164,10 @@ operate only on files in the active region. The values 'file' and 'line' of this user option define the details of marking the file at the end of the region. -+++ *** State changing VC operations are supported in Dired. These operations are supported on files and directories via the new command 'dired-vc-next-action'. -+++ *** 'dired-jump' and 'dired-jump-other-window' moved from 'dired-x' to 'dired'. The 'dired-jump' and 'dired-jump-other-window' commands have been moved from the 'dired-x' package to 'dired'. The user option @@ -1378,25 +1180,21 @@ keys, add the following to your init file: (global-set-key "\C-x\C-j" nil) (global-set-key "\C-x4\C-j" nil) ---- *** 'dired-query' now uses 'read-char-from-minibuffer'. Using it instead of 'read-char-choice' allows using 'C-x o' to switch to the help window displayed after typing 'C-h'. -+++ ** Emacs 28.1 comes with Org v9.5. See the file ORG-NEWS for user-visible changes in Org. ** Outline -+++ *** New commands to cycle heading visibility. Typing 'TAB' on a heading line cycles the current section between "hide all", "subheadings", and "show all" states. Typing 'S-TAB' anywhere in the buffer cycles the whole buffer between "only top-level headings", "all headings and subheadings", and "show all" states. -+++ *** New user option 'outline-minor-mode-cycle'. This user option customizes 'outline-minor-mode', with the difference that 'TAB' and 'S-TAB' on heading lines cycle heading visibility. @@ -1405,7 +1203,6 @@ Typing 'TAB' on a heading line cycles the current section between heading line cycles the whole buffer between "only top-level headings", "all headings and subheadings", and "show all" states. ---- *** New user option 'outline-minor-mode-highlight'. This user option customizes 'outline-minor-mode'. It puts highlighting on heading lines using standard outline faces. This @@ -1414,27 +1211,22 @@ major mode. ** Ispell -+++ *** 'ispell-comments-and-strings' now accepts START and END arguments. These arguments default to the active region when used interactively. -+++ *** New command 'ispell-comment-or-string-at-point'. ---- *** New user option 'ispell-help-timeout'. This controls how long the ispell help (on the '?' key) is displayed. ** Flyspell mode -+++ *** Corrections and actions menu can be optionally bound to 'mouse-3'. When Flyspell mode highlights a word as misspelled, you can click on it to display a menu of possible corrections and actions. You can now easily bind this menu to 'down-mouse-3' (usually the right mouse button) instead of 'mouse-2' (the default) by enabling 'context-menu-mode'. ---- *** The current dictionary is now displayed in the minor mode lighter. Clicking the dictionary name changes the current dictionary. @@ -1444,7 +1236,6 @@ Clicking the dictionary name changes the current dictionary. Thus, packages on NonGNU ELPA will appear by default in the list shown by 'list-packages'. ---- *** '/ s' ('package-menu-filter-by-status') changed parameter handling. The command was documented to take a comma-separated list of statuses to filter by, but instead it used the parameter as a regexp. The @@ -1452,10 +1243,8 @@ command has been changed so that it now works as documented, and checks statuses not as a regexp, but instead an exact match from the comma-separated list. -+++ *** New command 'package-browse-url' and keystroke 'w'. -+++ *** New commands to filter the package list. The filter commands are bound to the following keys: @@ -1482,7 +1271,6 @@ run the native-compilation of the package files. (Be sure to leave Emacs running until these asynchronous subprocesses exit, or else the native-compilation will be aborted when you exit Emacs.) ---- *** Column widths in 'list-packages' display can now be customized. See the new user options 'package-name-column-width', 'package-version-column-width', 'package-status-column-width', and @@ -1490,7 +1278,6 @@ See the new user options 'package-name-column-width', ** Info ---- *** New user option 'Info-warn-on-index-alternatives-wrap'. This option affects what happens when using the ',' command after looking up an entry with 'i' in info buffers. If non-nil (the @@ -1500,7 +1287,6 @@ you to the first match. ** Abbrev mode -+++ *** Emacs can now suggest to use an abbrev based on text you type. A new user option, 'abbrev-suggest', enables the new abbrev suggestion feature. When enabled, if a user manually types a piece of text that @@ -1510,17 +1296,14 @@ used instead. ** Bookmarks ---- *** Bookmarks can now be targets for new tabs. When the bookmark.el library is loaded, a customize choice is added to 'tab-bar-new-tab-choice' for new tabs to show the bookmark list. ---- *** New user option 'bookmark-set-fringe-mark'. If non-nil, setting a bookmark will set a fringe mark on the current line, and jumping to a bookmark will also set this mark. ---- *** New user option 'bookmark-menu-confirm-deletion'. In Bookmark Menu mode, Emacs by default does not prompt for confirmation when you type 'x' to execute the deletion of bookmarks @@ -1528,7 +1311,6 @@ that have been marked for deletion. However, if this new option is non-nil then Emacs will require confirmation with 'yes-or-no-p' before deleting. ---- *** The 'list-bookmarks' menu is now based on 'tabulated-list-mode'. The interactive bookmark list will now benefit from features in 'tabulated-list-mode' like sorting columns or changing column width. @@ -1540,17 +1322,14 @@ The variables 'bookmark-bmenu-use-header-line' and ** Recentf ---- *** The recentf files are no longer backed up. ---- *** 'recentf-auto-cleanup' now repeats daily when set to a time string. When 'recentf-auto-cleanup' is set to a time string, it now repeats every day, rather than only running once after the mode is turned on. ** Calc ---- *** The behavior when doing forward-delete has been changed. Previously, using the 'C-d' command would delete the final number in the input field, no matter where point was. This has been changed to @@ -1558,42 +1337,35 @@ work more traditionally, with 'C-d' deleting the next character. Likewise, point isn't moved to the end of the string before inserting digits. -+++ *** Setting the word size to zero disables word clipping. The word size normally clips the results of certain bit-oriented operations such as shifts and bitwise XOR. A word size of zero, set by 'b w', makes the operation have effect on the whole argument values and the result is not truncated in any way. ---- *** The '/' operator now has higher precedence in (La)TeX input mode. It no longer has lower precedence than '+' and '-'. ---- *** New user option 'calc-make-windows-dedicated'. When this user option is non-nil, Calc will mark its windows as dedicated. ** Calendar -+++ *** New user option 'calendar-time-zone-style'. If 'numeric', calendar functions (eg 'calendar-sunrise-sunset') that display time zones will use a form like "+0100" instead of "CET". ** Imenu -+++ *** New user option 'imenu-max-index-time'. If creating the imenu index takes longer than specified by this option (default 5 seconds), imenu indexing is stopped. ** Ido ---- *** Switching on 'ido-mode' now also overrides 'ffap-file-finder'. ---- *** Killing virtual ido buffers interactively will make them go away. Previously, killing a virtual ido buffer with 'ido-kill-buffer' didn't do anything. This has now been changed, and killing virtual buffers @@ -1601,13 +1373,11 @@ with that command will remove the buffer from recentf. ** So Long ---- *** New 'so-long-predicate' function 'so-long-statistics-excessive-p'. It efficiently detects the presence of a long line anywhere in the buffer using 'buffer-line-statistics' (see above). This is now the default predicate (replacing 'so-long-detected-long-line-p'). ---- *** Default values 'so-long-threshold' and 'so-long-max-lines' increased. The values of these user options have been raised to 10000 bytes and 500 lines respectively, to reduce the likelihood of false-positives when @@ -1615,14 +1385,12 @@ lines respectively, to reduce the likelihood of false-positives when by the old predicate, as the new predicate knows the longest line in the entire buffer. ---- *** 'so-long-target-modes' now includes 'fundamental-mode' by default. This means that 'global-so-long-mode' will also process files which were not recognised. (This only has an effect if 'set-auto-mode' chooses 'fundamental-mode'; buffers which are simply in 'fundamental-mode' by default are unaffected.) ---- *** New user options to preserve modes and variables. The new options 'so-long-mode-preserved-minor-modes' and 'so-long-mode-preserved-variables' allow specified mode and variable @@ -1631,7 +1399,6 @@ mode. By default, these new options support 'view-mode'. ** Grep -+++ *** New user option 'grep-match-regexp' matches grep markers to highlight. Grep emits SGR ANSI escape sequences to color its output. The new user option 'grep-match-regexp' holds the regular expression to match @@ -1639,7 +1406,6 @@ the appropriate markers in order to provide highlighting in the source buffer. The user option can be customized to accommodate other grep-like tools. ---- *** The 'lgrep' command now ignores directories. On systems where the grep command supports it, directories will be skipped. @@ -1653,19 +1419,16 @@ any directory names on the 'find' command lines end in a slash. This change is for better compatibility with old versions of non-GNU 'find', such as the one used on macOS. ---- *** New utility function 'grep-file-at-point'. This returns the name of the file at point (if any) in 'grep-mode' buffers. ** Shell ---- *** New command in 'shell-mode': 'shell-narrow-to-prompt'. This is bound to 'C-x n d' in 'shell-mode' buffers, and narrows to the command line under point (and any following output). ---- *** New user option 'shell-has-auto-cd'. If non-nil, 'shell-mode' handles implicit "cd" commands, changing the directory if the command is a directory. Useful for shells like "zsh" @@ -1673,20 +1436,17 @@ that has this feature. ** Term mode ---- *** New user option 'term-scroll-snap-to-bottom'. By default, 'term' and 'ansi-term' will now recenter the buffer so that the prompt is on the final line in the window. Setting this new user option to nil inhibits this behavior. ---- *** New user option 'term-set-terminal-size'. If non-nil, the 'LINES' and 'COLUMNS' environment variables will be set based on the current window size. In previous versions of Emacs, this was always done (and that could lead to odd displays when resizing the window after starting). This variable defaults to nil. ---- *** 'term-mode' now supports "bright" color codes. "Bright" ANSI color codes are now displayed using the color values defined in 'term-color-bright-*'. In addition, bold text with regular @@ -1695,15 +1455,12 @@ is non-nil. ** Eshell ---- *** 'eshell-hist-ignoredups' can now also be used to mimic "erasedups" in bash. ---- *** Environment variable 'INSIDE_EMACS' is now copied to subprocesses. Its value contains the result of evaluating '(format "%s,eshell" emacs-version)'. Other package names, like "tramp", could also be included. ---- *** Eshell no longer re-initializes its keymap every call. This allows users to use '(define-key eshell-mode-map ...)' as usual. Some modules have their own minor mode now to account for these @@ -1715,7 +1472,6 @@ will create a bookmark that opens the current directory in Eshell. ** Archive mode ---- *** Archive mode can now parse ".squashfs" files. *** Can now modify members of 'ar' archives. @@ -1727,7 +1483,6 @@ New user option 'archive-hidden-columns' and new command 'archive-hideshow-column' let you control which columns are displayed and which are kept hidden. ---- *** New command bound to 'C': 'archive-copy-file'. This command extracts the file at point and writes its data to a file. @@ -1756,15 +1511,12 @@ symbol property to the browsing commands. With a new command 'browse-url-with-browser-kind', an URL can explicitly be browsed with either an internal or external browser. ---- *** Support for browsing of remote files. If a remote file is specified, a local temporary copy of that file is passed to the browser. ---- *** Support for the conkeror browser is now obsolete. ---- *** Support for the Mosaic browser has been removed. This support has been obsolete since 25.1. @@ -1775,7 +1527,6 @@ New key bindings have been added to 'completion-list-mode': 'n' and 'p' now navigate completions, and 'M-g M-c' switches to the minibuffer and back to the completion list buffer. -+++ ** Profiler The results displayed by 'profiler-report' now have the usage figures at the left hand side followed by the function name. This is intended @@ -1785,12 +1536,10 @@ layout back. ** Icomplete ---- *** New user option 'icomplete-matches-format'. This allows controlling the current/total number of matches for the prompt prefix. -+++ *** New minor modes 'icomplete-vertical-mode' and 'fido-vertical-mode'. These modes modify Icomplete ('icomplete-mode') and Fido ('fido-mode'), to display completion candidates vertically instead of @@ -1799,20 +1548,16 @@ kept at the top. In Fido, completions scroll like a typical dropdown widget. Both these new minor modes will turn on their non-vertical counterparts first, if they are not on already. ---- *** Default value of 'icomplete-compute-delay' has been changed to 0.15 s. ---- *** Default value of 'icomplete-max-delay-chars' has been changed to 2. ---- *** Reduced blinking while completing the next completions set. Icomplete doesn't hide the hint with the previously computed completions anymore when compute delay is in effect, or the previous computation has been aborted by input. Instead it shows the previous completions until the new ones are ready. ---- *** Change in meaning of 'icomplete-show-matches-on-no-input'. Previously, choosing a different completion with commands like 'C-.' and then hitting 'RET' would choose the default completion. Doing this @@ -1822,7 +1567,6 @@ with initial input as the default directory. ** Windmove -+++ *** New user options to customize windmove keybindings. These options include 'windmove-default-keybindings', 'windmove-display-default-keybindings', @@ -1832,25 +1576,20 @@ Also new mode 'windmove-mode' enables the customized keybindings. ** Occur mode ---- *** New bindings in 'occur-mode'. The command 'next-error-no-select' is now bound to 'n' and 'previous-error-no-select' is bound to 'p'. ---- *** New command 'recenter-current-error'. It is bound to 'l' in Occur or compilation buffers, and recenters the current displayed occurrence/error. ---- *** Matches in target buffers are now highlighted as in 'compilation-mode'. The method of highlighting is specified by the user options 'next-error-highlight' and 'next-error-highlight-no-select'. ---- *** A fringe arrow in the "*Occur*" buffer indicates the selected match. ---- *** Occur mode may use a different type for 'occur-target' property values. The value was previously always a marker set to the start of the first match on the line but can now also be a list of '(BEGIN . END)' pairs @@ -1861,10 +1600,8 @@ work as before. ** Emacs Lisp mode ---- *** The mode-line now indicates whether we're using lexical or dynamic scoping. -+++ *** A space between an open paren and a symbol changes the indentation rule. The presence of a space between an open paren and a symbol now is taken as a statement by the programmer that this should be indented @@ -1876,37 +1613,31 @@ as a data list rather than as a piece of code. The mode provides refined highlighting of built-in functions, types, and variables. ---- *** Lisp mode now uses 'common-lisp-indent-function'. To revert to the previous behavior, '(setq lisp-indent-function 'lisp-indent-function)' from 'lisp-mode-hook'. ** Change Logs and VC -+++ *** 'vc-revert-show-diff' now has a third possible value: 'kill'. If this user option is 'kill', then the diff buffer will be killed after the 'vc-revert' action instead of buried. ---- *** More VC commands can be used from non-file buffers. The relevant commands are those that don't change the VC state. The non-file buffers which can use VC commands are those that have their 'default-directory' under VC. ---- *** New face 'log-view-commit-body'. This is used when expanding commit messages from 'vc-print-root-log' and similar commands. ---- *** New faces for 'vc-dir' buffers. Those are: 'vc-dir-header', 'vc-dir-header-value', 'vc-dir-directory', 'vc-dir-file', 'vc-dir-mark-indicator', 'vc-dir-status-warning', 'vc-dir-status-edited', 'vc-dir-status-up-to-date', 'vc-dir-status-ignored'. ---- *** The responsible VC backend is now the most specific one. 'vc-responsible-backend' loops over the backends in 'vc-handled-backends' to determine which backend is responsible for a @@ -1914,41 +1645,32 @@ specific (unregistered) file. Previously, the first matching backend was chosen, but now the one with the most specific path is chosen (in case there's a directory handled by one backend inside another). ---- *** New command 'vc-dir-root' uses the root directory without asking. ---- *** New commands 'vc-dir-mark-registered-files' (bound to '* r') and 'vc-dir-mark-unregistered-files'. ---- *** Support for bookmark.el. Bookmark locations can refer to VC directory buffers. ---- *** New user option 'vc-hg-create-bookmark'. It controls whether a bookmark or branch will be created when you invoke 'C-u C-x v s' ('vc-create-tag'). ---- *** 'vc-hg' now uses 'hg summary' to populate extra 'vc-dir' headers. ---- *** New user option 'vc-git-revision-complete-only-branches'. If non-nil, only branches and remotes are considered when doing completion over Git branch names. The default is nil, which causes tags to be considered as well. ---- *** New user option 'vc-git-log-switches'. String or list of strings specifying switches for Git log under VC. ---- *** Command 'vc-switch-backend' is now obsolete. If you are still using it with any regularity, please file a bug report with some details. ---- *** New variable 'vc-git-use-literal-pathspecs'. The Git backend's function now treat all file names "literally", where some of them previously could interpret file names (pathspecs) as @@ -1957,35 +1679,28 @@ the aforementioned variable to nil locally to avoid this. ** Gnus -+++ *** New user option 'gnus-topic-display-predicate'. This can be used to inhibit the display of some topics completely. -+++ *** nnimap now supports the oauth2.el library. -+++ *** New Summary buffer sort options for extra headers. The extra header sort option ('C-c C-s C-x') prompts for a header and fails if no sort function has been defined. Sorting by Newsgroups ('C-c C-s C-u') has been pre-defined. -+++ *** The '#' command in the Group and Summary buffer now toggles, instead of sets, the process mark. -+++ *** New user option 'gnus-process-mark-toggle'. If non-nil (the default), the '#' command in the Group and Summary buffers will toggle, instead of set, the process mark. -+++ *** New user option 'gnus-registry-register-all'. If non-nil (the default), create registry entries for all messages. If nil, don't automatically create entries, they must be created manually. -+++ *** New user options to customise the summary line specs "%[" and "%]". Four new options introduced in customisation group 'gnus-summary-format'. These are 'gnus-sum-opening-bracket', @@ -1998,29 +1713,24 @@ the value of 'gnus-sum-opening-bracket', but can also be normally display the value of 'gnus-sum-closing-bracket', but can also be 'gnus-sum-closing-bracket-adopted' for the adopted articles. -+++ *** New user option 'gnus-paging-select-next'. This controls what happens when using commands like 'SPC' and 'DEL' to page the current article. If non-nil (the default), go to the next/prev article, but if nil, do nothing at the end/start of the article. -+++ *** New gnus-search library. A new unified search syntax which can be used across multiple supported search engines. Set 'gnus-search-use-parsed-queries' to non-nil to enable. -+++ *** New value for user option 'smiley-style'. Smileys can now be rendered with emojis instead of small images when using the new 'emoji' value in 'smiley-style'. -+++ *** New user option 'gnus-agent-eagerly-store-articles'. If non-nil (which is the default), the Gnus Agent will store all read articles in the Agent cache. -+++ *** New user option 'gnus-global-groups'. Gnus handles private groups differently from public (i.e., NNTP-like) groups. Most importantly, Gnus doesn't download external images from @@ -2028,17 +1738,14 @@ mail-like groups. This can be overridden by putting group names in 'gnus-global-groups': Any group present in that list will be treated like a public group. -+++ *** New scoring types for the Date header. You can now score based on the relative age of an article with the new '<' and '>' date scoring types. -+++ *** User-defined scoring is now possible. The new type is 'score-fn'. More information in the Gnus manual node "(gnus) Score File Format". -+++ *** New backend 'nnselect'. The newly added 'nnselect' backend allows creating groups from an arbitrary list of articles that may come from multiple groups and @@ -2061,35 +1768,29 @@ has been removed; its functionality is now available directly in the 'gnus-refer-thread-use-nnir' has been renamed to 'gnus-refer-thread-use-search'. -+++ *** New user option 'gnus-dbus-close-on-sleep'. On systems with D-Bus support, it is now possible to register a signal to close all Gnus servers before the system sleeps. -+++ *** The key binding of 'gnus-summary-search-article-forward' has changed. This command was previously on 'M-s' and shadowed the global 'M-s' search prefix. The command has now been moved to 'M-s M-s'. (For consistency, the 'M-s M-r' key binding has been added for the 'gnus-summary-search-article-backward' command.) ---- *** The value for "all" in the 'large-newsgroup-initial' group parameter has changed. It was previously nil, which didn't work, because nil is indistinguishable from not being present. The new value for "all" is the symbol 'all'. -+++ *** The name of dependent Gnus sessions has changed from "slave" to "child". The names of the commands 'gnus-slave', 'gnus-slave-no-server' and 'gnus-slave-unplugged' have changed to 'gnus-child', 'gnus-child-no-server' and 'gnus-child-unplugged' respectively. -+++ *** The 'W Q' summary mode command now takes a numerical prefix to allow adjusting the fill width. -+++ *** New variable 'mm-inline-font-lock'. This variable is supposed to be bound by callers to determine whether inline MIME parts (that support it) are supposed to be font-locked or @@ -2097,23 +1798,19 @@ not. ** Message ---- *** Respect 'message-forward-ignored-headers' more. Previously, this user option would not be consulted if 'message-forward-show-mml' was nil and forwarding as MIME. -+++ *** New user option 'message-forward-included-mime-headers'. This is used when forwarding messages as MIME, but not using MML. -+++ *** Message now supports the OpenPGP header. To generate these headers, add the new function 'message-add-openpgp-header' to 'message-send-hook'. The header will be generated according to the new 'message-openpgp-header' user option. ---- *** A change to how "Mail-Copies-To: never" is handled. If a user has specified "Mail-Copies-To: never", and Message was asked to do a "wide reply", some other arbitrary recipient would end up in @@ -2123,7 +1820,6 @@ you're responding to a specific person in particular. This has been changed so that all the recipients are put in the "To" header in these instances. -+++ *** New command to start Emacs in Message mode to send an email. Emacs can be defined as a handler for the "x-scheme-handler/mailto" MIME type with the following command: "emacs -f message-mailto %u". @@ -2136,7 +1832,6 @@ Emacs with headers filled out according to the link, e.g. emacsclient, use "emacsclient -e '(message-mailto "%u")'" or "emacsclient-mail.desktop". ---- *** Change to default value of 'message-draft-headers' user option. The 'Date' symbol has been removed from the default value, meaning that draft or delayed messages will get a date reflecting when the message @@ -2144,7 +1839,6 @@ was sent. To restore the original behavior of dating a message from when it is first saved or delayed, add the symbol 'Date' back to this user option. -+++ *** New command to take screenshots. In Message mode buffers, the 'C-c C-p' ('message-insert-screenshot') command has been added. It depends on using an external program to @@ -2152,30 +1846,25 @@ take the actual screenshot, and defaults to "ImageMagick import". ** Smtpmail -+++ *** smtpmail now supports using the oauth2.el library. -+++ *** New user option 'smtpmail-store-queue-variables'. If non-nil, SMTP variables will be stored together with the queued messages, and will then be used when sending with command 'smtpmail-send-queued-mail'. -+++ *** Allow direct selection of smtp authentication mechanism. A server entry retrieved by auth-source can request a desired smtp authentication mechanism by setting a value for the key 'smtp-auth'. ** ElDoc -+++ *** New user option 'eldoc-echo-area-display-truncation-message'. If non-nil (the default), eldoc will display a message saying something like "(Documentation truncated. Use `M-x eldoc-doc-buffer' to see rest)" when a message has been truncated. If nil, truncated messages will be marked with just "..." at the end. -+++ *** New hook 'eldoc-documentation-functions'. This hook is intended to be used for registering doc string functions. These functions don't need to produce the doc string right away, they @@ -2190,7 +1879,6 @@ functions receive the doc string composed according to the user. Examples of such functions would use the echo area, a separate buffer, or a tooltip. -+++ *** New user option 'eldoc-documentation-strategy'. The built-in choices available for this user option let users compose the results of 'eldoc-documentation-functions' in various ways, even @@ -2206,33 +1894,27 @@ it when producing a doc string. ** Tramp -+++ *** New connection method "mtp". It allows accessing media devices like cell phones, tablets or cameras. -+++ *** New connection method "sshfs". It allows accessing remote files via a file system mounted with 'sshfs'. -+++ *** Tramp supports SSH authentication via a hardware security key now. This requires at least OpenSSH 8.2, and a FIDO U2F compatible security key, like yubikey, solokey, or nitrokey. -+++ *** Trashed remote files are moved to the local trash directory. All remote files that are trashed are moved to the local trash directory, except remote encrypted files, which are always deleted. -+++ *** New command 'tramp-crypt-add-directory'. This command marks a remote directory to contain only encrypted files. See the "(tramp) Keeping files encrypted" node of the Tramp manual for details. This feature is experimental. -+++ *** Support of direct asynchronous process invocation. When Tramp connection property "direct-async-process" is set to non-nil for a given connection, 'make-process' and 'start-file-process' @@ -2242,24 +1924,20 @@ performance of asynchronous remote processes" node of the Tramp manual for details, and also for a discussion or restrictions. This feature is experimental. -+++ *** New user option 'tramp-debug-to-file'. When non-nil, this user option instructs Tramp to mirror the debug buffer to a file under the "/tmp/" directory. This is useful, if (in rare cases) Tramp blocks Emacs, and we need further debug information. -+++ *** Tramp supports lock files now. In order to deactivate this, set user option 'remote-file-name-inhibit-locks' to t. -+++ *** Writing sensitive data locally requires confirmation. Writing auto-save, backup or lock files to the local temporary directory must be confirmed. In order to suppress this confirmation, set user option 'tramp-allow-unsafe-temporary-files' to t. -+++ *** 'make-directory' of a remote directory honors the default file modes. ** GDB/MI @@ -2268,7 +1946,6 @@ set user option 'tramp-allow-unsafe-temporary-files' to t. If non-nil, apply a register filter based on 'gdb-registers-filter-pattern-list'. -+++ *** gdb-mi can now save and restore window configurations. Use 'gdb-save-window-configuration' to save window configuration to a file and 'gdb-load-window-configuration' to load from a file. These @@ -2276,31 +1953,26 @@ commands can also be accessed through the menu bar under "Gud => GDB-Windows". 'gdb-default-window-configuration-file', when non-nil, is loaded when GDB starts up. -+++ *** gdb-mi can now restore window configuration after quitting. Set 'gdb-restore-window-configuration-after-quit' to non-nil and Emacs will remember the window configuration before GDB started and restore it after GDB quits. A toggle button is also provided under "Gud => GDB-Windows" menu item. -+++ *** gdb-mi now has a better logic for displaying source buffers. Now GDB only uses one source window to display source file by default. Customize 'gdb-max-source-window-count' to use more than one window. Control source file display by 'gdb-display-source-buffer-action'. -+++ *** The default value of 'gdb-mi-decode-strings' is now t. This means that the default coding-system is now used to decode strings and source file names from GDB. ** Compilation mode ---- *** New function 'ansi-color-compilation-filter'. This function is meant to be used in 'compilation-filter-hook'. ---- *** New user option 'ansi-color-for-compilation-mode'. This controls what 'ansi-color-compilation-filter' does. @@ -2310,7 +1982,6 @@ case-insensitive matching of messages when the old behavior is required, but the recommended solution is to use a correctly matching regexp instead. ---- *** New user option 'compilation-search-all-directories'. When doing parallel builds, directories and compilation errors may arrive in the "*compilation*" buffer out-of-order. If this option is @@ -2318,45 +1989,37 @@ non-nil (the default), Emacs will now search backwards in the buffer for any directory the file with errors may be in. If nil, this won't be done (and this restores how this previously worked). ---- *** Messages from ShellCheck are now recognized. ---- *** Messages from Visual Studio that mention column numbers are now recognized. ** Hi Lock mode ---- *** Matching in 'hi-lock-mode' can be case-sensitive. The matching is case-sensitive when a regexp contains upper case characters and 'search-upper-case' is non-nil. 'highlight-phrase' also uses 'search-whitespace-regexp' to substitute spaces in regexp search. ---- *** The default value of 'hi-lock-highlight-range' was enlarged. The new default value is 2000000 (2 megabytes). ** Whitespace mode -+++ *** New style 'missing-newline-at-eof'. If present in 'whitespace-style' (as it is by default), the final character in the buffer will be highlighted if the buffer doesn't end with a newline. ---- *** The default 'whitespace-enable-predicate' predicate has changed. It used to check elements in the list version of 'whitespace-global-modes' with 'eq', but now uses 'derived-mode-p'. ** Texinfo ---- *** New user option 'texinfo-texi2dvi-options'. This is used when invoking 'texi2dvi' from 'texinfo-tex-buffer'. ---- *** New commands for moving in and between environments. An "environment" is something that ends with '@end'. The commands are 'C-c C-c C-f' (next end), 'C-c C-c C-b' (previous end), @@ -2366,19 +2029,16 @@ current environment. ** Rmail ---- *** New user option 'rmail-re-abbrevs'. Its default value matches localized abbreviations of the "reply" prefix on the Subject line in various languages. ---- *** New user option 'rmail-show-message-set-modified'. If set non-nil, showing an unseen message will set the Rmail buffer's modified flag. The default is nil, to preserve the old behavior. ** CC mode -+++ *** Added support for Doxygen documentation style. 'doxygen' is now a valid 'c-doc-comment-style' which recognises all comment styles supported by Doxygen (namely '///', '//!', '/** … */' @@ -2393,7 +2053,6 @@ use 'doxygen' by default one might evaluate: or use it in a custom 'c-style'. -+++ *** Added support to line up '?' and ':' of a ternary operator. The new 'c-lineup-ternary-bodies' function can be used as a lineup function to align question mark and colon which are part of a ternary @@ -2413,30 +2072,25 @@ To enable, add it to appropriate entries in 'c-offsets-alist', e.g.: ** Images ---- *** You can explicitly specify base_uri for svg images. ':base-uri' image property can be used to explicitly specify base_uri for embedded images into svg. ':base-uri' is supported for both file and data svg images. -+++ *** 'svg-embed-base-uri-image' added to embed images. 'svg-embed-base-uri-image' can be used to embed images located relatively to 'file-name-directory' of the ':base-uri' svg image property. This works much faster than 'svg-embed'. -+++ *** New function 'image-cache-size'. This function returns the size of the current image cache, in bytes. ---- *** Animated images stop automatically under high CPU pressure sooner. Previously, an animated image would stop animating if any single image took more than two seconds to display. The new algorithm maintains a decaying average of delays, and if this number gets too high, the animation is stopped. -+++ *** The 'n' and 'p' commands (next/previous image) now respect Dired order. These commands would previously display the next/previous image in lexicographic order, but will now find the "parent" Dired buffer and @@ -2445,7 +2099,6 @@ sorted there. The commands have also been extended to work when the "parent" buffer is an archive mode (i.e., zip file or the like) or tar mode buffer. ---- *** 'image-converter' is now restricted to formats in 'auto-mode-alist'. When using external image converters, the external program is queried for what formats it supports. This list may contain formats that are @@ -2453,7 +2106,6 @@ problematic in some contexts (like PDFs), so this list is now filtered based on 'auto-mode-alist'. Only file names that map to 'image-mode' are now supported. ---- *** The background and foreground of images now default to face colors. When an image doesn't specify a foreground or background color, Emacs now uses colors from the face used to draw the surrounding text @@ -2469,7 +2121,6 @@ To load images with the default frame colors use the ':foreground' and This change only affects image types that support foreground and background colors or transparency, such as xbm, pbm, svg, png and gif. -+++ *** Image smoothing can now be explicitly enabled or disabled. Smoothing applies a bilinear filter while scaling or rotating an image to prevent aliasing and other unwanted effects. The new image @@ -2479,13 +2130,11 @@ and nil to disable smoothing. The default behavior of smoothing on down-scaling and not smoothing on up-scaling remains unchanged. -+++ *** New user option 'image-transform-smoothing'. This controls whether to use smoothing or not for an image. Values include nil (no smoothing), t (do smoothing) or a predicate function that's called with the image object and should return nil/t. -+++ *** SVG images now support user stylesheets. The ':css' image attribute can be used to override the default CSS stylesheet for an image. The default sets 'font-family' and @@ -2494,7 +2143,6 @@ will match the font size in use where it is embedded. This feature relies on librsvg 2.48 or above being available. -+++ *** Image properties support 'em' sizes. Size image properties, for example ':height', ':max-height', etc., can be given a cons of the form '(SIZE . em)', where SIZE is an integer or @@ -2503,42 +2151,35 @@ size, and 'em' is a symbol. ** EWW -+++ *** New user option 'eww-use-browse-url'. This is a regexp that can be set to alter how links are followed in eww. -+++ *** New user option 'eww-retrieve-command'. This can be used to download data via an external command. If nil (the default), then 'url-retrieve' is used. When 'sync', then 'url-retrieve-synchronously' is used. A list of strings specifies an external program with parameters. -+++ *** New Emacs command line convenience command. The 'eww-browse' command has been added, which allows you to register Emacs as a MIME handler for "text/x-uri", and will call 'eww' on the supplied URL. Usage example: "emacs -f eww-browse https://gnu.org". -+++ *** 'eww-download-directory' will now use the XDG location, if defined. However, if "~/Downloads/" already exists, that will continue to be used. ---- *** The command 'eww-follow-link' now supports custom 'mailto:' handlers. The function that is invoked when clicking on or otherwise following a 'mailto:' link in an EWW buffer can now be customized. For more information, see the related entry about 'shr-browse-url' below. ---- *** Support for bookmark.el. The command 'bookmark-set' (bound to 'C-x r m') is now supported, and will create a bookmark that opens the current URL in EWW. ** SHR ---- *** The command 'shr-browse-url' now supports custom 'mailto:' handlers. Clicking on or otherwise following a 'mailto:' link in an HTML buffer rendered by SHR previously invoked the command 'browse-url-mail'. @@ -2546,7 +2187,6 @@ This is still the case by default, but if you customize 'browse-url-mailto-function' or 'browse-url-handlers' to call some other function, it will now be called instead of the default. ---- *** New user option 'shr-offer-extend-specpdl'. If this is nil, rendering of HTML that requires enlarging 'max-specpdl-size', the number of Lisp variable bindings, will be @@ -2554,7 +2194,6 @@ aborted, and Emacs will not ask you whether to enlarge 'max-specpdl-size' to complete the rendering. The default is t, which preserves the original behavior. -+++ *** New user option 'shr-max-width'. If this user option is non-nil, and 'shr-width' is nil, then SHR will use the value of 'shr-max-width' to limit the width of the rendered @@ -2564,80 +2203,64 @@ to a more readable text. Customize it to nil to get the previous behavior of rendering as wide as the 'window-width' allows. If 'shr-width' is non-nil, it overrides this option. ---- *** New faces for heading elements. Those are 'shr-h1', 'shr-h2', 'shr-h3', 'shr-h4', 'shr-h5', 'shr-h6'. ** Project ---- *** New user option 'project-vc-merge-submodules'. ---- *** Project commands now have their own history. Previously used project directories are now suggested by all commands that prompt for a project directory. -+++ *** New prefix keymap 'project-prefix-map'. Key sequences that invoke project-related commands start with the prefix 'C-x p'. Type 'C-x p C-h' to show the full list. -+++ *** New commands 'project-dired', 'project-vc-dir', 'project-shell', 'project-eshell'. These commands run Dired/VC-Dir and Shell/Eshell in a project's root directory, respectively. -+++ *** New command 'project-compile'. This command runs compilation in the current project's root directory. -+++ *** New command 'project-switch-project'. This command lets you "switch" to another project and run a project command chosen from a dispatch menu. -+++ *** New commands 'project-shell-command' and 'project-async-shell-command'. These commands run 'shell-command' and 'async-shell-command' in a project's root directory, respectively. -+++ *** New user option 'project-list-file'. This specifies the file in which to save the list of known projects. -+++ *** New command 'project-remember-projects-under'. This command can automatically locate and index projects in a directory and optionally also its subdirectories, storing them in 'project-list-file'. -+++ *** New commands 'project-forget-project' and 'project-forget-projects-under'. These commands let you interactively remove entries from the list of projects in 'project-list-file'. -+++ *** New command 'project-forget-zombie-projects'. This command detects indexed projects that have since been deleted, and removes them from the list of known projects in 'project-list-file'. ---- *** 'project-find-file' now accepts non-existent file names. This is to allow easy creation of files inside some nested sub-directory. -+++ *** 'project-find-file' doesn't use the string at point as default input. Now it's only suggested as part of the "future history", accessible via 'M-n'. -+++ *** New command 'project-find-dir' runs Dired in a directory inside project. ** Xref -+++ *** New user options to automatically show the first Xref match. The new user option 'xref-auto-jump-to-first-definition' controls the behavior of 'xref-find-definitions' and its variants, like @@ -2653,57 +2276,47 @@ visit. 'xref-auto-jump-to-first-xref' changes their behavior much in the same way as 'xref-auto-jump-to-first-definition' affects the 'xref-find-definitions*' commands. ---- *** New user options 'xref-search-program' and 'xref-search-program-alist'. So far 'grep' and 'ripgrep' are supported. 'ripgrep' seems to offer better performance in certain cases, in particular for case-insensitive searches. -+++ *** New commands 'xref-prev-group' and 'xref-next-group'. These commands are bound respectively to 'P' and 'N', and navigate to the first item of the previous or next group in the "*xref*" buffer. ---- *** New alternative value for 'xref-show-definitions-function': 'xref-show-definitions-completing-read'. ---- *** The two existing alternatives for 'xref-show-definitions-function' have been renamed to have "proper" public names and documented ('xref-show-definitions-buffer' and 'xref-show-definitions-buffer-at-bottom'). -+++ *** New command 'xref-quit-and-pop-marker-stack'. This command is bound to 'M-,' in "*xref*" buffers. This combination is easy to press semi-accidentally if the user wants to go back in the middle of choosing the exact definition to go to, and this should do TRT. ---- *** New value 'project-relative' for 'xref-file-name-display'. If chosen, file names in "*xref*" buffers will be displayed relative to the 'project-root' of the current project, when available. ---- *** Prefix arg of 'xref-goto-xref' quits the "*xref*" buffer. So typing 'C-u RET' in the "*xref*" buffer quits its window before navigating to the selected location. -+++ *** The 'TAB' key binding in "*xref*" buffers is obsolete. Use 'C-u RET' instead. The 'TAB' binding in "*xref*" buffers is still supported, but we plan on removing it in a future version; at that time, the command 'xref-quit-and-goto-xref' will no longer have a key binding in 'xref--xref-buffer-mode-map'. ---- *** New user option 'etags-xref-prefer-current-file'. When non-nil, matches for identifiers in the file visited by the current buffer will be shown first in the "*xref*" buffer. -+++ *** The etags Xref backend now honors 'tags-apropos-additional-actions'. You can customize it to augment the output of 'xref-find-apropos', like it affected the output of 'tags-apropos', which is obsolete since @@ -2711,7 +2324,6 @@ Emacs 25.1. ** Battery ---- *** UPower is now the default battery status backend when available. UPower support via the function 'battery-upower' was added in Emacs 26.1, but was disabled by default. It is now the default value of @@ -2721,7 +2333,6 @@ service. The user options 'battery-upower-device' and whether to respond to status change notifications in addition to polling, respectively. ---- *** A richer syntax can be used to format battery status information. The user options 'battery-mode-line-format' and 'battery-echo-area-format' now support the full formatting syntax of @@ -2731,7 +2342,6 @@ truncation, amongst other things. ** Bug Reference ---- *** Bug reference mode uses auto-setup. If 'bug-reference-mode' or 'bug-reference-prog-mode' have been activated, their respective hook has been run, and both @@ -2748,17 +2358,14 @@ variables 'bug-reference-setup-from-vc-alist', ** HTML mode ---- *** A new skeleton for adding relative URLs has been added. It's bound to the 'C-c C-c f' keystroke, and prompts for a local file name. ** Widget -+++ *** 'widget-choose' now supports menus in extended format. ---- *** The 'editable-list' widget now supports moving items up and down. You can now move items up and down by deleting and then reinserting them, using the 'DEL' and 'INS' buttons respectively. This is useful @@ -2767,62 +2374,50 @@ a list. ** Diff ---- *** New face 'diff-changed-unspecified'. This is used to highlight "changed" lines (those marked with '!') in context diffs, when 'diff-use-changed-face' is non-nil. ---- *** New 'diff-mode' font locking face 'diff-error'. This face is used for error messages from 'diff'. -+++ *** New command 'diff-refresh-hunk'. This new command (bound to 'C-c C-l') regenerates the current hunk. ** Thing at point -+++ *** New 'thing-at-point' target: 'existing-filename'. This is like 'filename', but is a full path, and is nil if the file doesn't exist. -+++ *** New 'thing-at-point' target: 'string'. If point is inside a string, it returns that string. -+++ *** New variable 'thing-at-point-provider-alist'. This allows mode-specific alterations to how 'thing-at-point' works. ---- *** 'thing-at-point' now respects fields. 'thing-at-point' (and all functions that use it, like 'symbol-at-point') will narrow to the current field (if any) before trying to identify the thing at point. ---- *** New function 'thing-at-mouse'. This is like 'thing-at-point', but uses the mouse event position instead. ** Image Dired -+++ *** New user option 'image-dired-thumb-visible-marks'. If non-nil (the default), use the new face 'image-dired-thumb-mark' for marked images. ---- *** New command 'image-dired-delete-marked'. ---- *** 'image-dired-mouse-toggle-mark' is now sensitive to the active region. If the region is active, this command now toggles Dired marks of all the thumbnails in the region. ** Flymake mode -+++ *** New command 'flymake-show-project-diagnostics'. This lists all diagnostics for buffers in the currently active project. The listing is similar to the one obtained by @@ -2831,7 +2426,6 @@ project-relative file name. For backends which support it, 'flymake-show-project-diagnostics' also lists diagnostics for files that have not yet been visited. -+++ *** New user options to customize Flymake's mode-line. The new user option 'flymake-mode-line-format' is a mix of strings and symbols like 'flymake-mode-line-title', 'flymake-mode-line-exception' @@ -2842,7 +2436,6 @@ like 'flymake-mode-line-error-counter', ** Time ---- *** 'display-time-world' has been renamed to 'world-clock'. 'world-clock' creates a buffer with an updating time display using several time zones. It is hoped that the new names are more @@ -2865,21 +2458,17 @@ The following user options have been renamed: The old names are now obsolete. ---- *** 'world-clock-mode' can no longer be turned on interactively. Use 'world-clock' to turn on that mode. ** Python mode ---- *** New user option 'python-forward-sexp-function'. This allows the user easier customization of whether to use block-based navigation or not. ---- *** 'python-shell-interpreter' now defaults to python3 on systems with python3. ---- *** 'C-c C-r' can now be used on arbitrary regions. The command previously extended the start of the region to the start of the line, but will now actually send the marked region, as @@ -2887,12 +2476,10 @@ documented. ** Ruby mode ---- *** 'ruby-use-smie' is declared obsolete. SMIE is now always enabled and 'ruby-use-smie' only controls whether indentation is done using SMIE or with the old ad-hoc code. ---- *** Indentation has changed when 'ruby-align-chained-calls' is non-nil. This previously used to align subsequent lines with the last sibling, but it now aligns with the first sibling (which is the preferred style @@ -2900,10 +2487,8 @@ in Ruby). ** CPerl mode ---- *** New face 'perl-heredoc', used for heredoc elements. ---- *** The command 'cperl-set-style' offers the new value "PBP". This value customizes Emacs to use the style recommended in Damian Conway's book "Perl Best Practices" for indentation and formatting @@ -2911,20 +2496,17 @@ of conditionals. ** Perl mode ---- *** New face 'perl-non-scalar-variable'. This is used to fontify non-scalar variables. ** Octave mode -+++ *** Line continuations in double-quoted strings now use a backslash. Typing 'C-M-j' (bound to 'octave-indent-new-comment-line') now follows the behavior introduced in Octave 3.8 of using a backslash as a line continuation marker within double-quoted strings, and an ellipsis everywhere else. -+++ ** EasyPG GPG key servers can now be queried for keys with the 'epa-search-keys' command. Keys can then be added to your @@ -2932,11 +2514,9 @@ personal key ring. ** Etags -+++ *** Etags now supports the Mercury programming language. See https://mercurylang.org. -+++ *** Etags command line option '--declarations' now has Mercury-specific behavior. All Mercury declarations are tagged by default. However, for compatibility with 'etags' support for Prolog, predicates and @@ -2945,7 +2525,6 @@ invoked with the '--declarations' command-line option. ** Comint -+++ *** Support for OSC escape sequences. Adding the new function 'comint-osc-process-output' to 'comint-output-filter-functions' enables the interpretation of OSC @@ -2955,18 +2534,15 @@ tracking, are acted upon. Adding more entries to 'comint-osc-handlers' allows a customized treatment of further escape sequences. -+++ *** 'comint-delete-output' can now save deleted text in the kill-ring. Interactively, 'C-u C-c C-o' triggers this new optional behavior. ** ANSI color ---- *** Colors are now defined by faces. ANSI SGR codes now have corresponding faces to describe their appearance, e.g. 'ansi-color-bold'. ---- *** Support for "bright" color codes. "Bright" ANSI color codes are now displayed when applying ANSI color filters using the color values defined by the faces @@ -2981,45 +2557,37 @@ user-visible changes in ERC. ** Xwidget Webkit mode ---- *** New xwidget commands. 'xwidget-webkit-uri' (return the current URL), 'xwidget-webkit-title' (return the current title), and 'xwidget-webkit-goto-history' (goto a point in history). ---- *** Downloading files from xwidget-webkit is now supported. The new user option 'xwidget-webkit-download-dir' says where to download to. ---- *** New command 'xwidget-webkit-clone-and-split-below'. Open a new window below displaying the current URL. ---- *** New command 'xwidget-webkit-clone-and-split-right'. Open a new window to the right displaying the current URL. ---- *** Pixel-based scrolling. The 'xwidget-webkit-scroll-up', 'xwidget-webkit-scroll-down' commands now supports scrolling arbitrary pixel values. It now treats the optional 2nd argument as the pixel values to scroll. ---- *** New commands for scrolling. The new commands 'xwidget-webkit-scroll-up-line', 'xwidget-webkit-scroll-down-line', 'xwidget-webkit-scroll-forward', 'xwidget-webkit-scroll-backward' can be used to scroll webkit by the height of lines or width of chars. ---- *** New user option 'xwidget-webkit-bookmark-jump-new-session'. When non-nil, use a new xwidget webkit session after bookmark jump. Otherwise, it will use 'xwidget-webkit-last-session'. ** Checkdoc ---- *** No longer warns about command substitutions by default. Checkdoc used to warn about "too many command substitutions" (as in "\\[foo-command]"), even if you only used ten of them in a docstring. @@ -3028,19 +2596,16 @@ substitutions before it becomes a performance issue, so this warning is now disabled by default. To re-enable this warning, customize the user option 'checkdoc-max-keyref-before-warn'. ---- *** New user option 'checkdoc-column-zero-backslash-before-paren'. Checkdoc warns if there is a left parenthesis in column zero of a documentation string. That warning can now be disabled by customizing this new user option to nil. This is useful if you don't expect your code to be edited with an Emacs older than version 27.1. ---- *** Now checks the prompt format for 'yes-or-no-p'. In addition to verifying the format of the prompt for 'y-or-n-p', checkdoc will now check the format of 'yes-or-no-p'. ---- *** New command 'checkdoc-dired'. This can be used to run checkdoc on files from a Dired buffer. @@ -3052,14 +2617,12 @@ this warning therefore mostly led to false positives. ** Enriched mode ---- *** 'C-a' is by default no longer bound to 'beginning-of-line-text'. This is so 'C-a' works as in other modes, and in particular holding Shift while typing 'C-a', i.e. 'C-S-a', will now highlight the text. ** Gravatar ---- *** New user option 'gravatar-service' for host to query for gravatars. Defaults to 'gravatar', with 'unicornify' and 'libravatar' as options. @@ -3068,89 +2631,69 @@ Defaults to 'gravatar', with 'unicornify' and 'libravatar' as options. Functions and variables related to handling junk mail have been renamed to not associate color with sender quality. -+++ *** New names for mh-junk interactive functions. Function 'mh-junk-whitelist' is renamed 'mh-junk-allowlist'. Function 'mh-junk-blacklist' is renamed 'mh-junk-blocklist'. -+++ *** New binding for 'mh-junk-allowlist'. The key binding for 'mh-junk-allowlist' is changed from 'J w' to 'J a'. The old binding is supported but warns that it is obsolete. -+++ *** New names for some hooks. 'mh-whitelist-msg-hook' is renamed 'mh-allowlist-msg-hook'. 'mh-blacklist-msg-hook' is renamed 'mh-blocklist-msg-hook'. -+++ *** New names for some user options. User option 'mh-whitelist-preserves-sequences-flag' is renamed 'mh-allowlist-preserves-sequences-flag'. -+++ *** New names for some faces. Face 'mh-folder-blacklisted' is renamed 'mh-folder-blocklisted'. Face 'mh-folder-whitelisted' is renamed 'mh-folder-allowlisted'. ** Rcirc -+++ *** rcirc now supports SASL authentication. ---- *** #emacs on Libera.chat has been added to 'rcirc-server-alist'. ---- *** rcirc connects asynchronously. ---- *** Integrate formatting into 'rcirc-send-string'. The function now accepts a variable number of arguments. -+++ *** Deprecate 'rcirc-command' in favor of 'rcirc-define-command'. The new macro handles multiple and optional arguments. ---- *** Add basic IRCv3 support. This includes support for the capabilities: 'server-time', 'batch', 'message-ids', 'invite-notify', 'multi-prefix' and 'standard-replies'. ---- *** Add mouse property support to 'rcirc-track-minor-mode'. ---- *** Improve support for IRC markup codes. ---- *** Check 'auth-sources' for server passwords. -+++ *** Implement repeated reconnection strategy. See 'rcirc-reconnect-attempts'. ** MPC ---- *** New command 'mpc-goto-playing-song'. This command, bound to 'o' in any 'mpc-mode' buffer, moves point to the currently playing song in the "*MPC-Songs*" buffer. ---- *** New user option 'mpc-cover-image-re'. If non-nil, it is a regexp that should match a valid cover image. ** Miscellaneous ---- *** 'shell-script-mode' now supports 'outline-minor-mode'. The outline headings have lines that start with "###". ---- *** fileloop will now skip missing files instead of signalling an error. ---- *** 'tabulated-list-mode' can now restore original display order. Many commands (like 'C-x C-b') are derived from 'tabulated-list-mode', and that mode allows the user to sort on any column. There was @@ -3158,73 +2701,58 @@ previously no easy way to get back to the original displayed order after sorting, but giving a -1 numerical prefix to the sorting command will now restore the original order. ---- *** 'M-left' and 'M-right' now move between columns in 'tabulated-list-mode'. ---- *** New variable 'hl-line-overlay-priority'. This can be used to change the priority of the hl-line overlays. -+++ *** New command 'mailcap-view-file'. This command will open a viewer based on the file type, as determined by "~/.mailcap" and related files and variables. ---- *** New user option 'remember-diary-regexp'. ---- *** New user option 'remember-text-format-function'. ---- *** New user option 'authinfo-hide-elements'. This can be set to nil to inhibit hiding passwords in ".authinfo" files. ---- *** 'hexl-mode' scrolling commands now heed 'next-screen-context-lines'. Previously, 'hexl-scroll-down' and 'hexl-scroll-up' would scroll up/down an entire window, but they now work more like the standard scrolling commands. ---- *** New user option 'bibtex-unify-case-function'. This new option allows the user to customize how case is converted when unifying entries. ---- *** The user option 'bibtex-maintain-sorted-entries' now permits user-defined sorting schemes. ---- *** New user option 'reveal-auto-hide'. If non-nil (the default), revealed text is automatically hidden when point leaves the text. If nil, the text is not hidden again. Instead the command 'reveal-hide-revealed' can be used to hide all the revealed text. ---- *** New user option 'ffap-file-name-with-spaces'. If non-nil, 'find-file-at-point' and friends will try to guess more expansively to identify a file name with spaces. Default value is nil. ---- *** Two new commands for centering in 'doc-view-mode'. The new commands 'doc-view-center-page-horizontally' (bound to 'c h') and 'doc-view-center-page-vertically' (bound to 'c v') center the page horizontally and vertically, respectively. ---- *** 'tempo-define-template' can now re-assign templates to tags. Previously, assigning a new template to an already defined tag had no effect. ---- *** The width of the buffer-name column in 'list-buffers' is now dynamic. The width now depends on the width of the window, but will never be wider than the length of the longest buffer name, except that it will never be narrower than 19 characters. -+++ *** New diary sexp 'diary-offset'. It offsets another diary sexp by a number of days. This is useful when for example your organization has a committee meeting two days @@ -3232,13 +2760,10 @@ after every monthly meeting which takes place on the third Thursday, or if you would like to attend a virtual meeting scheduled in a different timezone causing a difference in the date. ---- *** The old non-SMIE indentation of 'sh-mode' has been removed. ---- *** 'mspools-show' is now autoloaded. ---- *** Loading dunnet.el in batch mode doesn't start the game any more. Instead you need to do "emacs --batch -f dunnet" to start the game in batch mode. @@ -3246,7 +2771,6 @@ batch mode. * New Modes and Packages in Emacs 28.1 -+++ ** New mode 'repeat-mode' to allow shorter key sequences. Type 'M-x repeat-mode' to enable this mode. You can then type 'C-x u u' instead of 'C-x u C-x u' to undo many changes, 'C-x o o' @@ -3272,7 +2796,6 @@ columns. Command 'describe-repeat-maps' will display a buffer showing which commands are repeatable in 'repeat-mode'. ---- ** New themes 'modus-vivendi' and 'modus-operandi'. These themes are designed to conform with the highest standard for color-contrast accessibility (WCAG AAA). You can load either of them @@ -3288,14 +2811,12 @@ This is a mode for searching a RFC 2229 dictionary server. the mouse in 'dictionary-tooltip-dictionary' (which must be customized first). ---- ** Lisp Data mode The new command 'lisp-data-mode' enables a major mode for buffers composed of Lisp symbolic expressions that do not form a computer program. The ".dir-locals.el" file is automatically set to use this mode, as are other data files produced by Emacs. -+++ ** New global mode 'global-goto-address-mode'. This will enable 'goto-address-mode' in all buffers. @@ -3309,7 +2830,6 @@ similar to prefix arguments, but are more flexible and discoverable. This library can create, query, navigate and display hierarchical structures. ---- ** New major mode for displaying the "etc/AUTHORS" file. This new 'etc-authors-mode' provides font-locking for displaying the "etc/AUTHORS" file from the Emacs distribution, and not much else. @@ -3317,13 +2837,11 @@ This new 'etc-authors-mode' provides font-locking for displaying the * Incompatible Lisp Changes in Emacs 28.1 -+++ ** Emacs now prints a backtrace when signaling an error in batch mode. This makes debugging Emacs Lisp scripts run in batch mode easier. To get back the old behavior, set the new variable 'backtrace-on-error-noninteractive' to a nil value. ---- ** Some floating-point numbers are now handled differently by the Lisp reader. In previous versions of Emacs, numbers with a trailing dot and an exponent were read as integers and the exponent ignored: 2.e6 was interpreted as the @@ -3331,28 +2849,24 @@ integer 2. Such numerals are now read as floats with the exponent included: 2.e6 is now read as the floating-point value 2000000.0. That is, '(read-from-string "1.e3")' => '(1000.0 . 4)' now. ---- ** 'equal' no longer examines some contents of window configurations. Instead, it considers window configurations to be equal only if they are 'eq'. To compare contents, use 'compare-window-configurations' instead. This change helps fix a bug in 'sxhash-equal', which returned incorrect hashes for window configurations and some other objects. -+++ ** The 'lexical-binding' local variable is always enabled. Previously, if 'enable-local-variables' was nil, a 'lexical-binding' local variable would not be heeded. This has now changed, and a file with a 'lexical-binding' cookie is always heeded. To revert to the old behavior, set 'permanently-enabled-local-variables' to nil. -+++ ** '&rest' in argument lists must always be followed by a variable name. Omitting the variable name after '&rest' was previously tolerated in some cases but not consistently so; it could lead to crashes or outright wrong results. Since the utility was marginal at best, it is now an error to omit the variable. ---- ** 'kill-all-local-variables' has changed how it handles non-symbol hooks. The function is documented to eliminate all buffer-local bindings except variables with a 'permanent-local' property, or hooks that @@ -3360,14 +2874,12 @@ have elements with a 'permanent-local-hook' property. In addition, it would also keep lambda expressions in hooks sometimes. The latter has now been changed: The function will now also remove these. -+++ ** Temporary buffers no longer run certain buffer hooks. The macros 'with-temp-buffer' and 'with-temp-file' no longer run the hooks 'kill-buffer-hook', 'kill-buffer-query-functions', and 'buffer-list-update-hook' for the temporary buffers they create. This avoids slowing them down when a lot of these hooks are defined. -+++ ** New face 'child-frame-border' and frame parameter 'child-frame-border-width'. The face and width of child frames borders can now be determined separately from those of normal frames. To minimize backward @@ -3376,7 +2888,6 @@ parameter will fall back to using 'internal-border-width'. However, the new 'child-frame-border' face does constitute a breaking change since child frames' borders no longer use the 'internal-border' face. ---- ** 'run-at-time' now tries harder to implement the t TIME parameter. If TIME is t, the timer runs at an integral multiple of REPEAT. (I.e., if given a REPEAT of 60, it'll run at 08:11:00, 08:12:00, @@ -3387,18 +2898,15 @@ has now changed, and the timer code now recomputes the integral multiple every time it runs, which means that if the laptop wakes at 08:16:43, it'll fire at that time, but then at 08:17:00, 08:18:00... ---- ** 'parse-partial-sexp' now signals an error if TO is smaller than FROM. Previously, this would lead to the function interpreting FROM as TO and vice versa, which would be confusing when passing in OLDSTATE, which refers to the old state at FROM. -+++ ** 'global-mode-string' constructs should end with a space. This was previously not formalized, which led to combinations of modes displaying data "smushed together" on the mode line. -+++ ** 'overlays-in' now handles zero-length overlays slightly differently. Previously, zero-length overlays at the end of the buffer were included in the result (if the region queried for stopped at that position). @@ -3406,7 +2914,6 @@ The same was not the case if the buffer had been narrowed to exclude the real end of the buffer. This has now been changed, and zero-length overlays at 'point-max' are always included in the results. ---- ** 'replace-match' now runs modification hooks slightly later. The function is documented to leave point after the replacement text, but this was not always the case if a modification hook inserted text @@ -3415,28 +2922,23 @@ point where the end of the inserted text would have been before the hook ran. 'replace-match' now always leaves point after the replacement text. -+++ ** 'completing-read-default' sets completion variables buffer-locally. 'minibuffer-completion-table' and related variables are now set buffer-locally in the minibuffer instead of being set via a global let-binding. ---- ** XML serialization functions now reject invalid characters. Previously, 'xml-print' would produce invalid XML when given a string with characters that are not valid in XML (see https://www.w3.org/TR/xml/#charsets). Now it rejects such strings. ---- ** JSON ---- *** JSON number parsing is now stricter. Numbers with a leading plus sign, leading zeros, or a missing integer component are now rejected by 'json-read' and friends. This makes them more compliant with the JSON specification and consistent with the native JSON parsing functions. ---- *** JSON functions support the semantics of RFC 8259. The JSON functions 'json-serialize', 'json-insert', 'json-parse-string', and 'json-parse-buffer' now implement some of the @@ -3444,7 +2946,6 @@ semantics of RFC 8259 instead of the earlier RFC 4627. In particular, these functions now accept top-level JSON values that are neither arrays nor objects. ---- *** Some JSON encoding functions are now obsolete. The functions 'json-encode-number', 'json-encode-hash-table', 'json-encode-key', and 'json-encode-list' are now obsolete. @@ -3454,7 +2955,6 @@ used instead. Uses of 'json-encode-list' should be changed to call one of 'json-encode', 'json-encode-alist', 'json-encode-plist', or 'json-encode-array' instead. -+++ *** Native JSON functions now signal an error if libjansson is unavailable. This affects 'json-serialize', 'json-insert', 'json-parse-string', and 'json-parse-buffer'. This can happen if Emacs was compiled with @@ -3462,148 +2962,117 @@ libjansson, but the DLL cannot be found and/or loaded by Emacs at run time. Previously, Emacs would display a message and return nil in these cases. -+++ ** The use of positional arguments in 'define-minor-mode' is obsolete. These were actually rendered obsolete in Emacs 21 but were never marked as such. ---- ** 'pcomplete-ignore-case' is now an obsolete alias of 'completion-ignore-case'. -+++ ** 'completions-annotations' face is not used when the caller puts own face. This affects the suffix specified by completion 'annotation-function'. -+++ ** An active minibuffer now has major mode 'minibuffer-mode'. This is instead of the erroneous 'minibuffer-inactive-mode' it formerly had. ---- ** 'make-text-button' no longer modifies text properties of its first argument. When its first argument is a string, 'make-text-button' no longer modifies the string's text properties; instead, it uses and returns a copy of the string. This helps avoid trouble when strings are shared or constants. -+++ ** Some properties from completion tables are now preserved. If 'minibuffer-allow-text-properties' is non-nil, doing completion over a table of strings with properties will no longer remove all the properties before returning. This affects things like 'completing-read'. ---- ** 'dns-query' now consistently uses Lisp integers to represent integers. Formerly it made an exception for integer components of SOA records, because SOA serial numbers can exceed fixnum ranges on 32-bit platforms. Emacs now supports bignums so this old glitch is no longer needed. -+++ ** The '&define' keyword in an Edebug specification now disables backtracking. The implementation was buggy, and multiple '&define' forms in an '&or' form should be exceedingly rare. See the Info node "(elisp) Backtracking" in the Emacs Lisp reference manual for background. -+++ ** The error 'ftp-error' belongs also to category 'remote-file-error'. -+++ ** The WHEN argument of 'make-obsolete' and related functions is mandatory. The use of those functions without a WHEN argument was marked obsolete back in Emacs 23.1. The affected functions are: 'make-obsolete', 'define-obsolete-function-alias', 'make-obsolete-variable', 'define-obsolete-variable-alias'. -+++ ** 'inhibit-nul-byte-detection' is renamed to 'inhibit-null-byte-detection'. ---- ** Some functions are no longer considered safe by 'unsafep': 'replace-regexp-in-string', 'catch', 'throw', 'error', 'signal' and 'play-sound-file'. ---- ** 'sql-*-statement-starters' are no longer user options. These variables describe facts about the SQL standard and product-specific additions. There should be no need for users to customize them. ---- ** Some locale-related variables have been removed. The Lisp variables 'previous-system-messages-locale' and 'previous-system-time-locale' have been removed, as they were created by mistake and were not useful to Lisp code. ---- ** Function 'lm-maintainer' is replaced with 'lm-maintainers'. The former is now declared obsolete. -+++ ** facemenu.el is no longer preloaded. To use functions/variables from the package, you now have to say '(require 'facemenu)' or similar. ---- ** 'facemenu-color-alist' is now obsolete, and is not used. ---- ** The variable 'keyboard-type' is obsolete and not dynamically scoped any more. -+++ ** The 'values' variable is now obsolete. Using it just contributes to the growth of the Emacs memory footprint. ---- ** The 'load-dangerous-libraries' variable is now obsolete. It was used to allow loading Lisp libraries compiled by XEmacs, a modified version of Emacs which is no longer actively maintained. This is no longer supported, and setting this variable has no effect. -+++ ** The macro 'with-displayed-buffer-window' is now obsolete. Use macro 'with-current-buffer-window' with action alist entry 'body-function'. ---- ** The rfc2368.el library is now obsolete. Use rfc6068.el instead. The main difference is that 'rfc2368-parse-mailto-url' and 'rfc2368-unhexify-string' assumed that the strings were all-ASCII, while 'rfc6068-parse-mailto-url' and 'rfc6068-unhexify-string' parse UTF-8 strings. ---- ** The inversion.el library is now obsolete. ---- ** The metamail.el library is now obsolete. ** Edebug changes ---- *** 'get-edebug-spec' is obsolete, replaced by 'edebug-get-spec'. -+++ *** The spec operator ':name NAME' is obsolete, use '&name' instead. -+++ *** The spec element 'function-form' is obsolete, use 'form' instead. -+++ *** New function 'def-edebug-elem-spec' to define Edebug spec elements. These used to be defined with 'def-edebug-spec' thus conflating the two name spaces, which lead to name collisions. The use of 'def-edebug-spec' to define Edebug spec elements is declared obsolete. ---- ** The sb-image.el library is now obsolete. This was a compatibility kludge which is no longer needed. ---- ** Some libraries obsolete since Emacs 23 have been removed: ledit.el, lmenu.el, lucid.el and old-whitespace.el. ---- ** Some functions and variables obsolete since Emacs 23 have been removed: 'GOLD-map', 'advertised-xscheme-send-previous-expression', 'allout-init', 'bookmark-jump-noselect', @@ -3675,20 +3144,16 @@ ledit.el, lmenu.el, lucid.el and old-whitespace.el. 'vcursor-toggle-vcursor-map', 'w32-focus-frame', 'w32-select-font', 'wisent-lex-make-token-table'. ---- ** Some functions and variables obsolete since Emacs 22 have been removed: 'erc-current-network', 'gnus-article-hide-pgp-hook', 'gnus-inews-mark-gcc-as-read', 'gnus-treat-display-xface', 'gnus-treat-strip-pgp', 'nnmail-spool-file'. ---- ** The obsolete function 'thread-alive-p' has been removed. ---- ** The variable 'force-new-style-backquotes' has been removed. This removes the final remaining trace of old-style backquotes. ---- ** Some obsolete variable and function aliases in dbus.el have been removed. In Emacs 24.3, the variable 'dbus-event-error-hooks' was renamed to 'dbus-event-error-functions' and the function @@ -3696,7 +3161,6 @@ In Emacs 24.3, the variable 'dbus-event-error-hooks' was renamed to The old names, which were kept as obsolete aliases of the new names, have now been removed. ---- ** 'find-function-source-path' renamed and re-documented. The 'find-function' command (and various related commands) were documented to respect 'find-function-source-path', and to search for @@ -3709,7 +3173,6 @@ still being used by 'find-library' and related commands, so the user option has been renamed to 'find-library-source-path', and 'find-function-source-path' is now an obsolete variable alias. ---- ** The macro 'vc-call' no longer evaluates its second argument twice. ** Xref migrated from EIEIO to 'cl-defstruct' for its core objects. @@ -3729,7 +3192,6 @@ use with "match items" without adding EIEIO as a dependency. * Lisp Changes in Emacs 28.1 -+++ ** The 'interactive' syntax has been extended to allow listing applicable modes. Forms like '(interactive "p" dired-mode)' can be used to annotate the commands as being applicable for modes derived from 'dired-mode', @@ -3740,7 +3202,6 @@ Also note that by default these annotations have no effect, unless the new user option 'read-extended-command-predicate' option is customized to call 'command-completion-default-include-p' or a similar function. -+++ ** New 'declare' forms to control completion of commands in 'M-x'. '(declare (completion PREDICATE))' can be used as a general predicate to say whether the command should be considered a completion candidate @@ -3759,74 +3220,61 @@ default value of 'read-extended-command-predicate' is nil, which means no commands that match what you have typed are excluded from being completion candidates. -+++ ** 'define-minor-mode' now takes an ':interactive' argument. This can be used for specifying which modes this minor mode is meant for, or to make the new minor mode non-interactive. The default value is t. -+++ ** 'define-derived-mode' now takes an ':interactive' argument. This can be used to control whether the defined mode is a command or not, and is useful when defining commands that aren't meant to be used by users directly. -+++ ** 'define-globalized-minor-mode' now takes a ':predicate' parameter. This can be used to control which major modes the minor mode should be used in. -+++ ** 'condition-case' now allows for a success handler. It is written as '(:success BODY...)' where BODY is executed whenever the protected form terminates without error, with the specified variable bound to the value of the protected form. -+++ ** New function 'benchmark-call' to measure the execution time of a function. Additionally, the number of repetitions can be expressed as a minimal duration in seconds. -+++ ** The value thrown to the 'exit' label can now be a function. This is in addition to values t or nil. If the value is a function, the command loop will call it with zero arguments before returning. -+++ ** The behavior of 'format-spec' is now closer to that of 'format'. In order for the two functions to behave more consistently, 'format-spec' now pads and truncates based on string width rather than length, and also supports format specifications that include a truncating precision field, such as "%.2a". ---- ** 'defvar' detects the error of defining a variable currently lexically bound. Such mixes are always signs that the outer lexical binding was an error and should have used dynamic binding instead. ---- ** New variable 'inhibit-mouse-event-check'. If bound to non-nil, a command with '(interactive "e")' doesn't signal an error when invoked by input event that is not a mouse click (e.g., a key sequence). ---- ** New variable 'redisplay-skip-initial-frame' to enable batch redisplay tests. Setting it to nil forces the redisplay to do its job even in the initial frame used in batch mode. -+++ ** Doc strings can now link to customization groups. Text like "customization group `whitespace'" will be made into a button. When clicked, it will open a Custom buffer displaying that customization group. -+++ ** Doc strings can now link to man pages. Text like "man page `chmod(1)'" will be made into a button. When clicked, it will open a Man mode buffer displaying that man page. -+++ ** Buffers can now be created with certain hooks disabled. The functions 'get-buffer-create' and 'generate-new-buffer' accept a new optional argument INHIBIT-BUFFER-HOOKS. If non-nil, the new @@ -3835,78 +3283,63 @@ buffer does not run the hooks 'kill-buffer-hook', avoids slowing down internal or temporary buffers that are never presented to users or passed on to other applications. -+++ ** New command 'make-directory-autoloads'. This does the same as the old command 'update-directory-autoloads', but has different semantics: Instead of passing in the output file via the dynamically bound 'generated-autoload-file' variable, the output file is now an explicit parameter. ---- ** Dragging a file into Emacs pushes the file name onto 'file-name-history'. ---- ** The 'easymenu' library is now preloaded. ---- ** The 'iso-transl' library is now preloaded. This means that keystrokes like 'Alt-[' are defined by default, instead of only becoming available after doing (for instance) 'C-x 8 '. ---- ** ':safe' settings in 'defcustom' are now propagated to the loaddefs files. -+++ ** New ':type' for 'defcustom' for nonnegative integers. The new 'natnum' type can be used for options that should be nonnegative integers. -+++ ** ERT can now output more verbose test failure reports. If the 'EMACS_TEST_VERBOSE' environment variable is set, failure summaries will include the failing condition. ** Byte compiler changes -+++ *** New byte-compiler check for missing dynamic variable declarations. It is meant as an (experimental) aid for converting Emacs Lisp code to lexical binding, where dynamic (special) variables bound in one file can affect code in another. For details, see the Info node "(elisp) Converting to Lexical Binding". -+++ *** 'byte-recompile-directory' can now compile symlinked "*.el" files. This is achieved by giving a non-nil FOLLOW-SYMLINKS parameter. ---- *** The byte-compiler now warns about too wide documentation strings. By default, it will warn if a documentation string is wider than the largest of 'byte-compile-docstring-max-column' or 'fill-column' characters. -+++ *** 'byte-compile-file' optional argument LOAD is now obsolete. To load the file after byte-compiling, add a call to 'load' from Lisp or use 'M-x emacs-lisp-byte-compile-and-load' interactively. ** Macroexp ---- *** New function 'macroexp-file-name' to know the name of the current file. ---- *** New function 'macroexp-compiling-p' to know if we're compiling. ---- *** New function 'macroexp-warn-and-return' to help emit warnings. This used to be named 'macroexp--warn-and-return' and has proved useful and well-behaved enough to lose the "internal" marker. ** map.el ---- *** Alist keys are now consistently compared with 'equal' by default. Until now, 'map-elt' and 'map-delete' compared alist keys with 'eq' by default. They now use 'equal' instead, for consistency with @@ -3916,14 +3349,11 @@ default. They now use 'equal' instead, for consistency with A pattern like '(map :sym)' binds the map's value for ':sym' to 'sym', equivalent to '(map (:sym sym))'. ---- *** The function 'map-copy' now uses 'copy-alist' on alists. This is a slightly deeper copy than the previous 'copy-sequence'. ---- *** The function 'map-contains-key' now supports plists. ---- *** More consistent duplicate key handling in 'map-merge-with'. Until now, 'map-merge-with' promised to call its function argument whenever multiple maps contained 'eql' keys. However, this did not @@ -3933,26 +3363,21 @@ are merged, for greater consistency with 'map-merge' and 'map-elt'. ** Pcase -+++ *** The 'or' pattern now binds the union of the vars of its sub-patterns. If a variable is not bound by the subpattern that matched, it gets bound to nil. This was already sometimes the case, but it is now guaranteed. -+++ *** The 'pred' pattern can now take the form '(pred (not FUN))'. This is like '(pred (lambda (x) (not (FUN x))))' but results in better code. ---- *** New function 'pcase-compile-patterns' to write other macros. -+++ *** Added 'cl-type' pattern. The new 'cl-type' pattern compares types using 'cl-typep', which allows comparing simple types like '(cl-type integer)', as well as forms like '(cl-type (integer 0 10))'. -+++ *** New macro 'pcase-setq'. This macro is the 'setq' equivalent of 'pcase-let', which allows for destructuring patterns in a 'setq' form. @@ -3961,49 +3386,40 @@ destructuring patterns in a 'setq' form. *** Edebug specification lists can use some new keywords: -+++ **** '&interpose SPEC FUN ARGS...' lets FUN control parsing after SPEC. More specifically, FUN is called with 'HEAD PF ARGS...' where PF is a parsing function that expects a single argument (the specs to use) and HEAD is the code that matched SPEC. -+++ **** '&error MSG' unconditionally aborts the current edebug instrumentation. -+++ **** '&name SPEC FUN' extracts the current name from the code matching SPEC. ** Dynamic modules changes -+++ *** Type aliases for module functions and finalizers. The module header "emacs-module.h" now contains type aliases 'emacs_function' and 'emacs_finalizer' for module functions and finalizers, respectively. -+++ *** Module functions can now be made interactive. Use 'make_interactive' to give a module function an interactive specification. -+++ *** Module functions can now install an optional finalizer. The finalizer is called when the function object is garbage-collected. Use 'set_function_finalizer' to set the finalizer and 'get_function_finalizer' to retrieve it. -+++ *** Modules can now open a channel to an existing pipe process. Modules can use the new module function 'open_channel' to do that. On capable systems, modules can use this functionality to asynchronously send data back to Emacs. -+++ *** A new module API 'make_unibyte_string'. It can be used to create Lisp strings with arbitrary byte sequences (a.k.a. "raw bytes"). -+++ ** Shorthands for Lisp symbols. Shorthands are a general purpose namespacing system to make Emacs Lisp's symbol-naming etiquette easier to use. A shorthand is any @@ -4014,230 +3430,182 @@ worth of symbols with proper and longer prefixes, without actually touching the Lisp source. For details, see the Info node "(elisp) Shorthands". -+++ ** New function 'string-search'. This function takes two string parameters and returns the position of the first instance of the former string in the latter. -+++ ** New function 'string-replace'. This function works along the line of 'replace-regexp-in-string', but it matches on fixed strings instead of regexps, and does not change the global match state. -+++ ** New function 'ensure-list'. This function makes a list of its object if it's not a list already. If it's already a list, the list is returned as is. -+++ ** New function 'split-string-shell-command'. This splits a shell command string into separate components, respecting quoting with single ('like this') and double ("like this") quotes, as well as backslash quoting (like\ this). -+++ ** New function 'string-clean-whitespace'. This removes whitespace from a string. -+++ ** New function 'string-fill'. Word-wrap a string so that no lines are longer that a specific length. -+++ ** New function 'string-limit'. Return (up to) a specific substring length. -+++ ** New function 'string-lines'. Return a list of strings representing the individual lines in a string. -+++ ** New function 'string-pad'. Pad a string to a specific length. -+++ ** New function 'string-chop-newline'. Remove a trailing newline from a string. -+++ ** New function 'replace-regexp-in-region'. -+++ ** New function 'replace-string-in-region'. -+++ ** New function 'file-name-with-extension'. This function allows a canonical way to set/replace the extension of a file name. -+++ ** New function 'file-modes-number-to-symbolic' to convert a numeric file mode specification into symbolic form. -+++ ** New function 'file-name-concat'. This appends file name components to a directory name and returns the result. -+++ ** New function 'file-backup-file-names'. This function returns the list of file names of all the backup files for the specified file. -+++ ** New function 'directory-empty-p'. This predicate tests whether a given file name is an accessible directory and whether it contains no other directories or files. -+++ ** New function 'buffer-local-boundp'. This predicate says whether a symbol is bound in a specific buffer. -+++ ** New function 'always'. This is identical to 'ignore', but returns t instead. -+++ ** New function 'sxhash-equal-including-properties'. This is identical to 'sxhash-equal' but also accounts for string properties. ---- ** New function 'buffer-line-statistics'. This function returns some statistics about the line lengths in a buffer. ---- ** New function 'color-values-from-color-spec'. This can be used to parse RGB color specs in several formats and convert them to a list '(R G B)' of primary color values. ---- ** New function 'custom-add-choice'. This function can be used by modes to add elements to the 'choice' customization type of a variable. ---- ** New function 'decoded-time-period'. It interprets a decoded time structure as a period and returns the equivalent period in seconds. -+++ ** New function 'dom-print'. -+++ ** New function 'dom-remove-attribute'. ---- ** New function 'dns-query-asynchronous'. It takes the same parameters as 'dns-query', but adds a callback parameter. ** New function 'garbage-collect-maybe' to trigger GC early. ---- ** New function 'get-locale-names'. This utility function returns a list of names of locales available on the current system. -+++ ** New function 'insert-into-buffer'. This inserts the contents of the current buffer into another buffer. -+++ ** New function 'json-available-p'. This predicate returns non-nil if Emacs is built with libjansson support, and it is available on the current system. ---- ** New function 'mail-header-parse-addresses-lax'. This takes a comma-separated string and returns a list of mail/name pairs. ---- ** New function 'mail-header-parse-address-lax'. Parse a string as a mail address-like string. ---- ** New function 'make-separator-line'. Make a string appropriate for usage as a visual separator line. -+++ ** New function 'num-processors'. Return the number of processors on the system. -+++ ** New function 'object-intervals'. This function returns a copy of the list of intervals (i.e., text properties) in the object in question (which must either be a string or a buffer). -+++ ** New function 'process-lines-ignore-status'. This is like 'process-lines', but does not signal an error if the return status is non-zero. 'process-lines-handling-status' has also been added, and takes a callback to handle the return status. -+++ ** New function 'require-theme'. This function is like 'require', but searches 'custom-theme-load-path' instead of 'load-path'. It can be used by Custom themes to load supporting Lisp files when 'require' is unsuitable. -+++ ** New function 'seq-union'. This function takes two sequences and returns a list of all elements that appear in either of them, with no two elements that compare equal appearing in the result. -+++ ** New function 'syntax-class-to-char'. This does almost the opposite of 'string-to-syntax' -- it returns the syntax descriptor (a character) given a raw syntax descriptor (an integer). -+++ ** New functions 'null-device' and 'path-separator'. These functions return the connection local value of the respective variables. This can be used for remote hosts. -+++ ** New predicate functions 'length<', 'length>' and 'length='. Using these functions may be more efficient than using 'length' (if the length of a (long) list is being computed just to compare this length to a number). -+++ ** New macro 'dlet' to dynamically bind variables. -+++ ** New macro 'with-existing-directory'. This macro binds 'default-directory' to some other existing directory if 'default-directory' doesn't exist, and then executes the body forms. -+++ ** New variable 'current-minibuffer-command'. This is like 'this-command', but it is bound recursively when entering the minibuffer. -+++ ** New variable 'inhibit-interaction' to make user prompts signal an error. If this is bound to something non-nil, functions like 'read-from-minibuffer', 'read-char' (and related) will signal an 'inhibited-interaction' error. ---- ** New variable 'indent-line-ignored-functions'. This allows modes to cycle through a set of indentation functions appropriate for those modes. -+++ ** New variable 'print-integers-as-characters' modifies integer printing. If this variable is non-nil, character syntax is used for printing numbers when this makes sense, such as '?A' for 65. -+++ ** New variable 'tty-menu-calls-mouse-position-function'. This controls whether 'mouse-position-function' is called by functions that retrieve the mouse position when that happens during TTY menu @@ -4245,46 +3613,38 @@ handling. Lisp programs that set 'mouse-position-function' should also set this variable non-nil if they are compatible with the tty menu handling. -+++ ** New variables that hold default buffer names for shell output. The new constants 'shell-command-buffer-name' and 'shell-command-buffer-name-async' store the default buffer names for the output of, respectively, synchronous and async shell commands. ---- ** New variables 'read-char-choice-use-read-key' and 'y-or-n-p-use-read-key'. When non-nil, then functions 'read-char-choice' and 'y-or-n-p' (respectively) use the function 'read-key' to read a character instead of using the minibuffer. -+++ ** New variable 'global-minor-modes'. This variable holds a list of currently enabled global minor modes (as a list of symbols). -+++ ** New buffer-local variable 'local-minor-modes'. This permanently buffer-local variable holds a list of currently enabled non-global minor modes in the current buffer (as a list of symbols). -+++ ** New completion function 'affixation-function' to add prefix/suffix. It accepts a list of completions and should return a list where each element is a list with three elements: a completion, a prefix string, and a suffix string. -+++ ** New completion function 'group-function' for grouping candidates. It takes two arguments: a completion candidate and a 'transform' flag. -+++ ** New error symbol 'minibuffer-quit'. Signaling it has almost the same effect as 'quit' except that it doesn't cause keyboard macro termination. -+++ ** New error symbol 'remote-file-error', a subcategory of 'file-error'. It is signaled if a remote file operation fails due to internal reasons, and could block Emacs. It does not replace 'file-error' @@ -4298,11 +3658,9 @@ Until it is solved you could ignore such errors by performing (setq debug-ignored-errors (cons 'remote-file-error debug-ignored-errors)) -+++ ** New macro 'named-let'. It provides Scheme's "named let" looping construct. ---- ** Emacs now attempts to test for high-rate subprocess output more fairly. When several subprocesses produce output simultaneously at high rate, Emacs will now by default attempt to service them all in a round-robin @@ -4311,81 +3669,66 @@ non-nil value to get back the old behavior, whereby after reading from a subprocess, Emacs would check for output of other subprocesses in a way that is likely to read from the same process again. -+++ ** 'set-process-buffer' now updates the process mark. The mark will be set to point to the end of the new buffer. -+++ ** 'unlock-buffer' displays warnings instead of signaling. Instead of signaling 'file-error' conditions for file system level errors, the function now calls 'display-warning' and continues as if the error did not occur. -+++ ** 'read-char-from-minibuffer' and 'y-or-n-p' support 'help-form'. If you bind 'help-form' to a non-nil value while calling these functions, then pressing 'C-h' ('help-char') causes the function to evaluate 'help-form' and display the result. -+++ ** 'read-number' now has its own history variable. Additionally, the function now accepts an optional HIST argument which can be used to specify a custom history variable. -+++ ** 'set-window-configuration' now takes two optional parameters, DONT-SET-FRAME and DONT-SET-MINIWINDOW. The first of these, when non-nil, instructs the function not to select the frame recorded in the configuration. The second prevents the current minibuffer being replaced by the one stored in the configuration. ---- ** 'count-windows' now takes an optional parameter ALL-FRAMES. The semantics are as with 'walk-windows'. -+++ ** 'truncate-string-ellipsis' now uses '…' by default. Modes that use 'truncate-string-to-width' with non-nil, non-string argument ELLIPSIS, will now indicate truncation using '…' when the selected frame can display it, and using "..." otherwise. -+++ ** 'string-width' now accepts two optional arguments FROM and TO. This allows calculating the width of a substring without consing a new string. -+++ ** 'directory-files' now takes an additional COUNT parameter. The parameter makes 'directory-files' return COUNT first file names from a directory. If MATCH is also given, the function will return first COUNT file names that match the expression. The same COUNT parameter has been added to 'directory-files-and-attributes'. -+++ ** 'count-lines' can now ignore invisible lines. This is controlled by the optional parameter IGNORE-INVISIBLE-LINES. ---- ** 'count-words' now crosses field boundaries. Originally, 'count-words' would stop counting at the first field boundary it encountered; now it keeps counting all the way to the region's (or buffer's) end. -+++ ** File-related APIs can optionally follow symlinks. The functions 'file-modes', 'set-file-modes', and 'set-file-times' now have an optional argument specifying whether to follow symbolic links. -+++ ** 'format-seconds' can now be used for sub-second times. The new optional "," parameter has been added, and '(format-seconds "%mm %,1ss" 66.4)' will now result in "1m 6.4s". -+++ ** 'parse-time-string' can now parse ISO 8601 format strings. These have a format like "2020-01-15T16:12:21-08:00". ---- ** 'lookup-key' is more allowing when searching for extended menu items. When looking for a menu item '[menu-bar Foo-Bar]', first try to find an exact match, then look for the lowercased '[menu-bar foo-bar]'. @@ -4393,7 +3736,6 @@ It will only try to downcase ASCII characters in the range "A-Z". This improves backwards-compatibility when converting menus to use 'easy-menu-define'. ---- ** 'make-network-process', 'make-serial-process' ':coding' behavior change. Previously, passing ':coding nil' to either of these functions would override any non-nil binding for 'coding-system-for-read' and @@ -4403,92 +3745,73 @@ Emacs depended on the previous behavior; if you really want the process' coding-system to be nil, use 'set-process-coding-system' after the process has been created, or pass in ':coding '(nil nil)'. -+++ ** 'open-network-stream' now accepts a ':coding' argument. This allows specifying the coding systems used by a network process for encoding and decoding without having to bind 'coding-system-for-{read,write}' or call 'set-process-coding-system'. -+++ ** 'open-network-stream' can now take a ':capability-command' that's a function. The function is called with the greeting from the server as its only parameter, and allows sending different TLS capability commands to the server based on that greeting. -+++ ** 'open-gnutls-stream' now also accepts a ':coding' argument. ---- ** 'process-attributes' now works under OpenBSD, too. -+++ ** 'format-spec' now takes an optional SPLIT parameter. If non-nil, 'format-spec' will split the resulting string into a list of strings, based on where the format specs (and expansions) were. ---- ** 'unload-feature' now also tries to undo additions to buffer-local hooks. ---- ** 'while-no-input-ignore-events' accepts more special events. The special events 'dbus-event' and 'file-notify' are now ignored in 'while-no-input' when added to this variable. ---- ** 'start-process-shell-command' and 'start-file-process-shell-command' do not support the old calling conventions any longer. -+++ ** 'yes-or-no-p' and 'y-or-n-p' PROMPT parameter no longer needs trailing space. In other words, the prompt can now end with "?" instead of "? ". This has been the case since Emacs 24.4 but was not announced or documented until now. (Checkdoc has also been updated to accept this convention.) -+++ ** The UNIQUIFY argument in 'auto-save-file-name-transforms' can be a symbol. If this symbol is one of the members of 'secure-hash-algorithms', Emacs constructs the nondirectory part of the auto-save file name by applying that 'secure-hash' to the buffer file name. This avoids any risk of excessively long file names. -+++ ** New user option 'process-file-return-signal-string'. It controls, whether 'process-file' returns a string when a remote process is interrupted by a signal. ** EIEIO Changes -+++ *** The macro 'oref-default' can now be used with 'setf'. It is now defined as a generalized variable that can be used with 'setf' to modify the value stored in a given class slot. ---- *** 'form' in '(eql form)' specializers in 'cl-defmethod' is now evaluated. This corresponds to the behavior of defmethod in Common Lisp Object System. For compatibility, '(eql SYMBOL)' does not evaluate SYMBOL, for now. ** D-Bus -+++ *** Property values can be typed explicitly. 'dbus-register-property' and 'dbus-set-property' accept now optional type symbols. Both functions propagate D-Bus errors. -+++ *** Registered properties can have the new access type ':write'. -+++ *** In case of problems, handlers can emit proper D-Bus error messages now. -+++ *** D-Bus errors, which have been converted from incoming D-Bus error messages, contain the error name of that message now. -+++ *** D-Bus messages can be monitored with the new command 'dbus-monitor'. -+++ *** D-Bus events have changed their internal structure. They carry now the destination and the error-name of an event. They also keep the type information of their arguments. Use the @@ -4496,19 +3819,16 @@ also keep the type information of their arguments. Use the ** Buttons -+++ *** New minor mode 'button-mode'. This minor mode does nothing except install 'button-buffer-map' as a minor mode map (which binds the 'TAB' / 'S-TAB' key bindings to navigate to buttons), and can be used in any view-mode-like buffer that has buttons in it. -+++ *** New utility function 'button-buttonize'. This function takes a string and returns a string propertized in a way that makes it a valid button. ---- ** 'text-scale-mode' can now adjust font size of the header line. When the new buffer local variable 'text-scale-remap-header-line' is non-nil, 'text-scale-adjust' will also scale the text in the header @@ -4519,10 +3839,8 @@ form below the header line. It is enabled by default in 'tabulated-list-mode' and its derived modes, and disabled by default elsewhere. ---- ** 'ascii' is now a coding system alias for 'us-ascii'. ---- ** New coding-systems for EBCDIC variants. New coding-systems 'ibm256', 'ibm273', 'ibm274', 'ibm277', 'ibm278', 'ibm280', 'ibm281', 'ibm284', 'ibm285', 'ibm290', 'ibm297'. These are @@ -4532,14 +3850,12 @@ locales. They are also available as aliases 'ebcdic-cp-*' (e.g., 'cp278' for 'ibm278'). There are also new charsets 'ibm2xx' to support these coding-systems. -+++ ** New "Bindat type expression" description language. This new system is provided by the new macro 'bindat-type' and obsoletes the old data layout specifications. It supports arbitrary-size integers, recursive types, and more. See the Info node "(elisp) Byte Packing" in the ELisp manual for more details. -+++ ** New macro 'with-environment-variables'. This macro allows setting environment variables temporarily when executing a form. @@ -4547,7 +3863,6 @@ executing a form. * Changes in Emacs 28.1 on Non-Free Operating Systems -+++ ** On MS-Windows, Emacs can now use the native image API to display images. Emacs can now use the MS-Windows GDI+ library to load and display images in JPEG, PNG, GIF and TIFF formats. This support is available @@ -4558,7 +3873,6 @@ To turn this on, set the variable 'w32-use-native-image-API' to a non-nil value. Please report any bugs you find while using the native image API via 'M-x report-emacs-bug'. -+++ ** On MS-Windows, Emacs can now toggle the IME. A new function 'w32-set-ime-open-status' can now be used to disable and enable the MS-Windows native Input Method Editor (IME) at run @@ -4570,26 +3884,21 @@ current IME activation status. 'move-beginning-of-line' and 'move-end-of-line' respectively. The commands to select previous/next frame are still bound to 's-~' and 's-`'. -+++ ** On macOS, Emacs can now load dynamic modules with a ".dylib" suffix. 'module-file-suffix' now has the value ".dylib" on macOS, but the ".so" suffix is supported as well. ---- ** On macOS, the user option 'make-pointer-invisible' is now honored. ---- ** On macOS, Xwidget is now supported. If Emacs was built with xwidget support, you can access the embedded webkit browser with command 'xwidget-webkit-browse-url'. Viewing two instances of xwidget webkit is not supported. ---- *** New user option 'xwidget-webkit-enable-plugins'. If non-nil, enable plugins in xwidget. (This is only available on macOS.) -+++ ** New macOS Contacts back-end for EUDC. This backend works on newer versions of macOS and is generally preferred over the eudcb-mab.el backend. commit 9b5e9715ea64f971e215e91898e3ef49b159cdbe Author: Eli Zaretskii Date: Sat Apr 2 13:20:56 2022 +0300 ; * lisp/font-lock.el (font-lock-keywords): Doc fix. diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 7d264cf982..c9c390840f 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -349,7 +349,7 @@ This can be an \"!\" or the \"n\" in \"ifndef\".") ;; Fontification variables: (defvar font-lock-keywords nil - "A list of the keywords to highlight. + "A list of keywords and corresponding font-lock highlighting rules. There are two kinds of values: user-level, and compiled. A user-level keywords list is what a major mode or the user would @@ -374,10 +374,10 @@ point, and set `match-data' appropriately if it succeeds; like `re-search-forward' would). MATCHER regexps can be generated via the function `regexp-opt'. -FORM is an expression, whose value should be a keyword element, -evaluated when the keyword is (first) used in a buffer. This -feature can be used to provide a keyword that can only be -generated when Font Lock mode is actually turned on. +FORM is an expression, whose value should be a keyword element +of one of the above forms, evaluated when the keyword is (first) +used in a buffer. This feature can be used to provide a keyword +that can only be generated when Font Lock mode is actually turned on. HIGHLIGHT should be either MATCH-HIGHLIGHT or MATCH-ANCHORED. commit 03e6a295d5c46151361845afbf5c8bcae915c89f Author: Tassilo Horn Date: Wed Mar 30 19:49:01 2022 +0200 dired: implement feature from 7b50ed553f differently * lisp/dired.el (dired-buffers-for-dir): Restore to emacs-27 version. (dired-buffers-for-dir-or-subdir): New function. (dired-clean-up-after-deletion): Use dired-buffers-for-dir-or-subdir instead dired-buffers-for-dir. diff --git a/lisp/dired.el b/lisp/dired.el index 75dcd33e67..a3768d224b 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -2870,12 +2870,10 @@ You can then feed the file name(s) to other commands with \\[yank]." ;;; Keeping Dired buffers in sync with the filesystem and with each other -(defun dired-buffers-for-dir (dir &optional file subdirs) +(defun dired-buffers-for-dir (dir &optional file) "Return a list of buffers for DIR (top level or in-situ subdir). If FILE is non-nil, include only those whose wildcard pattern (if any) matches FILE. -If SUBDIRS is non-nil, also include the dired buffers of -directories below DIR. The list is in reverse order of buffer creation, most recent last. As a side effect, killed dired buffers for DIR are removed from `dired-buffers'." @@ -2889,18 +2887,33 @@ As a side effect, killed dired buffers for DIR are removed from (setq dired-buffers (delq elt dired-buffers))) ((dired-in-this-tree-p dir (car elt)) (with-current-buffer buf - (when (and (or subdirs - (assoc dir dired-subdir-alist)) - (or (null file) - (if (stringp dired-directory) - (let ((wildcards (file-name-nondirectory - dired-directory))) - (or (zerop (length wildcards)) - (string-match-p (dired-glob-regexp wildcards) - file))) - (member (expand-file-name file dir) - (cdr dired-directory))))) - (setq result (cons buf result))))))) + (and (assoc dir dired-subdir-alist) + (or (null file) + (if (stringp dired-directory) + (let ((wildcards (file-name-nondirectory + dired-directory))) + (or (zerop (length wildcards)) + (string-match-p (dired-glob-regexp wildcards) + file))) + (member (expand-file-name file dir) + (cdr dired-directory)))) + (setq result (cons buf result))))))) + result)) + +(defun dired-buffers-for-dir-or-subdir (dir) + "Return a list of buffers for DIR or a subdirectory thereof. +As a side effect, killed dired buffers for DIR are removed from +`dired-buffers'." + (setq dir (file-name-as-directory dir)) + (let (result buf) + (dolist (elt dired-buffers) + (setq buf (cdr elt)) + (cond + ((null (buffer-name buf)) + ;; Buffer is killed - clean up: + (setq dired-buffers (delq elt dired-buffers))) + ((dired-in-this-tree-p (car elt) dir) + (setq result (cons buf result))))) result)) (defun dired-glob-regexp (pattern) @@ -3479,15 +3492,16 @@ confirmation. To disable the confirmation, see (file-name-nondirectory fn)))) (not dired-clean-confirm-killing-deleted-buffers)) (kill-buffer buf))) - (let ((buf-list (dired-buffers-for-dir (expand-file-name fn) - nil 'subdirs))) + (let ((buf-list (dired-buffers-for-dir-or-subdir + (expand-file-name fn)))) (and buf-list (or (and dired-clean-confirm-killing-deleted-buffers (y-or-n-p (format - (ngettext "Kill Dired buffer of %s, too? " - "Kill Dired buffers of %s, too? " - (length buf-list)) + (ngettext + "Kill Dired buffer of %s, too? " + "Kill Dired buffers of %s and its sub-directories, too? " + (length buf-list)) (file-name-nondirectory ;; FN may end in a / if `dired-listing-switches' ;; contains -p, so we need to strip that commit 7208106e8143ecc22c5313ddd1ea785fc9086d6b Author: Eli Zaretskii Date: Wed Mar 30 16:21:02 2022 +0300 Fix regression in 'dired-buffers-for-dir' * lisp/dired.el (dired-buffers-for-dir): Fix inadvertently swapped arguments. (Bug#54636) diff --git a/lisp/dired.el b/lisp/dired.el index ede8918915..75dcd33e67 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -2887,7 +2887,7 @@ As a side effect, killed dired buffers for DIR are removed from ((null (buffer-name buf)) ;; Buffer is killed - clean up: (setq dired-buffers (delq elt dired-buffers))) - ((dired-in-this-tree-p (car elt) dir) + ((dired-in-this-tree-p dir (car elt)) (with-current-buffer buf (when (and (or subdirs (assoc dir dired-subdir-alist)) commit 968af794ba84d90d547de463448de57b7dff3787 Author: Eli Zaretskii Date: Sun Mar 27 08:10:27 2022 +0300 * lisp/desktop.el (desktop-read): Clarify warning text. diff --git a/lisp/desktop.el b/lisp/desktop.el index e7a368e21f..51c56faebb 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -1266,8 +1266,10 @@ It returns t if a desktop file was loaded, nil otherwise. (memq desktop-load-locked-desktop '(nil ask)) (or (null desktop-load-locked-desktop) (daemonp) - (not (y-or-n-p (format "Warning: desktop file appears to be in use by PID %s.\n\ -Using it may cause conflicts. Use it anyway? " owner))))) + (not (y-or-n-p (format " +Warning: desktop file appears to be in use by process with PID %s.\n\ +Using it may cause conflicts if that process still runs.\n\ +Use desktop file anyway? " owner))))) (let ((default-directory desktop-dirname)) (setq desktop-dirname nil) (run-hooks 'desktop-not-loaded-hook)