]> git.eshelyaron.com Git - emacs.git/commitdiff
Look for ElDoc buffer in all visible frames
authorBasil L. Contovounesios <contovob@tcd.ie>
Tue, 18 May 2021 15:28:42 +0000 (16:28 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Tue, 18 May 2021 15:31:19 +0000 (16:31 +0100)
* lisp/emacs-lisp/eldoc.el (eldoc--echo-area-prefer-doc-buffer-p):
Look for a window displaying the ElDoc documentation buffer in all
visible frames, as promised by the user option
eldoc-echo-area-prefer-doc-buffer (bug#48278).

lisp/emacs-lisp/eldoc.el

index b4f068cf3aeb23e0b16a81c489a6df197db38e34..cec89cf3bc5af3b05a3bc765c73f9742f97befc1 100644 (file)
@@ -538,7 +538,7 @@ documentation to potentially appear in the echo are is truncated."
            (and truncatedp
                 (eq eldoc-echo-area-prefer-doc-buffer
                     'maybe)))
-       (get-buffer-window eldoc--doc-buffer)))
+       (get-buffer-window eldoc--doc-buffer 'visible)))
 
 (defun eldoc-display-in-echo-area (docs _interactive)
   "Display DOCS in echo area.