diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-05-31 07:22:12 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-05-31 07:22:12 +0200 |
commit | 415ae812e93aa992c206bfb3d1c382d78209b8fe (patch) | |
tree | ea2d9b6e3f35d68e0f0977e99cc194ab5dd82f4c | |
parent | 77f67d12f68a9fba210337b9ad38f049ec601fcb (diff) | |
download | emacs-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.el | 5 |
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 "") |