emacs/emacs-spellchecker.patch

24 lines
848 B
Diff
Raw Normal View History

2020-03-16 20:32:15 +08:00
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
2023-02-02 11:22:51 +00:00
index 0a3a49d868..b6c0975857 100644
2020-03-16 20:32:15 +08:00
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
2023-02-02 11:22:51 +00:00
@@ -191,12 +191,12 @@ Must be greater than 1."
:type 'integer)
2020-03-16 20:32:15 +08:00
(defcustom ispell-program-name
- (or (executable-find "aspell")
2023-02-02 11:22:51 +00:00
- (executable-find "ispell")
+ ;; Enchant is commonly installed as `enchant-2', so use this
+ ;; name and avoid old versions of `enchant'.
+ (or (executable-find "enchant-2")
(executable-find "hunspell")
- ;; Enchant is commonly installed as `enchant-2', so use this
- ;; name and avoid old versions of `enchant'.
- (executable-find "enchant-2")
2020-03-16 20:32:15 +08:00
+ (executable-find "aspell")
2023-02-02 11:22:51 +00:00
+ (executable-find "ispell")
2020-03-16 20:32:15 +08:00
"ispell")
"Program invoked by \\[ispell-word] and \\[ispell-region] commands."
:type 'string
2023-02-02 11:22:51 +00:00