# HG changeset patch # User Eli Zaretskii # Date 976979611 0 # Node ID a0dab8c919628b4dab3a9b6d3ad6e362616a3636 # Parent aeb6db8df2b93a2129f2014cfe51dc64fa7fa94c (check-ispell-version): If `ispell-program-name' is "aspell", pass it the -v switch instead of -vv. diff -r aeb6db8df2b9 -r a0dab8c91962 lisp/textmodes/ispell.el --- a/lisp/textmodes/ispell.el Sat Dec 16 01:44:39 2000 +0000 +++ b/lisp/textmodes/ispell.el Sat Dec 16 15:13:31 2000 +0000 @@ -729,7 +729,15 @@ (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