diff options
| author | Richard M. Stallman | 1998-06-09 02:52:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-06-09 02:52:12 +0000 |
| commit | cb60918c9c57409b91ae2d5b42eb67d51957da77 (patch) | |
| tree | 3e128718c68d8f530fc2df1bccb220e5b24b4106 | |
| parent | ddd64da9df7d21ebf7c9328b6338c0102c189966 (diff) | |
| download | emacs-cb60918c9c57409b91ae2d5b42eb67d51957da77.tar.gz emacs-cb60918c9c57409b91ae2d5b42eb67d51957da77.zip | |
(grep-null-device): Variable deleted.
(grep-command, grep-find-use-xargs): Use null-device.
(grep, grep-find): Use null-device.
| -rw-r--r-- | lisp/progmodes/compile.el | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 6929e92708b..8ac326dee46 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -370,16 +370,13 @@ Otherwise, it saves all modified buffers without asking." | |||
| 370 | '(("\\([a-zA-Z]?:?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)) | 370 | '(("\\([a-zA-Z]?:?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)) |
| 371 | "Regexp used to match grep hits. See `compilation-error-regexp-alist'.") | 371 | "Regexp used to match grep hits. See `compilation-error-regexp-alist'.") |
| 372 | 372 | ||
| 373 | ;; The system null device. (Should reference NULL_DEVICE from C.) | ||
| 374 | (defvar grep-null-device "/dev/null" "The system null device.") | ||
| 375 | |||
| 376 | (defvar grep-program | 373 | (defvar grep-program |
| 377 | ;; Currently zgrep has trouble. It runs egrep instead of grep, | 374 | ;; Currently zgrep has trouble. It runs egrep instead of grep, |
| 378 | ;; and it doesn't pass along long options right. | 375 | ;; and it doesn't pass along long options right. |
| 379 | "grep" | 376 | "grep" |
| 380 | ;;; (if (equal (condition-case nil ; in case "zgrep" isn't in exec-path | 377 | ;;; (if (equal (condition-case nil ; in case "zgrep" isn't in exec-path |
| 381 | ;;; (call-process "zgrep" nil nil nil | 378 | ;;; (call-process "zgrep" nil nil nil |
| 382 | ;;; "foo" grep-null-device) | 379 | ;;; "foo" null-device) |
| 383 | ;;; (error nil)) | 380 | ;;; (error nil)) |
| 384 | ;;; 1) | 381 | ;;; 1) |
| 385 | ;;; "zgrep" | 382 | ;;; "zgrep" |
| @@ -391,7 +388,7 @@ Otherwise, it saves all modified buffers without asking." | |||
| 391 | (defvar grep-command | 388 | (defvar grep-command |
| 392 | (if (equal (condition-case nil ; in case "grep" isn't in exec-path | 389 | (if (equal (condition-case nil ; in case "grep" isn't in exec-path |
| 393 | (call-process grep-program nil nil nil | 390 | (call-process grep-program nil nil nil |
| 394 | "-e" "foo" grep-null-device) | 391 | "-e" "foo" null-device) |
| 395 | (error nil)) | 392 | (error nil)) |
| 396 | 1) | 393 | 1) |
| 397 | (format "%s -n -e " grep-program) | 394 | (format "%s -n -e " grep-program) |
| @@ -400,7 +397,7 @@ Otherwise, it saves all modified buffers without asking." | |||
| 400 | 397 | ||
| 401 | (defvar grep-find-use-xargs | 398 | (defvar grep-find-use-xargs |
| 402 | (if (equal (call-process "find" nil nil nil | 399 | (if (equal (call-process "find" nil nil nil |
| 403 | grep-null-device "-print0") | 400 | null-device "-print0") |
| 404 | 0) | 401 | 0) |
| 405 | 'gnu) | 402 | 'gnu) |
| 406 | "Whether \\[grep-find] uses the `xargs' utility by default. | 403 | "Whether \\[grep-find] uses the `xargs' utility by default. |
| @@ -580,8 +577,8 @@ if that history list is empty)." | |||
| 580 | ;; Setting process-setup-function makes exit-message-function work | 577 | ;; Setting process-setup-function makes exit-message-function work |
| 581 | ;; even when async processes aren't supported. | 578 | ;; even when async processes aren't supported. |
| 582 | (let* ((compilation-process-setup-function 'grep-process-setup) | 579 | (let* ((compilation-process-setup-function 'grep-process-setup) |
| 583 | (buf (compile-internal (if grep-null-device | 580 | (buf (compile-internal (if null-device |
| 584 | (concat command-args " " grep-null-device) | 581 | (concat command-args " " null-device) |
| 585 | command-args) | 582 | command-args) |
| 586 | "No more grep hits" "grep" | 583 | "No more grep hits" "grep" |
| 587 | ;; Give it a simpler regexp to match. | 584 | ;; Give it a simpler regexp to match. |
| @@ -616,7 +613,7 @@ easily repeat a find command." | |||
| 616 | (interactive | 613 | (interactive |
| 617 | (list (read-from-minibuffer "Run find (like this): " | 614 | (list (read-from-minibuffer "Run find (like this): " |
| 618 | grep-find-command nil nil 'grep-find-history))) | 615 | grep-find-command nil nil 'grep-find-history))) |
| 619 | (let ((grep-null-device nil)) ; see grep | 616 | (let ((null-device nil)) ; see grep |
| 620 | (grep command-args))) | 617 | (grep command-args))) |
| 621 | 618 | ||
| 622 | (defcustom compilation-scroll-output nil | 619 | (defcustom compilation-scroll-output nil |