[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2541bec21b: * lisp/bindings.el (bound-and-true-p): Verify argumen
From: |
Juanma Barranquero |
Subject: |
master 2541bec21b: * lisp/bindings.el (bound-and-true-p): Verify argument is a symbol |
Date: |
Fri, 2 Dec 2022 20:06:57 -0500 (EST) |
branch: master
commit 2541bec21bf3cf090071e434dac170d52394594e
Author: Juanma Barranquero <lekktu@gmail.com>
Commit: Juanma Barranquero <lekktu@gmail.com>
* lisp/bindings.el (bound-and-true-p): Verify argument is a symbol
---
lisp/bindings.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/bindings.el b/lisp/bindings.el
index c1ad5f7520..a3f51ebb31 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -670,6 +670,8 @@ or not."
"Return the value of symbol VAR if it is bound, else nil.
Note that if `lexical-binding' is in effect, this function isn't
meaningful if it refers to a lexically bound variable."
+ (unless (symbolp var)
+ (signal 'wrong-type-argument (list 'symbolp var)))
`(and (boundp (quote ,var)) ,var))
;; Use mode-line-mode-menu for local minor-modes only.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2541bec21b: * lisp/bindings.el (bound-and-true-p): Verify argument is a symbol,
Juanma Barranquero <=