GNU bug report logs - #50184
emacsclient -n should clear the minibuffer

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Tue, 24 Aug 2021 13:29:01 UTC

Severity: wishlist

Tags: moreinfo, wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50184 in the body.
You can then email your comments to 50184 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50184; Package emacs. (Tue, 24 Aug 2021 13:29:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 24 Aug 2021 13:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: emacsclient -n should clear the minibuffer
Date: Tue, 24 Aug 2021 21:15:49 +0800
C-x C-f clears any words sitting in the minibuffer.
So should emacsclient -n.

Try this:
M-! date
C-x C-f somefile

Vs.
M-x server-start
M-! date
$ emacsclient -n somefile

That the date is still sitting there is weird.
emacs-version "27.1"




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50184; Package emacs. (Wed, 25 Aug 2021 11:55:01 GMT) Full text and rfc822 format available.

Message #8 received at 50184 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 50184 <at> debbugs.gnu.org
Subject: Re: bug#50184: emacsclient -n should clear the minibuffer
Date: Wed, 25 Aug 2021 13:54:42 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> C-x C-f clears any words sitting in the minibuffer.
> So should emacsclient -n.
>
> Try this:
> M-! date
> C-x C-f somefile
>
> Vs.
> M-x server-start
> M-! date
> $ emacsclient -n somefile
>
> That the date is still sitting there is weird.

When reusing the Emacs frame, it seems kinda natural to not touch the
minibuffer area -- I can imagine that some people have work flows that
depend on not losing the message.

Anybody got an opinion here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 25 Aug 2021 11:55:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50184; Package emacs. (Wed, 25 Aug 2021 12:24:02 GMT) Full text and rfc822 format available.

Message #13 received at 50184 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 50184 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#50184: emacsclient -n should clear the minibuffer
Date: Wed, 25 Aug 2021 15:23:02 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Wed, 25 Aug 2021 13:54:42 +0200
> Cc: 50184 <at> debbugs.gnu.org
> 
> > That the date is still sitting there is weird.
> 
> When reusing the Emacs frame, it seems kinda natural to not touch the
> minibuffer area -- I can imagine that some people have work flows that
> depend on not losing the message.
> 
> Anybody got an opinion here?

I also don't see why emacsclient should produce the same behavior as
an internal command.  We only clear the echo area when the next
interactive command arrives, and emacsclient doesn't invoke any
commands interactively.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50184; Package emacs. (Wed, 25 Aug 2021 20:45:01 GMT) Full text and rfc822 format available.

Message #16 received at 50184 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 50184 <at> debbugs.gnu.org
Subject: Re: bug#50184: emacsclient -n should clear the minibuffer
Date: Thu, 26 Aug 2021 04:43:55 +0800
Proof:
Do C-x =.
it says
Char: s (115, #o163, #x73) point=474 of 1163 (41%) column=6

OK, now do
$ emacsclient -n some.file

So the character under the cursor is still
Char: s (115, #o163, #x73) point=474 of 1163 (41%) column=6
??

Little chance.

OK, now repeat the experiment,
but instead of emacsclient -n,
use C-x C-f to open that file.

Well, why not restore the (now invalid)
Char: s (115, #o163, #x73) point=474 of 1163 (41%) column=6
here too?

Yes, that would be nonsense.

Why not always have the last message in the minibuffer stay there.

Bad idea also.

>> When reusing the Emacs frame, it seems kinda natural to not touch the
>> minibuffer area -- I can imagine that some people have work flows that
>> depend on not losing the message.

For every one of such workflows, I have 100 that say clearing the
minibuffer would be more appropriate.

Just like if we are looking at a picture of Bob in some app, and now we
switch to a picture of Mary, but her picture doesn't have a name.
Well to play it safe we still should clear the title.

EZ> I also don't see why emacsclient should produce the same behavior as
EZ> an internal command.  We only clear the echo area when the next
EZ> interactive command arrives, and emacsclient doesn't invoke any
EZ> commands interactively.

OK, but when is that better.
Only when we did
M-! date,
and we need to keep looking at the date all day long?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50184; Package emacs. (Thu, 26 Aug 2021 06:47:02 GMT) Full text and rfc822 format available.

Message #19 received at 50184 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: larsi <at> gnus.org, 50184 <at> debbugs.gnu.org
Subject: Re: bug#50184: emacsclient -n should clear the minibuffer
Date: Thu, 26 Aug 2021 09:45:52 +0300
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: Lars Ingebrigtsen <larsi <at> gnus.org>,  50184 <at> debbugs.gnu.org
> Date: Thu, 26 Aug 2021 04:43:55 +0800
> 
> Proof:
> Do C-x =.
> it says
> Char: s (115, #o163, #x73) point=474 of 1163 (41%) column=6
> 
> OK, now do
> $ emacsclient -n some.file
> 
> So the character under the cursor is still
> Char: s (115, #o163, #x73) point=474 of 1163 (41%) column=6
> ??
> 
> Little chance.

It is a fallacy to assign some kind of "truth value" to the echo-area
message, and expect it to disappear when it's no longer "true".  Those
messages are just that: echoes of some past command.

More generally, Emacs keeps the echo-area messages because they might
be important, and because Emacs has no idea about the true meaning of
the messages.  You made a straw man argument by picking up a message
that is highly context dependent, but what if that message would show
something like a text message from your loved one, or the date and
time of your death?

There's no way I can see that we could distinguish between messages
that should stay and those which should go.  I can tell you from my
experience that I frequently have important messages go when I'd like
them to stay.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50184; Package emacs. (Thu, 23 Sep 2021 21:57:02 GMT) Full text and rfc822 format available.

Message #22 received at 50184 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50184 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#50184: emacsclient -n should clear the minibuffer
Date: Thu, 23 Sep 2021 23:56:28 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> There's no way I can see that we could distinguish between messages
> that should stay and those which should go.  I can tell you from my
> experience that I frequently have important messages go when I'd like
> them to stay.

So I think the conclusion here is that we don't want to change the
behaviour here, and I'm therefore closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 23 Sep 2021 21:57:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 50184 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 23 Sep 2021 21:57:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 22 Oct 2021 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 185 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.