From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#67393: 29.1; Slow to open file if autosave exists Date: Tue, 16 Jan 2024 19:43:09 +0200 Organization: LINKOV.NET Message-ID: <865xztnphu.fsf@mail.linkov.net> References: <83a5r5gdxk.fsf@gnu.org> <87frztc7iy.fsf@localhost> <867cl4kg4l.fsf@mail.linkov.net> <87cyuwdcb4.fsf@localhost> <868r5jse0m.fsf@mail.linkov.net> <83r0jbbg2z.fsf@gnu.org> <86a5pv508o.fsf@mail.linkov.net> <83h6k38s9g.fsf@gnu.org> <86bkaa7oaa.fsf@mail.linkov.net> <868r4pp74s.fsf@mail.linkov.net> <83zfx5b3vt.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="5633"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: materus213@gmail.com, yantar92@posteo.net, 67393@debbugs.gnu.org, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 16 18:49:16 2024 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 1rPnYq-0001DD-39 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Jan 2024 18:49:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPnYd-0005Xh-4B; Tue, 16 Jan 2024 12:49:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPnYb-0005XJ-Up for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 12:49:01 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPnYb-0000gn-MZ for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 12:49:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPnYc-0007UO-56 for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 12:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jan 2024 17:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67393 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 67393-submit@debbugs.gnu.org id=B67393.170542733528776 (code B ref 67393); Tue, 16 Jan 2024 17:49:02 +0000 Original-Received: (at 67393) by debbugs.gnu.org; 16 Jan 2024 17:48:55 +0000 Original-Received: from localhost ([127.0.0.1]:49710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPnYV-0007U1-EW for submit@debbugs.gnu.org; Tue, 16 Jan 2024 12:48:55 -0500 Original-Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]:54189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPnYS-0007TL-Vd for 67393@debbugs.gnu.org; Tue, 16 Jan 2024 12:48:53 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 9E69FE0003; Tue, 16 Jan 2024 17:48:44 +0000 (UTC) In-Reply-To: <83zfx5b3vt.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Jan 2024 19:10:46 +0200") X-GND-Sasl: juri@linkov.net 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278354 Archived-At: >> > A defcustom would be one option. 'set-important-message' like >> > implemented by Ihor would be another option. All this could be >> > added after creating the new function 'important-message'. >> >> So here is the new function 'important-message' and its calls >> in two discussed places. > > Is this in preparation for some followup? Because if not, I'm not > sure it is justified to add a short function that has just 2 callers. > What do we gain, as a counter-weight to the need to document the new > function, insist that new code uses it, etc.? Indeed, these 2 test cases are for preparation to using it everywhere. >> I'm not sure why 'after-find-file' uses non-nil NODISP arg >> in (sit-for 1 t). This means is that the message is not >> displayed? Then why 'message' is called? > > I think it means redisplay is not called. 'message' causes redisplay > of the echo-area, but we don't need to redisplay the rest. Would it be safe to drop NODISP in the new function? I see that most calls of 'message' with 'sit-for' don't use the NODISP arg.