]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix eldoc usage of newly introduced variable
authorGreg Minshall <minshall@umich.edu>
Thu, 18 Nov 2021 09:32:34 +0000 (10:32 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 18 Nov 2021 09:35:12 +0000 (10:35 +0100)
* lisp/emacs-lisp/eldoc.el
(eldoc-display-message-no-interference-p): Make this function work
in older Emacs versions again (bug#51939).

lisp/emacs-lisp/eldoc.el

index b30d3fc30f45c9a0c0db7e2e5ac650eb9d0f19c2..cd0e7dca7cf3be7af2e84faca8939ed995d31ba0 100644 (file)
@@ -385,7 +385,8 @@ Also store it in `eldoc-last-message' and return that value."
            ;; The following configuration shows "Matches..." in the
            ;; echo area when point is after a closing bracket, which
            ;; conflicts with eldoc.
-           (and show-paren-context-when-offscreen
+           (and (boundp 'show-paren-context-when-offscreen)
+                show-paren-context-when-offscreen
                 (not (pos-visible-in-window-p
                       (overlay-end show-paren--overlay)))))))