From 6ef3fdfb94901865e15f4666a439b9069e2d94a1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 16 Dec 2000 15:13:31 +0000 Subject: [PATCH] (check-ispell-version): If `ispell-program-name' is "aspell", pass it the -v switch instead of -vv. --- lisp/textmodes/ispell.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index c631175e61e..f3cb28da3e7 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -729,7 +729,15 @@ Otherwise returns the library path if defined." (save-excursion (set-buffer (get-buffer-create " *ispell-tmp*")) (erase-buffer) - (setq status (call-process ispell-program-name nil t nil "-vv")) + (setq status (call-process + ispell-program-name nil t nil + ;; aspell doesn't accept the -vv switch. + (let ((case-fold-search + (memq system-type '(ms-dos windows-nt))) + (speller + (file-name-nondirectory ispell-program-name))) + ;; Assume anything that isn't `aspell' is Ispell. + (if (string-match "\\`aspell" speller) "-v" "-vv")))) (goto-char (point-min)) (if interactivep (progn -- 2.39.2