Call enchant-lsmod correctly when Enchant is installed with a suffix
* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Cope with a
version suffix on the binary name, so enchant-2 is converted to
enchant-lsmod-2, not enchant-2-lsmod. (Bug#31761)
(cherry picked from commit a402d9aacb
)
This commit is contained in:
parent
3434edc731
commit
4c3fae3cf2
1 changed files with 3 additions and 2 deletions
|
@ -1202,8 +1202,9 @@ Internal use.")
|
|||
(with-output-to-string
|
||||
(with-current-buffer
|
||||
standard-output
|
||||
(apply 'ispell-call-process
|
||||
(concat ispell-program-name "-lsmod") nil t nil args))))
|
||||
(apply 'ispell-call-process
|
||||
(replace-regexp-in-string "enchant\\(-[0-9]\\)?$" "enchant-lsmod\\1"
|
||||
ispell-program-name) nil t nil args))))
|
||||
|
||||
(defun ispell--get-extra-word-characters (&optional lang)
|
||||
"Get the extra word characters for LANG as a character class.
|
||||
|
|
Loading…
Add table
Reference in a new issue