From e910ef344f879605e32aa53430baa285a3ea81b1 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 19 Jun 2021 15:21:18 +0200 Subject: [PATCH] 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 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. -- 2.39.5