From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#50184: emacsclient -n should clear the minibuffer Date: Thu, 26 Aug 2021 04:43:55 +0800 Message-ID: <87y28pw8z8.5.fsf@jidanni.org> References: <87sfyzm1a2.5.fsf@jidanni.org> <87fsuxkad9.fsf@gnus.org> <83h7fdvhll.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39433"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 50184@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 25 22:45:24 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIzly-000A0G-Mj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 22:45:23 +0200 Original-Received: from localhost ([::1]:60480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIzlw-0007Gr-Qn for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Aug 2021 16:45:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIzle-0007Gd-FN for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 16:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIzle-0000Mw-0k for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 16:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mIzld-0000aj-L2 for bug-gnu-emacs@gnu.org; Wed, 25 Aug 2021 16:45:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87sfyzm1a2.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Aug 2021 20:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50184 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 50184-submit@debbugs.gnu.org id=B50184.16299242552205 (code B ref 50184); Wed, 25 Aug 2021 20:45:01 +0000 Original-Received: (at 50184) by debbugs.gnu.org; 25 Aug 2021 20:44:15 +0000 Original-Received: from localhost ([127.0.0.1]:47964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIzks-0000ZV-Ul for submit@debbugs.gnu.org; Wed, 25 Aug 2021 16:44:15 -0400 Original-Received: from donkey.elm.relay.mailchannels.net ([23.83.212.49]:17272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIzkp-0000ZK-BG for 50184@debbugs.gnu.org; Wed, 25 Aug 2021 16:44:13 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6D4388419D5; Wed, 25 Aug 2021 20:44:09 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (100-96-16-112.trex-nlb.outbound.svc.cluster.local [100.96.16.112]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 49514841940; Wed, 25 Aug 2021 20:44:07 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.16.112 (trex/6.4.3); Wed, 25 Aug 2021 20:44:09 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Little-Shelf: 1115a6bb066b601e_1629924249074_1039520381 X-MC-Loop-Signature: 1629924249073:3615831290 X-MC-Ingress-Time: 1629924249073 Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTP id ECF258A6E3; Wed, 25 Aug 2021 13:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=USQPhjRINp/aTwFWeg0410a6KEE=; b=f1nh9rT/qYQ8V UtJItlG0pj2NsR+1JrW1vU65hzrz/klADwjK/cE+D+yZTN73rFLZO0w2YIyl8Tnw 6ep1+s5zgOj044DrdJ87vh/uYREftEfWNFtxLv2lRdmT7wKacz7fYCaXW2PIJ4rD cRRF0DogoPgu1PajQxWzO2VXI5o9IM= Original-Received: from jidanni.org (114-41-6-240.dynamic-ip.hinet.net [114.41.6.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTPSA id 0EC4A8A6E4; Wed, 25 Aug 2021 13:43:59 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a73 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212678 Archived-At: 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?