|
From: | Phil Sainty |
Subject: | Re: "Can't find Hunspell dictionary" error (was Re: Emacs pretest 28.0.91 is out) |
Date: | Fri, 14 Jan 2022 22:06:47 +1300 |
User-agent: | Orcon Webmail |
On 2022-01-14 20:12, Eli Zaretskii wrote:
IOW, when you say "I wouldn't expect an absence of dictionaries to cause those functions to fail", what do you expect from spell-checking commands to do instead, when there are no dictionaries available to them, except fail?
`ispell-valid-dictionary-list' isn't a spell-checking function per se,
though -- it's a helper function for establishing which dictionaries are available for use *by* a spell-checking command. If a command to actually check some spelling was invoked and there were no dictionaries, then it would be fair to signal an error, but this error is happening when merely asking for a list of dictionaries, and an empty list is a valid list. If there are no valid dictionaries, `ispell-valid-dictionary-list' should simply return an empty list. IIUC this is only happening if hunspell is the spell checker, so I think this should be considered a bug in the code for handling hunspell.
[Prev in Thread] | Current Thread | [Next in Thread] |