emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e910ef3: Improve bound-and-true-p doc string


From: Lars Ingebrigtsen
Subject: master e910ef3: Improve bound-and-true-p doc string
Date: Sat, 19 Jun 2021 09:22:10 -0400 (EDT)

branch: master
commit e910ef344f879605e32aa53430baa285a3ea81b1
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Improve bound-and-true-p doc string
    
    * lisp/bindings.el (bound-and-true-p): Improve doc string (bug#49116).
---
 lisp/bindings.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/bindings.el b/lisp/bindings.el
index 6eac528..4e5497c 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]