summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/grep.el12
1 files changed, 3 insertions, 9 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 5b0c080de29..46af51e1f97 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -1005,9 +1005,7 @@ to specify a command to run."
(mapconcat
#'shell-quote-argument
(split-string files)
- (concat
- (if (file-remote-p dir) "\\\n")
- " -o " find-name-arg " "))
+ (concat "\\\n" " -o " find-name-arg " "))
" "
(shell-quote-argument ")"))
dir
@@ -1028,9 +1026,7 @@ to specify a command to run."
(concat "*/"
(cdr ignore)))))))
grep-find-ignored-directories
- (if (file-remote-p dir)
- "\\\n -o -path "
- " -o -path "))
+ "\\\n -o -path ")
" "
(shell-quote-argument ")")
" -prune -o "))
@@ -1048,9 +1044,7 @@ to specify a command to run."
(shell-quote-argument
(cdr ignore))))))
grep-find-ignored-files
- (if (file-remote-p dir)
- "\\\n -o -name "
- " -o -name "))
+ "\\\n -o -name ")
" "
(shell-quote-argument ")")
" -prune -o "))))))