emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/gnus-select 82efded 096/218: Call enchant-lsmod co


From: Andrew G Cohen
Subject: [Emacs-diffs] feature/gnus-select 82efded 096/218: Call enchant-lsmod correctly when Enchant is installed with a suffix
Date: Fri, 14 Dec 2018 03:35:09 -0500 (EST)

branch: feature/gnus-select
commit 82efded284d26bd232636de19f29c93c85b3364a
Author: Reuben Thomas <address@hidden>
Commit: Andrew G Cohen <address@hidden>

    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.
---
 lisp/textmodes/ispell.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 512dfcf..ba98ea5 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1200,8 +1200,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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]