From 8e71e9b10333ca4405ae6a9aaec68aa6902171ec Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 21 Jul 2022 09:04:12 +0200 Subject: [PATCH] Make bs-help obsolete in favor of describe-mode * lisp/bs.el (bs-help): Make obsolete in favor of describe-mode. Update uses. --- lisp/bs.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lisp/bs.el b/lisp/bs.el index 00d8326115e..aabc2dc5583 100644 --- a/lisp/bs.el +++ b/lisp/bs.el @@ -487,7 +487,7 @@ Used internally, only.") "DEL" #'bs-unmark-previous ">" #'scroll-right "<" #'scroll-left - "?" #'bs-help + "?" #'describe-mode "" #'bs-mouse-select "" #'bs-mouse-select-other-frame) @@ -612,12 +612,12 @@ Used from `window-size-change-functions'." \\ Aside from two header lines each line describes one buffer. Move to a line representing the buffer you want to edit and select -buffer by \\[bs-select] or SPC. Abort buffer list with \\[bs-kill]. +buffer by \\[bs-select] or \\`SPC'. Abort buffer list with \\[bs-kill]. There are many key commands similar to `Buffer-menu-mode' for manipulating the buffer list and buffers. For faster navigation each digit key is a digit argument. -\\[bs-select] or SPACE -- select current line's buffer and other marked buffers. +\\[bs-select] or \\`SPC' -- select current line's buffer and other marked buffers. \\[bs-select-in-one-window] -- select current's line buffer in one \ window, and delete other windows in the same frame. @@ -655,7 +655,7 @@ apply it. \\[bs-kill] -- leave Buffer Selection Menu without a selection. \\[bs-refresh] -- refresh Buffer Selection Menu. -\\[bs-help] -- display this help text." +\\[describe-mode] -- display this help text." (buffer-disable-undo) (setq buffer-read-only t truncate-lines t @@ -1121,7 +1121,8 @@ configuration." (defun bs-help () "Help for `bs-show'." - (interactive) + (declare (obsolete describe-mode "29.1")) + (interactive nil bs-mode) (describe-function 'bs-mode)) (defun bs-next-config-aux (start-name list) @@ -1484,7 +1485,7 @@ manipulating the buffer list and the buffers themselves. User can move with [up] or [down], select a buffer by \\[bs-select] or [SPC]\n Type \\[bs-kill] to leave Buffer Selection Menu without a selection. -Type \\[bs-help] after invocation to get help on commands available. +Type \\[describe-mode] after invocation to get help on commands available. With prefix argument ARG show a different buffer list. Function `bs--configuration-name-for-prefix-arg' determine accordingly name of buffer configuration." -- 2.39.5