; Fix last change in buffer-menu.el

* etc/NEWS: Elaborate about the binding of the new command.

* lisp/buff-menu.el (Buffer-menu--selection-message): Fix wording
of new message.
(Buffer-menu-toggle-internal): Doc fix.  (Bug#68949)
This commit is contained in:
Eli Zaretskii 2024-02-06 21:55:57 +02:00
parent a2201a2034
commit ab318cce1e
2 changed files with 4 additions and 3 deletions

View file

@ -1307,7 +1307,8 @@ chat buffers use by default.
*** New command 'Buffer-menu-toggle-internal', locally bound to 'I'.
This command toggles the display of internal buffers in Buffer Menu mode;
that is, buffers not visiting a file and whose names start with a space.
Previously, such buffers were never shown.
Previously, such buffers were never shown. This command is bound to 'I'
in Buffer menu mode.
** Customize

View file

@ -329,7 +329,7 @@ ARG, show only buffers that are visiting files."
(defun Buffer-menu--selection-message ()
(message (cond (Buffer-menu-files-only "Showing only file-visiting buffers.")
(Buffer-menu-show-internal "Showing all buffers.")
(t "Showing all non-internal buffers."))))
(t "Hiding internal buffers."))))
(defun Buffer-menu-toggle-files-only (arg)
"Toggle whether the current `buffer-menu' displays only file buffers.
@ -344,7 +344,7 @@ negative ARG, display other buffers as well."
(defun Buffer-menu-toggle-internal (arg)
"Toggle whether the current `buffer-menu' displays internal buffers.
With a positive ARG, display non-internal buffers only. With zero or
With a positive ARG, don't show internal buffers. With zero or
negative ARG, display internal buffers as well."
(interactive "P" Buffer-menu-mode)
(setq Buffer-menu-show-internal