GNU bug report logs - #50775
ispell help message times out before most people can read it

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Fri, 24 Sep 2021 13:25:02 UTC

Severity: normal

Tags: fixed

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50775 in the body.
You can then email your comments to 50775 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Fri, 24 Sep 2021 13:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 24 Sep 2021 13:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: ispell help message times out before most people can read it
Date: Fri, 24 Sep 2021 21:13:18 +0800
I typed
 <escape> $		 ;; ispell-word
then I typed
 ? ? ? ?
in fact I need to type even more of them.

That's because the three line message that "?"
shows times out in one second.

But some people need more than one second to read it.

So I have a better idea.

Make it into a four line message, so that way there would be no
need to switch back to the original prompt, because the original prompt
would now be at the bottom, just like before.

emacs-version "27.1"




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Fri, 24 Sep 2021 13:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 50775 <at> debbugs.gnu.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Fri, 24 Sep 2021 16:40:17 +0300
> From: 積丹尼 Dan Jacobson
>  <jidanni <at> jidanni.org>
> Date: Fri, 24 Sep 2021 21:13:18 +0800
> 
> I typed
>  <escape> $		 ;; ispell-word
> then I typed
>  ? ? ? ?
> in fact I need to type even more of them.
> 
> That's because the three line message that "?"
> shows times out in one second.

For me, it times out in 5 sec, not one.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Fri, 24 Sep 2021 13:53:01 GMT) Full text and rfc822 format available.

Message #11 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50775 <at> debbugs.gnu.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Fri, 24 Sep 2021 21:52:34 +0800
EZ> For me, it times out in 5 sec, not one.

In fact you're right!

But it is way to short for many of us.

Indeed it violates web accessibility.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Fri, 24 Sep 2021 14:06:02 GMT) Full text and rfc822 format available.

Message #14 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 50775 <at> debbugs.gnu.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Fri, 24 Sep 2021 17:05:30 +0300
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 50775 <at> debbugs.gnu.org
> Date: Fri, 24 Sep 2021 21:52:34 +0800
> 
> EZ> For me, it times out in 5 sec, not one.
> 
> In fact you're right!
> 
> But it is way to short for many of us.

It's a simple matter of increasing the timeout, since when the user
touches any key, the help goes away.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Fri, 24 Sep 2021 14:36:02 GMT) Full text and rfc822 format available.

Message #17 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50775 <at> debbugs.gnu.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Fri, 24 Sep 2021 22:34:50 +0800
EZ> It's a simple matter of increasing the timeout,

Maybe just use no timeout:

EZ> since when the user touches any key, the help goes away.

Anyway, slower readers would probably have a hard time figuring out how
to increase the timeout.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Fri, 24 Sep 2021 15:47:02 GMT) Full text and rfc822 format available.

Message #20 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50775 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Fri, 24 Sep 2021 18:39:03 +0300
>> EZ> For me, it times out in 5 sec, not one.
>>
>> In fact you're right!
>>
>> But it is way to short for many of us.
>
> It's a simple matter of increasing the timeout, since when the user
> touches any key, the help goes away.

I have another problem with ispell timeouts: oftentimes text contains
characters that mismatch the charsets used by ispell.  Then ispell
waits 5 sec for every such character to display a useless error message.
I used such change to minimize the time spent looking at these messages:

diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index b650ab3871..f940dad460 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -2723,7 +2723,7 @@ ispell-parse-output
    ((equal 0 (string-match "[\ra-zA-Z]" output))
     (ding)				; error message from ispell!
     (message "Ispell error: %s" output)
-    (sit-for 5)
+    (sit-for 1)
     nil)
    (t					; need to process &, ?, and #'s
     (let ((type (aref output 0))	; &, ?, or #
-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Fri, 24 Sep 2021 16:12:01 GMT) Full text and rfc822 format available.

Message #23 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 50775 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Fri, 24 Sep 2021 19:10:50 +0300
> From: Juri Linkov <juri <at> linkov.net>
> Cc: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
>   50775 <at> debbugs.gnu.org
> Date: Fri, 24 Sep 2021 18:39:03 +0300
> 
> >> EZ> For me, it times out in 5 sec, not one.
> >>
> >> In fact you're right!
> >>
> >> But it is way to short for many of us.
> >
> > It's a simple matter of increasing the timeout, since when the user
> > touches any key, the help goes away.
> 
> I have another problem with ispell timeouts: oftentimes text contains
> characters that mismatch the charsets used by ispell.  Then ispell
> waits 5 sec for every such character to display a useless error message.
> I used such change to minimize the time spent looking at these messages:

Are you still using Ispell the program as the spell-checking back-end?
AFAIK, this only happens with that old speller, but not with Hunspell
or Aspell.

That said, I have no problem with the proposed patch, since I don't
think this message should happen in any reasonable use nowadays.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sat, 25 Sep 2021 02:27:02 GMT) Full text and rfc822 format available.

Message #26 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 50775 <at> debbugs.gnu.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sat, 25 Sep 2021 04:26:03 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> That's because the three line message that "?"
> shows times out in one second.
>
> But some people need more than one second to read it.

I've now added a new user option 'ispell-help-timeout' so that you can
control this.

> So I have a better idea.
>
> Make it into a four line message, so that way there would be no
> need to switch back to the original prompt, because the original prompt
> would now be at the bottom, just like before.

Hm...  That's a good idea, I think.  But how does that affect people
that have a lower number on the max height of the echo area?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sat, 25 Sep 2021 18:18:02 GMT) Full text and rfc822 format available.

Message #29 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 50775 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sat, 25 Sep 2021 11:17:27 -0700
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:
>
>> That's because the three line message that "?"
>> shows times out in one second.
>>
>> But some people need more than one second to read it.
>
> I've now added a new user option 'ispell-help-timeout' so that you can
> control this.

Do we even need a timeout here?

If yes, could we double the default to 10?  Or nil to disable it, even?

>> So I have a better idea.
>>
>> Make it into a four line message, so that way there would be no
>> need to switch back to the original prompt, because the original prompt
>> would now be at the bottom, just like before.
>
> Hm...  That's a good idea, I think.  But how does that affect people
> that have a lower number on the max height of the echo area?

That would be even better, IMO.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sat, 25 Sep 2021 18:53:01 GMT) Full text and rfc822 format available.

Message #32 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 50775 <at> debbugs.gnu.org, larsi <at> gnus.org, jidanni <at> jidanni.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sat, 25 Sep 2021 21:52:03 +0300
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Sat, 25 Sep 2021 11:17:27 -0700
> Cc: 50775 <at> debbugs.gnu.org,
>  積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> 
> > I've now added a new user option 'ispell-help-timeout' so that you can
> > control this.
> 
> Do we even need a timeout here?

We've been having that for eons, so changing the default now should
only be done if we have a very good reason.  You have a customizable
variable now, so why not change the value for your convenience?

Let's not let the tail wag the dog: it's a minor issue, no need to
turn the world around each time we add some minor convenience.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sat, 25 Sep 2021 19:16:02 GMT) Full text and rfc822 format available.

Message #35 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50775 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sat, 25 Sep 2021 21:57:44 +0300
>> I have another problem with ispell timeouts: oftentimes text contains
>> characters that mismatch the charsets used by ispell.  Then ispell
>> waits 5 sec for every such character to display a useless error message.
>> I used such change to minimize the time spent looking at these messages:
>
> Are you still using Ispell the program as the spell-checking back-end?
> AFAIK, this only happens with that old speller, but not with Hunspell
> or Aspell.
>
> That said, I have no problem with the proposed patch, since I don't
> think this message should happen in any reasonable use nowadays.

I'm seeing these errors with hunspell.  Maybe it's possible to configure it
to avoid errors about wrong encodings, I don't know.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sat, 25 Sep 2021 19:39:02 GMT) Full text and rfc822 format available.

Message #38 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50775 <at> debbugs.gnu.org, larsi <at> gnus.org, jidanni <at> jidanni.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sat, 25 Sep 2021 12:38:10 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> We've been having that for eons, so changing the default now should
> only be done if we have a very good reason.  You have a customizable
> variable now, so why not change the value for your convenience?
>
> Let's not let the tail wag the dog: it's a minor issue, no need to
> turn the world around each time we add some minor convenience.

