]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify ispell-check-version’s use of -vv flag
authorReuben Thomas <rrt@sc3d.org>
Mon, 2 Nov 2020 21:41:05 +0000 (21:41 +0000)
committerReuben Thomas <rrt@sc3d.org>
Tue, 3 Nov 2020 16:56:34 +0000 (16:56 +0000)
* lisp/textmodes/ispell.el (ispell-check-version): All supported spell
checker programs accept -vv, including aspell for many years, so use
it.

lisp/textmodes/ispell.el

index da518b107490973c3184e90a15656d49ab8a85d3..60415b02b8bb824f458191ec827da0f18098be6d 100644 (file)
@@ -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