projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30f598b
)
buffer-match-p doc string clarification
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 30 Jul 2022 11:16:12 +0000
(13:16 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sat, 30 Jul 2022 11:16:12 +0000
(13:16 +0200)
* lisp/subr.el (buffer-match-p): Actually say that nil is a valid
value.
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 9f7cb3ab6a987ab384c89c6f9e577888d2aaf119..c220a7f4a88b570eb89541a2d934a977da589a16 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-6899,7
+6899,8
@@
lines."
(defun buffer-match-p (condition buffer-or-name &optional arg)
"Return non-nil if BUFFER-OR-NAME matches CONDITION.
CONDITION is either:
-- the symbol t, to always match
+- the symbol t, to always match,
+- the symbol nil, which never matches,
- a regular expression, to match a buffer name,
- a predicate function that takes a buffer object and ARG as
arguments, and returns non-nil if the buffer matches,