diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-01-21 08:35:53 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-01-21 08:35:53 +0200 |
commit | 3dacf583b90c35ffea13e4ae54010df957f0b1b3 (patch) | |
tree | dee87f391880bda7cadebe7457f37201d7f22377 /lisp/files.el | |
parent | 623fdf30ff3b7c3e97b5022e2cdcb109430dcc01 (diff) | |
download | emacs-3dacf583b90c35ffea13e4ae54010df957f0b1b3.tar.gz emacs-3dacf583b90c35ffea13e4ae54010df957f0b1b3.tar.bz2 emacs-3dacf583b90c35ffea13e4ae54010df957f0b1b3.zip |
; Fix documentation of 'kill-matching-buffers-no-ask'
* etc/NEWS: Fix wording of 'kill-matching-buffers-no-ask's entry.
* lisp/files.el (kill-matching-buffers)
(kill-matching-buffers-no-ask): Doc fix.
Diffstat (limited to 'lisp/files.el')
-rw-r--r-- | lisp/files.el | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lisp/files.el b/lisp/files.el index d308e99804d..9da82446112 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -7100,10 +7100,11 @@ specifies the list of buffers to kill, asking for approval for each one." (setq list (cdr list)))) (defun kill-matching-buffers (regexp &optional internal-too no-ask) - "Kill buffers whose name matches the specified REGEXP. -Ignores buffers whose name starts with a space, unless optional -prefix argument INTERNAL-TOO is non-nil. Asks before killing -each buffer, unless NO-ASK is non-nil." + "Kill buffers whose names match the regular expression REGEXP. +Interactively, prompt for REGEXP. +Ignores buffers whose names start with a space, unless optional +prefix argument INTERNAL-TOO(interactively, the prefix argument) +is non-nil. Asks before killing each buffer, unless NO-ASK is non-nil." (interactive "sKill buffers matching this regular expression: \nP") (dolist (buffer (buffer-list)) (let ((name (buffer-name buffer))) @@ -7113,11 +7114,13 @@ each buffer, unless NO-ASK is non-nil." (funcall (if no-ask 'kill-buffer 'kill-buffer-ask) buffer))))) (defun kill-matching-buffers-no-ask (regexp &optional internal-too) - "Kill buffers whose name matches the specified REGEXP. -Ignores buffers whose name starts with a space, unless optional -prefix argument INTERNAL-TOO is non-nil. Equivalent to -`kill-matching-buffers' but never ask before killing each -buffer." + "Kill buffers whose names match the regular expression REGEXP. +Interactively, prompt for REGEXP. +Like `kill-matching-buffers', but doesn't ask for confirmation +before killing each buffer. +Ignores buffers whose names start with a space, unless the +optional argument INTERNAL-TOO (interactively, the prefix argument) +is non-nil." (interactive "sKill buffers matching this regular expression: \nP") (kill-matching-buffers regexp internal-too t)) |