all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#46298: 28.0.50; Best default for ispell-program-name
@ 2021-02-04 16:03 Peter Oliver
  2021-02-04 17:29 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Oliver @ 2021-02-04 16:03 UTC (permalink / raw)
  To: 46298

[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-07 13:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-04 16:03 bug#46298: 28.0.50; Best default for ispell-program-name Peter Oliver
2021-02-04 17:29 ` Eli Zaretskii
2021-02-05  9:50   ` Lars Ingebrigtsen
2021-02-07  5:44     ` Richard Stallman
2021-02-07 13:11       ` Peter Oliver

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.