GNU bug report logs - #46298
28.0.50; Best default for ispell-program-name

Previous Next

Package: emacs;

Reported by: Peter Oliver <p.d.oliver <at> mavit.org.uk>

Date: Thu, 4 Feb 2021 16:04:01 UTC

Severity: normal

Tags: wontfix

Found in version 28.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 46298 in the body.
You can then email your comments to 46298 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#46298; Package emacs. (Thu, 04 Feb 2021 16:04:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Oliver <p.d.oliver <at> mavit.org.uk>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 04 Feb 2021 16:04:01 GMT) Full text and rfc822 format available.

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

From: Peter Oliver <p.d.oliver <at> mavit.org.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Best default for ispell-program-name
Date: Thu, 4 Feb 2021 16:03:15 +0000 (GMT)
[Message part 1 (text/plain, inline)]
The default value of ispell-program-name is decided by looking in turn for the binaries aspell, ispell, hunspell and enchant-2, and using whichever is first found.  Would it make sense to sort these in order of which we believe to be best?

As I understand it, which backend is most accurate varies from language to language.  Assuming the quality of the Emacs integration is equal, I would suggest putting Enchant first on the list rather than last.  Enchant doesnʼt do any spellchecking itself, but instead selects a backend based on a per-language configuration preference, automatically skipping any backends which are not installed or for which dictionaries are not installed in the current language.

I notice that the Red Hat/Fedora packages patch Emacs to put Hunspell first on the list (https://src.fedoraproject.org/rpms/emacs/blob/rawhide/f/emacs-spellchecker.patch).  The rationale for this was that if Aspell was installed but the Aspell dictionaries for a language were not, then ispell-buffer fails (https://bugzilla.redhat.com/show_bug.cgi?id=713600).  If, instead, Enchant was tried first, this kind of tinkering would not be necessary.

-- 
Peter Oliver

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46298; Package emacs. (Thu, 04 Feb 2021 17:30:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Peter Oliver <p.d.oliver <at> mavit.org.uk>
Cc: 46298 <at> debbugs.gnu.org
Subject: Re: bug#46298: 28.0.50; Best default for ispell-program-name
Date: Thu, 04 Feb 2021 19:29:02 +0200
> From: Peter Oliver <p.d.oliver <at> mavit.org.uk>
> Date: Thu, 4 Feb 2021 16:03:15 +0000 (GMT)
> 
> The default value of ispell-program-name is decided by looking in turn for the binaries aspell, ispell, hunspell and enchant-2, and using whichever is first found.  Would it make sense to sort these in order of which we believe to be best?

Not sure we need to change the order.  ispell-program-name is a
defcustom, which means users are invited to set it according to their
preferences.  We cannot pretend we know the preferences of each user.

> As I understand it, which backend is most accurate varies from language to language.  Assuming the quality of the Emacs integration is equal, I would suggest putting Enchant first on the list rather than last.  Enchant doesnʼt do any spellchecking itself, but instead selects a backend based on a per-language configuration preference, automatically skipping any backends which are not installed or for which dictionaries are not installed in the current language.

I have the impression that Enchant is still a new player on this
field, and keeps changing significantly.  Maybe it's good enough in
distros that use the latest versions, but what about people who have
older versions installed?

One more reason not to try to second guess what is best for the users,
I guess.

Does anyone else have an opinion?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46298; Package emacs. (Fri, 05 Feb 2021 09:52:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 46298 <at> debbugs.gnu.org, Peter Oliver <p.d.oliver <at> mavit.org.uk>
Subject: Re: bug#46298: 28.0.50; Best default for ispell-program-name
Date: Fri, 05 Feb 2021 10:50:50 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> I have the impression that Enchant is still a new player on this
> field, and keeps changing significantly.  Maybe it's good enough in
> distros that use the latest versions, but what about people who have
> older versions installed?
>
> One more reason not to try to second guess what is best for the users,
> I guess.
>
> Does anyone else have an opinion?

Enchant does seem to be the more modern solution, so it might make sense
to have Emacs give it priority.  On the other hand, changing the
priority will mean that older users will suddenly start using Enchant
instead of ispell (or whatever), and changes like that are always
painful.

So I don't think it's worth it -- at this point, at least.  If, at some
point Enchant becomes the vastly preferred value, then we can
reevaluate, but my feeling is that that's not currently the case.  So
I'm closing this bug report.

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




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Feb 2021 09:52:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 46298 <at> debbugs.gnu.org and Peter Oliver <p.d.oliver <at> mavit.org.uk> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Feb 2021 09:52:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46298; Package emacs. (Sun, 07 Feb 2021 05:45:01 GMT) Full text and rfc822 format available.

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

From: Richard Stallman <rms <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 46298 <at> debbugs.gnu.org, eliz <at> gnu.org, p.d.oliver <at> mavit.org.uk
Subject: Re: bug#46298: 28.0.50; Best default for ispell-program-name
Date: Sun, 07 Feb 2021 00:44:12 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Enchant does seem to be the more modern solution, so it might make sense
  > to have Emacs give it priority.

It seems to be a front end for various spell checkers including Ispell.
Emacs already knows how to talk with them.
Does Enchant offer any features of its own?

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46298; Package emacs. (Sun, 07 Feb 2021 13:12:02 GMT) Full text and rfc822 format available.

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

From: Peter Oliver <p.d.oliver <at> mavit.org.uk>
To: Richard Stallman <rms <at> gnu.org>
Cc: 46298 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>, eliz <at> gnu.org
Subject: Re: bug#46298: 28.0.50; Best default for ispell-program-name
Date: Sun, 7 Feb 2021 13:11:26 +0000 (GMT)
On Sun, 7 Feb 2021, Richard Stallman wrote:

>  > Enchant does seem to be the more modern solution, so it might make sense
>  > to have Emacs give it priority.
>
> It seems to be a front end for various spell checkers including Ispell.
> Emacs already knows how to talk with them.
> Does Enchant offer any features of its own?

Emacs ispell.el supports only three spell checkers (plus Enchant), whereas Enchant knows how to talk to seven.  My understanding is that general-purpose spell checkers perform particularly badly with some languages, so it would be of particular benefit for languages for which Enchant supports a dedicated checker.

-- 
Peter Oliver




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 08 Mar 2021 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 62 days ago.

Previous Next


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