1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(ispell-grep-command): Use "grep" on MS-Windows and MS-DOS.

(ispell-grep-options): Use "-Ei" on MS-Windows and MS-DOS.
This commit is contained in:
Eli Zaretskii 2007-12-29 12:41:44 +00:00
parent 1bb9cd9646
commit 6a314a29a4
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2007-12-29 Eli Zaretskii <eliz@gnu.org>
* textmodes/ispell.el (ispell-grep-command): Use "grep" on
MS-Windows and MS-DOS.
(ispell-grep-options): Use "-Ei" on MS-Windows and MS-DOS.
2007-12-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* progmodes/grep.el (rgrep): Fix last change.

View file

@ -349,12 +349,17 @@ Always stores Fcc copy of message when nil."
: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\""