From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67393: 29.1; Slow to open file if autosave exists Date: Tue, 16 Jan 2024 20:51:49 +0200 Message-ID: <83y1cpaz7e.fsf@gnu.org> 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> <865xztnphu.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37903"; mail-complaints-to="usenet@ciao.gmane.io" Cc: materus213@gmail.com, yantar92@posteo.net, 67393@debbugs.gnu.org, stefankangas@gmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 16 19:53:13 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 1rPoYi-0009hv-KY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Jan 2024 19:53:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPoYa-000891-7J; Tue, 16 Jan 2024 13:53:04 -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 1rPoYX-00088d-Mh for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 13:53:02 -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 1rPoYX-0002jv-EK for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 13:53:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPoYX-0002xt-OB for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2024 13:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jan 2024 18:53:01 +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.170543113111339 (code B ref 67393); Tue, 16 Jan 2024 18:53:01 +0000 Original-Received: (at 67393) by debbugs.gnu.org; 16 Jan 2024 18:52:11 +0000 Original-Received: from localhost ([127.0.0.1]:49760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPoXj-0002wo-G2 for submit@debbugs.gnu.org; Tue, 16 Jan 2024 13:52:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPoXg-0002wb-Kl for 67393@debbugs.gnu.org; Tue, 16 Jan 2024 13:52:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPoXY-0002gY-RU; Tue, 16 Jan 2024 13:52:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QdYlW28rwvHXO4uYygFKN7XeW15bd8RdkdTlTMI8CzY=; b=CXzhQfpGTCWF H/OMx2cGzMEHKVuN925SX0FcOKd3Yb8dwrMBu+lfuT3hRzVD2Q7x/C+TOTBtkn/YnKr8Mr0oBPnOQ AMSrrgmljgzxBVmDzquJnSLFXOe/s2j2a6LdI+UXW9NtYvDFlvMtj8+jwG7kBRCXl1dHBXT0SqznU baF2LrpwxqIhtLyW5k4hXh0Wy8ZNPjpq+s/ZK0R3UMg1J67IhfH0cm8SoYDHU2xPBTBsxxN1/Li26 seWGq470IWli+NsabG0134gAuwgVdvR8is8RB/RPLgSijIDXGC1jlgMIwXgajQq0lkI8C/oepIjT2 n445JGnF9AdnaBtBqGol7w==; In-Reply-To: <865xztnphu.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 16 Jan 2024 19:43:09 +0200) 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:278358 Archived-At: > From: Juri Linkov > Cc: materus213@gmail.com, yantar92@posteo.net, 67393@debbugs.gnu.org, > stefankangas@gmail.com > Date: Tue, 16 Jan 2024 19:43:09 +0200 > > >> > 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. Then I think we should consider all of those changes together. > >> 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. I don't see a need to remove it, as one caller that uses it is enough to justify it, and the price is hardly significant.