diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-06-19 15:21:18 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-06-19 15:21:18 +0200 |
commit | e910ef344f879605e32aa53430baa285a3ea81b1 (patch) | |
tree | 567a5d11ed90ddbf34700d4351cbfa8693090cd4 /lisp/bindings.el | |
parent | 234bf1b6363a3d5db8e73c422d87a0bf1aa4b2e3 (diff) | |
download | emacs-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.el | 4 |
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. |