emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 415ae81 2/2: Use buffer-local-boundp in describe-variable


From: Lars Ingebrigtsen
Subject: master 415ae81 2/2: Use buffer-local-boundp in describe-variable
Date: Mon, 31 May 2021 01:22:31 -0400 (EDT)

branch: master
commit 415ae812e93aa992c206bfb3d1c382d78209b8fe
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Use buffer-local-boundp in describe-variable
    
    * lisp/help-fns.el (describe-variable): Use `buffer-local-boundp'.
---
 lisp/help-fns.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index c8f078c..5a805a2 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 "")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]