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).
This commit is contained in:
Greg Minshall 2021-11-18 10:32:34 +01:00 committed by Lars Ingebrigtsen
parent d7f52c6466
commit 1625123e4c

View 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)))))))