summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-05-31 07:22:12 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-05-31 07:22:12 +0200
commit415ae812e93aa992c206bfb3d1c382d78209b8fe (patch)
treeea2d9b6e3f35d68e0f0977e99cc194ab5dd82f4c
parent77f67d12f68a9fba210337b9ad38f049ec601fcb (diff)
downloademacs-415ae812e93aa992c206bfb3d1c382d78209b8fe.tar.gz
emacs-415ae812e93aa992c206bfb3d1c382d78209b8fe.tar.bz2
emacs-415ae812e93aa992c206bfb3d1c382d78209b8fe.zip
Use buffer-local-boundp in describe-variable
* lisp/help-fns.el (describe-variable): Use `buffer-local-boundp'.
-rw-r--r--lisp/help-fns.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index c8f078cb852..5a805a23028 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -1029,10 +1029,7 @@ it is displayed along with the global value."
;; Since the variable may only exist in the
;; original buffer, we have to look for it
;; there.
- (condition-case nil
- (buffer-local-value vv orig-buffer)
- (:success t)
- (void-variable nil)))))
+ (buffer-local-boundp vv orig-buffer))))
t nil nil
(if (symbolp v) (symbol-name v))))
(list (if (equal val "")