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: Wed, 27 Dec 2023 19:20:07 +0200 Organization: LINKOV.NET Message-ID: <86a5pv508o.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24283"; 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 Wed Dec 27 18:25:24 2023 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 1rIXem-0006A6-MT for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Dec 2023 18:25:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIXeS-0007Ee-VA; Wed, 27 Dec 2023 12:25: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 1rIXeS-0007EW-8R for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2023 12:25:04 -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 1rIXeR-0003m8-Qv for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2023 12:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIXeQ-0003NK-Gz for bug-gnu-emacs@gnu.org; Wed, 27 Dec 2023 12:25: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: Wed, 27 Dec 2023 17:25: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.170369784612853 (code B ref 67393); Wed, 27 Dec 2023 17:25:02 +0000 Original-Received: (at 67393) by debbugs.gnu.org; 27 Dec 2023 17:24:06 +0000 Original-Received: from localhost ([127.0.0.1]:37697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIXdW-0003LF-1k for submit@debbugs.gnu.org; Wed, 27 Dec 2023 12:24:06 -0500 Original-Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]:54903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIXdV-0003Kl-0G for 67393@debbugs.gnu.org; Wed, 27 Dec 2023 12:24:05 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id CA6E340005; Wed, 27 Dec 2023 17:23:58 +0000 (UTC) In-Reply-To: <83r0jbbg2z.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 24 Dec 2023 20:39:16 +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:276943 Archived-At: >> > What I meant is to change the default `set-message-function' in such a >> > way that it displays "important" messages for a custom time period, in >> > addition to the last message. >> >> I agree. The most annoying delay is in 'ispell-parse-output': >> >> (ding) ; error message from ispell! >> (message "Ispell error: %s" output) >> (sit-for 5) >> >> So I need to waste 5 seconds several times during spell-checking. > > Only when there's an error, right? Often during spell-checking it's really not an error, but a warning that text in some unsupported encoding can't be spell-checked. >> It would be nicer to prepend this error message to any last displayed >> message during these 5 seconds. > > We don't really know whether doing that will be effective. Given N > lines of messages in the echo-area, what are the chances that the user > will see all of them, or even the most important one(s)? > > IOW, we don't have any real experience with this kind of UI. We need > to collect such experience first, before we conclude that this could > be used as an alternative to sit-for. I propose to refactor such code (message "Ispell error: %s" output) (sit-for 5) to a new separate function, e.g. (important-message 5 "Ispell error: %s" output) with a simple implementation (defun important-message (seconds format-string &rest args) (apply #'message format-string args) (sit-for seconds)) Then users could easily override such annoying delay. Or maybe even the default implementation can check if set-message-functions already contains set-multi-message that ensures that the important message will not be missed, and not to use sit-for in this case.