GNU bug report logs -
#48278
[kisara.moe] 28.0.50; Allow eldoc-echo-area-prefer-doc-buffer to work across all-frames
Previous Next
Reported by: mohsin kaleem <mohkale <at> kisara.moe>
Date: Fri, 7 May 2021 16:23:01 UTC
Severity: normal
Done: João Távora <joaotavora <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 48278 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
mohsin kaleem <mohkale <at> kisara.moe> writes:
> `eldoc-echo-area-prefer-doc-buffer` is a user option added a short while
> back that lets you avoid eldoc showing in the minibuffer when an
> equivalent buffer containing the eldoc output is currently visible.
> However the current implementation only works for the current frame and
> if eldoc-doc-buffer is visible in another emacsclient frame the
> echo-area still shows eldoc messages in the current frame.
[...]
> We oould do this by modifying adding a new user-option or modifying
> the existing option and allowing a new `'all-frames` value.
>
> Thoughts?
I'd personally consider this a bug, since the first line of
eldoc-echo-area-prefer-doc-buffer's docstring says:
Prefer ElDoc's documentation buffer if it is showing in some frame.
In which case I'd advocate for this simple fix:
[eldoc.diff (text/x-diff, inline)]
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index b4f068cf3a..cec89cf3bc 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -538,7 +538,7 @@ eldoc--echo-area-prefer-doc-buffer-p
(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.
[Message part 3 (text/plain, inline)]
WDYT? João?
Thanks,
--
Basil
This bug report was last modified 3 years and 351 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.