]> git.eshelyaron.com Git - emacs.git/commitdiff
Further fixes for bound-and-true-p doc string
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 20 Jun 2021 11:50:25 +0000 (13:50 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 21 Jun 2021 12:25:40 +0000 (14:25 +0200)
* lisp/bindings.el (bound-and-true-p): Improve doc string.

lisp/bindings.el

index 4e5497cc79a11b730e60fcfb5f09c01fcd406f76..620f28970a22baf9e41a596b1e95d749c2ce8d63 100644 (file)
@@ -611,8 +611,8 @@ Switch to the most recently selected buffer other than the current one."
 
 (defmacro bound-and-true-p (var)
   "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."
+Note that if `lexical-binding' is in effect, this function isn't
+meaningful if it refers to a lexically bound variable."
   `(and (boundp (quote ,var)) ,var))
 
 ;; Use mode-line-mode-menu for local minor-modes only.