summaryrefslogtreecommitdiff
path: root/lisp/bindings.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-06-19 15:21:18 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-06-19 15:21:18 +0200
commite910ef344f879605e32aa53430baa285a3ea81b1 (patch)
tree567a5d11ed90ddbf34700d4351cbfa8693090cd4 /lisp/bindings.el
parent234bf1b6363a3d5db8e73c422d87a0bf1aa4b2e3 (diff)
downloademacs-e910ef344f879605e32aa53430baa285a3ea81b1.tar.gz
emacs-e910ef344f879605e32aa53430baa285a3ea81b1.tar.bz2
emacs-e910ef344f879605e32aa53430baa285a3ea81b1.zip
Improve bound-and-true-p doc string
* lisp/bindings.el (bound-and-true-p): Improve doc string (bug#49116).
Diffstat (limited to 'lisp/bindings.el')
-rw-r--r--lisp/bindings.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 6eac528eb61..4e5497cc79a 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -610,7 +610,9 @@ Switch to the most recently selected buffer other than the current one."
(previous-buffer)))
(defmacro bound-and-true-p (var)
- "Return the value of symbol VAR if it is bound, else nil."
+ "Return the value of symbol VAR if it is bound, else nil.
+Note that if `lexical-binding' is in effect, this refers to the
+global value outside of any lexical scope."
`(and (boundp (quote ,var)) ,var))
;; Use mode-line-mode-menu for local minor-modes only.