From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation Date: Tue, 29 Oct 2019 12:38:48 +0100 Message-ID: <87k18n233r.fsf@gnus.org> References: <20191026101407.GA17424@ACM> <87o8y3d4ur.fsf@gnus.org> <87mudl3l83.fsf@mail.linkov.net> <87v9s9b12x.fsf@gnus.org> <87ftjctsx5.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="101975"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Alan Mackenzie , Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 29 12:39:05 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPPq5-000QP3-Fw for ged-emacs-devel@m.gmane.org; Tue, 29 Oct 2019 12:39:05 +0100 Original-Received: from localhost ([::1]:55206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPPq3-0007xS-U3 for ged-emacs-devel@m.gmane.org; Tue, 29 Oct 2019 07:39:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39023) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPPpv-0007x9-RT for emacs-devel@gnu.org; Tue, 29 Oct 2019 07:38:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPPpu-0004Xw-Kx for emacs-devel@gnu.org; Tue, 29 Oct 2019 07:38:55 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:49596) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iPPpu-0004XS-De for emacs-devel@gnu.org; Tue, 29 Oct 2019 07:38:54 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPPpp-00082s-7H; Tue, 29 Oct 2019 12:38:51 +0100 In-Reply-To: <87ftjctsx5.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 29 Oct 2019 00:19:02 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241581 Archived-At: Juri Linkov writes: >> So read-from-minibuffer reasserts the query if an asynchronous message >> hides it? > > An asynchronous message doesn't hide the minibuffer. It's displayed > at the end of the minibuffer text. The original bug report was about: (progn (run-at-time 2 nil (lambda () (message "foo"))) (y-or-n-p "Yes? ")) But this seems to have the same problem? (progn (run-at-time 2 nil (lambda () (message "foo"))) (read-from-minibuffer "Yes? ")) When I eval that, "foo" completely hides the prompt -- it's not appended or reasserted. >> I think having a history for y-or-n-p doesn't sound very useful? >> Hitting `M-p' doesn't to get to the previous answer just sounds >> confusing to me. > > Please try the example I sent earlier. It feels quite naturally > typing 'M-p RET' to repeat a previous y/n answer. I played with it a bit, and I'm not very enthusiastic about that. Like Stefan K says, it seems error-prone, and I think it would just create frustration. And it's a bigger change in the interface than it first sounds like -- people may be used to hitting as a way to reassert the prompt, for instance. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no