unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44334: 28.0.50; [eldoc] Impossible to avoid creating the *eldoc for xxx* buffer
@ 2020-10-30 18:02 Xu Chunyang
  2020-10-30 18:09 ` Basil L. Contovounesios
  0 siblings, 1 reply; 7+ messages in thread
From: Xu Chunyang @ 2020-10-30 18:02 UTC (permalink / raw)
  To: 44334

With eldoc-mode, a buffer like *eldoc for setq* is created and updated
all the time, is it possible to stop it? since I don't need the
buffer at all. If the buffer must be created, maybe make it uninteresting by
prefixing the buffer name with a space.

I've tried the following which does not work.

(remove-hook 'eldoc-display-functions #'eldoc-display-in-buffer)

In GNU Emacs 28.0.50 (build 2, x86_64-apple-darwin19.6.0, NS
appkit-1894.60 Version 10.15.7 (Build 19H2))
 of 2020-10-30 built on mac.lan
Repository revision: 3e63213a1fef16ffe38a5024a83d8782e98aabe1
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.7





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#44334: 28.0.50; [eldoc] Impossible to avoid creating the *eldoc for xxx* buffer
  2020-10-30 18:02 bug#44334: 28.0.50; [eldoc] Impossible to avoid creating the *eldoc for xxx* buffer Xu Chunyang
@ 2020-10-30 18:09 ` Basil L. Contovounesios
  2020-10-30 18:13   ` João Távora
  0 siblings, 1 reply; 7+ messages in thread
From: Basil L. Contovounesios @ 2020-10-30 18:09 UTC (permalink / raw)
  To: Xu Chunyang; +Cc: 44334, João Távora

Xu Chunyang <xuchunyang56@gmail.com> writes:

> With eldoc-mode, a buffer like *eldoc for setq* is created and updated
> all the time, is it possible to stop it? since I don't need the
> buffer at all. If the buffer must be created, maybe make it uninteresting by
> prefixing the buffer name with a space.

I would also like to avoid the presence of this buffer if possible,
as was the case in emacs-27.  CCing João :).

Thanks,

-- 
Basil





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#44334: 28.0.50; [eldoc] Impossible to avoid creating the *eldoc for xxx* buffer
  2020-10-30 18:09 ` Basil L. Contovounesios
@ 2020-10-30 18:13   ` João Távora
  2020-10-30 18:36     ` Basil L. Contovounesios
  0 siblings, 1 reply; 7+ messages in thread
From: João Távora @ 2020-10-30 18:13 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 44334, Xu Chunyang

[-- Attachment #1: Type: text/plain, Size: 1007 bytes --]

Hi,

The buffer is an implementation detail for the member of
eldoc-display-functions that writes to the echo area,
so it's hard to do away with.  However, it should be reasonably
easy to "hide it", as Xu suggests, by prefixing its name with a
space. The the eldoc-display-in-eldoc-buffer display function
just renames it to not have that space, promoting it
to visible.

Thanks for CC'ing me,
João

On Fri, Oct 30, 2020 at 6:09 PM Basil L. Contovounesios <contovob@tcd.ie>
wrote:

> Xu Chunyang <xuchunyang56@gmail.com> writes:
>
> > With eldoc-mode, a buffer like *eldoc for setq* is created and updated
> > all the time, is it possible to stop it? since I don't need the
> > buffer at all. If the buffer must be created, maybe make it
> uninteresting by
> > prefixing the buffer name with a space.
>
> I would also like to avoid the presence of this buffer if possible,
> as was the case in emacs-27.  CCing João :).
>
> Thanks,
>
> --
> Basil
>


-- 
João Távora

