aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2000-12-16 15:13:31 +0000
committerEli Zaretskii2000-12-16 15:13:31 +0000
commit6ef3fdfb94901865e15f4666a439b9069e2d94a1 (patch)
tree73356c8394a8f2312368cb4f24f8c094cbd9ff72
parentcbbe64893345d1f3442982adf97784a27158b59f (diff)
downloademacs-6ef3fdfb94901865e15f4666a439b9069e2d94a1.tar.gz
emacs-6ef3fdfb94901865e15f4666a439b9069e2d94a1.zip
(check-ispell-version): If
`ispell-program-name' is "aspell", pass it the -v switch instead of -vv.
-rw-r--r--lisp/textmodes/ispell.el10
1 files changed, 9 insertions, 1 deletions
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."
729 (save-excursion 729 (save-excursion
730 (set-buffer (get-buffer-create " *ispell-tmp*")) 730 (set-buffer (get-buffer-create " *ispell-tmp*"))
731 (erase-buffer) 731 (erase-buffer)
732 (setq status (call-process ispell-program-name nil t nil "-vv")) 732 (setq status (call-process
733 ispell-program-name nil t nil
734 ;; aspell doesn't accept the -vv switch.
735 (let ((case-fold-search
736 (memq system-type '(ms-dos windows-nt)))
737 (speller
738 (file-name-nondirectory ispell-program-name)))
739 ;; Assume anything that isn't `aspell' is Ispell.
740 (if (string-match "\\`aspell" speller) "-v" "-vv"))))
733 (goto-char (point-min)) 741 (goto-char (point-min))
734 (if interactivep 742 (if interactivep
735 (progn 743 (progn