diff options
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 13 |
3 files changed, 22 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5ad40f5b15..342308c335d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2012-12-20 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * progmodes/grep.el (rgrep): Escape command line. Sometimes, it | ||
| 4 | is too long for Tramp. See discussion in | ||
| 5 | <http://thread.gmane.org/gmane.emacs.tramp/8233/focus=8244>. | ||
| 6 | |||
| 7 | * progmodes/compile.el (compilation-start): Remove line escape | ||
| 8 | template. | ||
| 9 | |||
| 1 | 2012-12-20 Dmitry Antipov <dmantipov@yandex.ru> | 10 | 2012-12-20 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 11 | ||
| 3 | * vc/ediff-ptch.el (ediff-map-patch-buffer): Use `point-min-marker'. | 12 | * vc/ediff-ptch.el (ediff-map-patch-buffer): Use `point-min-marker'. |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 06525b354b1..1b70402004c 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1611,7 +1611,11 @@ Returns the compilation buffer created." | |||
| 1611 | (format "%s started at %s\n\n" | 1611 | (format "%s started at %s\n\n" |
| 1612 | mode-name | 1612 | mode-name |
| 1613 | (substring (current-time-string) 0 19)) | 1613 | (substring (current-time-string) 0 19)) |
| 1614 | command "\n") | 1614 | ;; The command could be split into several lines, see |
| 1615 | ;; `rgrep' for example. We want to display it as one | ||
| 1616 | ;; line. | ||
| 1617 | (apply 'concat (split-string command (regexp-quote "\\\n") t)) | ||
| 1618 | "\n") | ||
| 1615 | (setq thisdir default-directory)) | 1619 | (setq thisdir default-directory)) |
| 1616 | (set-buffer-modified-p nil)) | 1620 | (set-buffer-modified-p nil)) |
| 1617 | ;; Pop up the compilation buffer. | 1621 | ;; Pop up the compilation buffer. |
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index b448b7b3032..721c125a57b 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -992,14 +992,17 @@ to specify a command to run." | |||
| 992 | (compilation-start regexp 'grep-mode)) | 992 | (compilation-start regexp 'grep-mode)) |
| 993 | (setq dir (file-name-as-directory (expand-file-name dir))) | 993 | (setq dir (file-name-as-directory (expand-file-name dir))) |
| 994 | (require 'find-dired) ; for `find-name-arg' | 994 | (require 'find-dired) ; for `find-name-arg' |
| 995 | ;; In Tramp, there could be problems if the command line is too | ||
| 996 | ;; long. We escape it, therefore. | ||
| 995 | (let ((command (grep-expand-template | 997 | (let ((command (grep-expand-template |
| 996 | grep-find-template | 998 | grep-find-template |
| 997 | regexp | 999 | regexp |
| 998 | (concat (shell-quote-argument "(") | 1000 | (concat (shell-quote-argument "(") |
| 999 | " " find-name-arg " " | 1001 | " " find-name-arg " " |
| 1000 | (mapconcat #'shell-quote-argument | 1002 | (mapconcat |
| 1001 | (split-string files) | 1003 | #'shell-quote-argument |
| 1002 | (concat " -o " find-name-arg " ")) | 1004 | (split-string files) |
| 1005 | (concat "\\\n" " -o " find-name-arg " ")) | ||
| 1003 | " " | 1006 | " " |
| 1004 | (shell-quote-argument ")")) | 1007 | (shell-quote-argument ")")) |
| 1005 | dir | 1008 | dir |
| @@ -1020,7 +1023,7 @@ to specify a command to run." | |||
| 1020 | (concat "*/" | 1023 | (concat "*/" |
| 1021 | (cdr ignore))))))) | 1024 | (cdr ignore))))))) |
| 1022 | grep-find-ignored-directories | 1025 | grep-find-ignored-directories |
| 1023 | " -o -path ") | 1026 | "\\\n -o -path ") |
| 1024 | " " | 1027 | " " |
| 1025 | (shell-quote-argument ")") | 1028 | (shell-quote-argument ")") |
| 1026 | " -prune -o ")) | 1029 | " -prune -o ")) |
| @@ -1038,7 +1041,7 @@ to specify a command to run." | |||
| 1038 | (shell-quote-argument | 1041 | (shell-quote-argument |
| 1039 | (cdr ignore)))))) | 1042 | (cdr ignore)))))) |
| 1040 | grep-find-ignored-files | 1043 | grep-find-ignored-files |
| 1041 | " -o -name ") | 1044 | "\\\n -o -name ") |
| 1042 | " " | 1045 | " " |
| 1043 | (shell-quote-argument ")") | 1046 | (shell-quote-argument ")") |
| 1044 | " -prune -o ")))))) | 1047 | " -prune -o ")))))) |