# HG changeset patch # User Eli Zaretskii # Date 1198931899 0 # Node ID e1264c5f9e2338efb8bac41347d299c58528edcc # Parent 4d283165b713091d0dbc72cfdc6911bdabf8ef93 (ispell-grep-command): Use "grep" on MS-Windows and MS-DOS. (ispell-grep-options): Use "-Ei" on MS-Windows and MS-DOS. diff -r 4d283165b713 -r e1264c5f9e23 lisp/textmodes/ispell.el --- a/lisp/textmodes/ispell.el Fri Dec 28 22:27:01 2007 +0000 +++ b/lisp/textmodes/ispell.el Sat Dec 29 12:38:19 2007 +0000 @@ -349,12 +349,17 @@ :group 'ispell) -(defcustom ispell-grep-command "egrep" +(defcustom ispell-grep-command + ;; MS-Windows/MS-DOS have `egrep' as a Unix shell script, so they + ;; cannot invoke it. Use "grep -E" instead (see ispell-grep-options + ;; below). + (if (memq system-type '(windows-nt ms-dos)) "grep" "egrep") "Name of the grep command for search processes." :type 'string :group 'ispell) -(defcustom ispell-grep-options "-i" +(defcustom ispell-grep-options + (if (memq system-type '(windows-nt ms-dos)) "-Ei" "-i") "String of options to use when running the program in `ispell-grep-command'. Should probably be \"-i\" or \"-e\". Some machines (like the NeXT) don't support \"-i\""