aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2007-12-29 12:41:44 +0000
committerEli Zaretskii2007-12-29 12:41:44 +0000
commit6a314a29a4802be2655c756cbbd8edfdb0dda89e (patch)
tree7ede68bb47c80d25b2759c27bbb898bfdbcb906d
parent1bb9cd964636f4eaa02b2f182aeb375cf41b05f2 (diff)
downloademacs-6a314a29a4802be2655c756cbbd8edfdb0dda89e.tar.gz
emacs-6a314a29a4802be2655c756cbbd8edfdb0dda89e.zip
(ispell-grep-command): Use "grep" on MS-Windows and MS-DOS.
(ispell-grep-options): Use "-Ei" on MS-Windows and MS-DOS.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/textmodes/ispell.el9
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a2054ecbf0f..f8c6a930715 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-12-29 Eli Zaretskii <eliz@gnu.org>
2
3 * textmodes/ispell.el (ispell-grep-command): Use "grep" on
4 MS-Windows and MS-DOS.
5 (ispell-grep-options): Use "-Ei" on MS-Windows and MS-DOS.
6
12007-12-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 72007-12-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 8
3 * progmodes/grep.el (rgrep): Fix last change. 9 * progmodes/grep.el (rgrep): Fix last change.
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 3d6a17c5d93..c784960f972 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -349,12 +349,17 @@ Always stores Fcc copy of message when nil."
349 :group 'ispell) 349 :group 'ispell)
350 350
351 351
352(defcustom ispell-grep-command "egrep" 352(defcustom ispell-grep-command
353 ;; MS-Windows/MS-DOS have `egrep' as a Unix shell script, so they
354 ;; cannot invoke it. Use "grep -E" instead (see ispell-grep-options
355 ;; below).
356 (if (memq system-type '(windows-nt ms-dos)) "grep" "egrep")
353 "Name of the grep command for search processes." 357 "Name of the grep command for search processes."
354 :type 'string 358 :type 'string
355 :group 'ispell) 359 :group 'ispell)
356 360
357(defcustom ispell-grep-options "-i" 361(defcustom ispell-grep-options
362 (if (memq system-type '(windows-nt ms-dos)) "-Ei" "-i")
358 "String of options to use when running the program in `ispell-grep-command'. 363 "String of options to use when running the program in `ispell-grep-command'.
359Should probably be \"-i\" or \"-e\". 364Should probably be \"-i\" or \"-e\".
360Some machines (like the NeXT) don't support \"-i\"" 365Some machines (like the NeXT) don't support \"-i\""