unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 50184@debbugs.gnu.org
Subject: bug#50184: emacsclient -n should clear the minibuffer
Date: Thu, 26 Aug 2021 04:43:55 +0800	[thread overview]
Message-ID: <87y28pw8z8.5.fsf@jidanni.org> (raw)
In-Reply-To: <87sfyzm1a2.5.fsf@jidanni.org>

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?





  reply	other threads:[~2021-08-25 20:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24 13:15 bug#50184: emacsclient -n should clear the minibuffer 積丹尼 Dan Jacobson
2021-08-25 11:54 ` Lars Ingebrigtsen
2021-08-25 12:23   ` Eli Zaretskii
2021-08-25 20:43     ` 積丹尼 Dan Jacobson [this message]
2021-08-26  6:45       ` Eli Zaretskii
2021-09-23 21:56         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y28pw8z8.5.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=50184@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).