summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGreg Minshall <minshall@umich.edu>2021-11-18 10:32:34 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-11-18 10:35:12 +0100
commit1625123e4ceb8d23eef00f3944341ecf0a75dc77 (patch)
treefdc56678439a3a6dc599da8e92a24fe9e2af2bd1 /lisp/emacs-lisp
parentd7f52c64666cbd0b91ece1231c235b5c74acd0a5 (diff)
downloademacs-1625123e4ceb8d23eef00f3944341ecf0a75dc77.tar.gz
emacs-1625123e4ceb8d23eef00f3944341ecf0a75dc77.tar.bz2
emacs-1625123e4ceb8d23eef00f3944341ecf0a75dc77.zip
Fix eldoc usage of newly introduced variable
* lisp/emacs-lisp/eldoc.el (eldoc-display-message-no-interference-p): Make this function work in older Emacs versions again (bug#51939).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/eldoc.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index b30d3fc30f4..cd0e7dca7cf 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -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)))))))