[ Removing a timeout for a message does not exactly amount to "turning
  the world around"... ]

We don't avoid fixing minor issues just because they are old, do we?
That's not something I have ever heard proposed before.

For all we know, users have been frustrated with this for ages, but no
one told us about it until now.

That said, the other alternative I proposed was increasing the timeout
to 10 seconds to give the user enough time to read it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sat, 25 Sep 2021 19:45:02 GMT) Full text and rfc822 format available.

Message #41 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 50775 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, larsi <at> gnus.org,
 jidanni <at> jidanni.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sat, 25 Sep 2021 22:44:17 +0300
> That said, the other alternative I proposed was increasing the timeout
> to 10 seconds to give the user enough time to read it.

Or type another key to hide it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sat, 25 Sep 2021 19:46:02 GMT) Full text and rfc822 format available.

Message #44 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 50775 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sat, 25 Sep 2021 22:45:28 +0300
> From: Juri Linkov <juri <at> linkov.net>
> Cc: jidanni <at> jidanni.org,  50775 <at> debbugs.gnu.org
> Date: Sat, 25 Sep 2021 21:57:44 +0300
> 
> > That said, I have no problem with the proposed patch, since I don't
> > think this message should happen in any reasonable use nowadays.
> 
> I'm seeing these errors with hunspell.  Maybe it's possible to configure it
> to avoid errors about wrong encodings, I don't know.

You mean, your dictionary isn't in UTF-8?

Or maybe you have a buggy Hunspell, which counts bytes instead of
characters?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sat, 25 Sep 2021 19:49:02 GMT) Full text and rfc822 format available.

Message #47 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 50775 <at> debbugs.gnu.org, larsi <at> gnus.org, jidanni <at> jidanni.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sat, 25 Sep 2021 22:48:04 +0300
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Sat, 25 Sep 2021 12:38:10 -0700
> Cc: larsi <at> gnus.org, 50775 <at> debbugs.gnu.org, jidanni <at> jidanni.org
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > We've been having that for eons, so changing the default now should
> > only be done if we have a very good reason.  You have a customizable
> > variable now, so why not change the value for your convenience?
> >
> > Let's not let the tail wag the dog: it's a minor issue, no need to
> > turn the world around each time we add some minor convenience.
> 
> [ Removing a timeout for a message does not exactly amount to "turning
>   the world around"... ]

It does, for those who are accustomed to the message go away.

> We don't avoid fixing minor issues just because they are old, do we?

We don't.  But there's no issue here.

> That said, the other alternative I proposed was increasing the timeout
> to 10 seconds to give the user enough time to read it.

You are free to increase it for your own use.  And so is jidanni.  But
I see no reason to do that for everyone.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sun, 26 Sep 2021 06:32:03 GMT) Full text and rfc822 format available.

Message #50 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 50775 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, larsi <at> gnus.org
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sun, 26 Sep 2021 14:30:52 +0800
Slower thinkers need longer timeouts.
Faster thinkers know how to customize defaults.
So longer default timeouts win!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Sun, 26 Sep 2021 07:00:02 GMT) Full text and rfc822 format available.

Message #53 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 50775 <at> debbugs.gnu.org, larsi <at> gnus.org, stefan <at> marxist.se
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Sun, 26 Sep 2021 09:59:21 +0300
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  larsi <at> gnus.org,  50775 <at> debbugs.gnu.org
> Date: Sun, 26 Sep 2021 14:30:52 +0800
> 
> Slower thinkers need longer timeouts.
> Faster thinkers know how to customize defaults.
> So longer default timeouts win!

Not if slower thinkers also know how to customize.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50775; Package emacs. (Wed, 29 Sep 2021 11:34:01 GMT) Full text and rfc822 format available.

Message #56 received at 50775 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 50775 <at> debbugs.gnu.org, larsi <at> gnus.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#50775: ispell help message times out before most people can
 read it
Date: Wed, 29 Sep 2021 04:32:57 -0700
tags 50775 fixed
close 50775 28.1
thanks

Eli Zaretskii <eliz <at> gnu.org> writes:

>> Slower thinkers need longer timeouts.
>> Faster thinkers know how to customize defaults.
>> So longer default timeouts win!
>
> Not if slower thinkers also know how to customize.

;-)

I think we are satisfied with the outcome here, and I'm consequently
closing this bug.




Added tag(s) fixed. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 29 Sep 2021 11:34:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 50775 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 29 Sep 2021 11:34:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 28 Oct 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 174 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.