From: Lars Ingebrigtsen Date: Sat, 19 Jun 2021 13:21:18 +0000 (+0200) Subject: Improve bound-and-true-p doc string X-Git-Tag: emacs-28.0.90~2081 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e910ef344f879605e32aa53430baa285a3ea81b1;p=emacs.git Improve bound-and-true-p doc string * lisp/bindings.el (bound-and-true-p): Improve doc string (bug#49116). --- 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.