diff options
author | Reuben Thomas <rrt@sc3d.org> | 2020-11-02 21:41:05 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2020-11-03 16:56:34 +0000 |
commit | 640b41cd9b7e1196eea51a5664a3756916e37715 (patch) | |
tree | ffb7b15eb8b991c729ea279a5dec2a4e8f9bde09 /lisp | |
parent | 84f74136d374421d3eb6a71a2e248e2b369cddbe (diff) | |
download | emacs-640b41cd9b7e1196eea51a5664a3756916e37715.tar.gz emacs-640b41cd9b7e1196eea51a5664a3756916e37715.tar.bz2 emacs-640b41cd9b7e1196eea51a5664a3756916e37715.zip |
Simplify ispell-check-version’s use of -vv flag
* lisp/textmodes/ispell.el (ispell-check-version): All supported spell
checker programs accept -vv, including aspell for many years, so use
it.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/textmodes/ispell.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index da518b10749..60415b02b8b 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -684,13 +684,11 @@ Otherwise returns the library directory name, if that is defined." (with-temp-buffer (setq status (ispell-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")))) + "-vv"))) (goto-char (point-min)) (if interactivep ;; Report version information of ispell |