From: Eli Zaretskii Date: Sat, 16 Dec 2000 15:13:31 +0000 (+0000) Subject: (check-ispell-version): If X-Git-Tag: emacs-pretest-21.0.95~465 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ef3fdfb94901865e15f4666a439b9069e2d94a1;p=emacs.git (check-ispell-version): If `ispell-program-name' is "aspell", pass it the -v switch instead of -vv. --- 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