From: Lars Ingebrigtsen Date: Sun, 20 Jun 2021 11:50:25 +0000 (+0200) Subject: Further fixes for bound-and-true-p doc string X-Git-Tag: emacs-28.0.90~2068 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9068f8f10c55ccb6a434486daa8baf2c859beb8a;p=emacs.git Further fixes for bound-and-true-p doc string * lisp/bindings.el (bound-and-true-p): Improve doc string. --- diff --git a/lisp/bindings.el b/lisp/bindings.el index 4e5497cc79a..620f28970a2 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -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.