[-- Attachment #2: Type: text/html, Size: 1615 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#44334: 28.0.50; [eldoc] Impossible to avoid creating the *eldoc for xxx* buffer
  2020-10-30 18:13   ` João Távora
@ 2020-10-30 18:36     ` Basil L. Contovounesios
  2020-10-30 18:39       ` João Távora
  0 siblings, 1 reply; 7+ messages in thread
From: Basil L. Contovounesios @ 2020-10-30 18:36 UTC (permalink / raw)
  To: João Távora; +Cc: 44334, Xu Chunyang

João Távora <joaotavora@gmail.com> writes:

> The buffer is an implementation detail for the member of 
> eldoc-display-functions that writes to the echo area,
> so it's hard to do away with.  However, it should be reasonably 
> easy to "hide it", as Xu suggests, by prefixing its name with a
> space. The the eldoc-display-in-eldoc-buffer display function
> just renames it to not have that space, promoting it 
> to visible.

So the space-prefixed buffer name can (should?) be the default?

Thanks,

-- 
Basil





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#44334: 28.0.50; [eldoc] Impossible to avoid creating the *eldoc for xxx* buffer
  2020-10-30 18:36     ` Basil L. Contovounesios
@ 2020-10-30 18:39       ` João Távora
  2020-10-30 22:40         ` João Távora
  0 siblings, 1 reply; 7+ messages in thread
From: João Távora @ 2020-10-30 18:39 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 44334, Xu Chunyang

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

> João Távora <joaotavora@gmail.com> writes:
>
>> The buffer is an implementation detail for the member of 
>> eldoc-display-functions that writes to the echo area,
>> so it's hard to do away with.  However, it should be reasonably 
>> easy to "hide it", as Xu suggests, by prefixing its name with a
>> space. The the eldoc-display-in-eldoc-buffer display function
>> just renames it to not have that space, promoting it 
>> to visible.
>
> So the space-prefixed buffer name can (should?) be the default?

Yes. Or rather: by default, if you just use ElDoc like you always did in
Emacs <28, that buffer shouldn't be bothering you.  I'll see what the
best implementation for doing that is, but I do suspect it's hiding it
with a space prefix in the buffer name.

João





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#44334: 28.0.50; [eldoc] Impossible to avoid creating the *eldoc for xxx* buffer
  2020-10-30 18:39       ` João Távora
@ 2020-10-30 22:40         ` João Távora
  2020-10-31 13:08           ` Basil L. Contovounesios
  0 siblings, 1 reply; 7+ messages in thread
From: João Távora @ 2020-10-30 22:40 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: Xu Chunyang, 44334-done

João Távora <joaotavora@gmail.com> writes:

> "Basil L. Contovounesios" <contovob@tcd.ie> writes:
>
>> João Távora <joaotavora@gmail.com> writes:
>>
>>> The buffer is an implementation detail for the member of 
>>> eldoc-display-functions that writes to the echo area,
>>> so it's hard to do away with.  However, it should be reasonably 
>>> easy to "hide it", as Xu suggests, by prefixing its name with a
>>> space. The the eldoc-display-in-eldoc-buffer display function
>>> just renames it to not have that space, promoting it 
>>> to visible.
>>
>> So the space-prefixed buffer name can (should?) be the default?
>
> Yes. Or rather: by default, if you just use ElDoc like you always did in
> Emacs <28, that buffer shouldn't be bothering you.  I'll see what the
> best implementation for doing that is, but I do suspect it's hiding it
> with a space prefix in the buffer name.

I just pushed a commit fixing this.  Please try it out. The idea is that
if you never M-x eldoc or M-x eldoc-doc-buffer, you are never bothered
by that buffer.  If you do call these commands, the buffer becomes
"interesting" and shows in the normal buffer list, until you kill it,
after which it re-created in space-prefixed "uninterested" form again.

I'm closing this bug, but we could reopen if the problem isn't fixed.

João





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#44334: 28.0.50; [eldoc] Impossible to avoid creating the *eldoc for xxx* buffer
  2020-10-30 22:40         ` João Távora
@ 2020-10-31 13:08           ` Basil L. Contovounesios
  0 siblings, 0 replies; 7+ messages in thread
From: Basil L. Contovounesios @ 2020-10-31 13:08 UTC (permalink / raw)
  To: João Távora; +Cc: 44334, Xu Chunyang

João Távora <joaotavora@gmail.com> writes:

> I just pushed a commit fixing this.  Please try it out. The idea is that
> if you never M-x eldoc or M-x eldoc-doc-buffer, you are never bothered
> by that buffer.  If you do call these commands, the buffer becomes
> "interesting" and shows in the normal buffer list, until you kill it,
> after which it re-created in space-prefixed "uninterested" form again.

Looks good, thanks for the quick fix.

-- 
Basil





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-10-31 13:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 18:02 bug#44334: 28.0.50; [eldoc] Impossible to avoid creating the *eldoc for xxx* buffer Xu Chunyang
2020-10-30 18:09 ` Basil L. Contovounesios
2020-10-30 18:13   ` João Távora
2020-10-30 18:36     ` Basil L. Contovounesios
2020-10-30 18:39       ` João Távora
2020-10-30 22:40         ` João Távora
2020-10-31 13:08           ` Basil L. Contovounesios

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).