]> git.eshelyaron.com Git - emacs.git/commitdiff
Use buffer-local-boundp in describe-variable
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 31 May 2021 05:22:12 +0000 (07:22 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 31 May 2021 05:22:12 +0000 (07:22 +0200)
* lisp/help-fns.el (describe-variable): Use `buffer-local-boundp'.

lisp/help-fns.el

index c8f078cb852880ae6fdd4e3b455f7babc4988dee..5a805a23028679a275131daf83c8d38d42551cde 100644 (file)
@@ -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 "")