aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-10-07 22:48:47 +0000
committerRichard M. Stallman2002-10-07 22:48:47 +0000
commit543335974da5e0c4cb716bf98541c61b2847c9e5 (patch)
tree2afde256c86a9d820a3ef0e8b2c01884892e8d37
parent0408f074b0f6c25b894cffbffe929786cdc983e8 (diff)
downloademacs-543335974da5e0c4cb716bf98541c61b2847c9e5.tar.gz
emacs-543335974da5e0c4cb716bf98541c61b2847c9e5.zip
(grep-compute-defaults): Set the standard-value
properties of the variables being initialized.
-rw-r--r--lisp/progmodes/compile.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 8ef974b5b1f..a722ae62484 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -100,7 +100,8 @@ will be parsed and highlighted as soon as you try to move to them."
100 (error nil)) 100 (error nil))
101 1) 101 1)
102 (format "%s %s -e " grep-program required-options) 102 (format "%s %s -e " grep-program required-options)
103 (format "%s %s " grep-program required-options))))) 103 (format "%s %s " grep-program required-options))))
104 (put 'grep-command 'standard-value (list (custom-quote grep-command))))
104 (unless grep-find-use-xargs 105 (unless grep-find-use-xargs
105 (setq grep-find-use-xargs 106 (setq grep-find-use-xargs
106 (if (and 107 (if (and
@@ -110,7 +111,9 @@ will be parsed and highlighted as soon as you try to move to them."
110 (equal (call-process "xargs" nil nil nil 111 (equal (call-process "xargs" nil nil nil
111 "-0" "-e" "echo") 112 "-0" "-e" "echo")
112 0)) 113 0))
113 'gnu))) 114 'gnu))
115 (put 'grep-find-use-xargs 'standard-value
116 (list (custom-quote grep-find-use-xargs))))
114 (unless grep-find-command 117 (unless grep-find-command
115 (setq grep-find-command 118 (setq grep-find-command
116 (cond ((eq grep-find-use-xargs 'gnu) 119 (cond ((eq grep-find-use-xargs 'gnu)
@@ -121,7 +124,9 @@ will be parsed and highlighted as soon as you try to move to them."
121 find-program grep-command)) 124 find-program grep-command))
122 (t (cons (format "%s . -type f -exec %s {} %s \\;" 125 (t (cons (format "%s . -type f -exec %s {} %s \\;"
123 find-program grep-command null-device) 126 find-program grep-command null-device)
124 (+ 22 (length grep-command))))))) 127 (+ 22 (length grep-command))))))
128 (put 'grep-find-command 'standard-value
129 (list (custom-quote grep-find-command))))
125 (unless grep-tree-command 130 (unless grep-tree-command
126 (setq grep-tree-command 131 (setq grep-tree-command
127 (let* ((glen (length grep-program)) 132 (let* ((glen (length grep-program))
@@ -133,7 +138,9 @@ will be parsed and highlighted as soon as you try to move to them."
133 (format "%s <D> <X> -type f <F> -print | xargs %s <R>" 138 (format "%s <D> <X> -type f <F> -print | xargs %s <R>"
134 find-program gcmd)) 139 find-program gcmd))
135 (t (format "%s <D> <X> -type f <F> -exec %s <R> {} %s \\;" 140 (t (format "%s <D> <X> -type f <F> -exec %s <R> {} %s \\;"
136 find-program gcmd null-device))))))) 141 find-program gcmd null-device)))))
142 (put 'grep-tree-command 'standard-value
143 (list (custom-quote grep-tree-command)))))
137 144
138(defcustom grep-command nil 145(defcustom grep-command nil
139 "The default grep command for \\[grep]. 146 "The default grep command for \\[grep].