; Fix last changes in buffer-menu.el and NEWS

* etc/NEWS: Remove superfluous mention of key binding.
* lisp/buff-menu.el (Buffer-menu--selection-message): Go back to
previous wording.  It's not about what is hidden but what is shown;
the message is displayed in response to different actions.
This commit is contained in:
Mattias Engdegård 2024-02-07 14:35:44 +01:00
parent d03f3a827d
commit ef3fed1a48
2 changed files with 2 additions and 2 deletions

View file

@ -1304,7 +1304,7 @@ This allows for rcirc logs to use a custom timestamp format, than the
chat buffers use by default.
---
*** New command 'Buffer-menu-toggle-internal', locally bound to 'I'.
*** New command 'Buffer-menu-toggle-internal'.
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. This command is bound to 'I'

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 "Hiding internal buffers."))))
(t "Showing all non-internal buffers."))))
(defun Buffer-menu-toggle-files-only (arg)
"Toggle whether the current `buffer-menu' displays only file buffers.