diff options
| author | Michael Albinus | 2013-12-06 16:34:06 +0100 |
|---|---|---|
| committer | Michael Albinus | 2013-12-06 16:34:06 +0100 |
| commit | 4803595dfd00ce07cd09913ee3c5d40a023f3a08 (patch) | |
| tree | 5206084ae7db0df727e0f376536393d287899cc1 /lisp/progmodes | |
| parent | a59d76e05f20a25ecec8fc83834ba03c343ae4a2 (diff) | |
| download | emacs-4803595dfd00ce07cd09913ee3c5d40a023f3a08.tar.gz emacs-4803595dfd00ce07cd09913ee3c5d40a023f3a08.zip | |
Bug#16045
* progmodes/compile.el (compilation-start):
* progmodes/grep.el (rgrep): Revert change of 2012-12-20T11:15:38Z!michael.albinus@gmx.de.
* net/tramp-sh.el (tramp-sh-handle-start-file-process):
Handle long command lines, lasting from "sh -c ...". (Bug#16045)
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/compile.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/grep.el | 8 |
2 files changed, 4 insertions, 10 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 58325b26634..5689be49f61 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1623,11 +1623,7 @@ Returns the compilation buffer created." | |||
| 1623 | (format "%s started at %s\n\n" | 1623 | (format "%s started at %s\n\n" |
| 1624 | mode-name | 1624 | mode-name |
| 1625 | (substring (current-time-string) 0 19)) | 1625 | (substring (current-time-string) 0 19)) |
| 1626 | ;; The command could be split into several lines, see | 1626 | command "\n") |
| 1627 | ;; `rgrep' for example. We want to display it as one | ||
| 1628 | ;; line. | ||
| 1629 | (apply 'concat (split-string command (regexp-quote "\\\n") t)) | ||
| 1630 | "\n") | ||
| 1631 | (setq thisdir default-directory)) | 1627 | (setq thisdir default-directory)) |
| 1632 | (set-buffer-modified-p nil)) | 1628 | (set-buffer-modified-p nil)) |
| 1633 | ;; Pop up the compilation buffer. | 1629 | ;; Pop up the compilation buffer. |
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 46af51e1f97..e63e29df37d 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el | |||
| @@ -995,8 +995,6 @@ to specify a command to run." | |||
| 995 | (compilation-start regexp 'grep-mode)) | 995 | (compilation-start regexp 'grep-mode)) |
| 996 | (setq dir (file-name-as-directory (expand-file-name dir))) | 996 | (setq dir (file-name-as-directory (expand-file-name dir))) |
| 997 | (require 'find-dired) ; for `find-name-arg' | 997 | (require 'find-dired) ; for `find-name-arg' |
| 998 | ;; In Tramp, there could be problems if the command line is too | ||
| 999 | ;; long. We escape it, therefore. | ||
| 1000 | (let ((command (grep-expand-template | 998 | (let ((command (grep-expand-template |
| 1001 | grep-find-template | 999 | grep-find-template |
| 1002 | regexp | 1000 | regexp |
| @@ -1005,7 +1003,7 @@ to specify a command to run." | |||
| 1005 | (mapconcat | 1003 | (mapconcat |
| 1006 | #'shell-quote-argument | 1004 | #'shell-quote-argument |
| 1007 | (split-string files) | 1005 | (split-string files) |
| 1008 | (concat "\\\n" " -o " find-name-arg " ")) | 1006 | (concat " -o " find-name-arg " ")) |
| 1009 | " " | 1007 | " " |
| 1010 | (shell-quote-argument ")")) | 1008 | (shell-quote-argument ")")) |
| 1011 | dir | 1009 | dir |
| @@ -1026,7 +1024,7 @@ to specify a command to run." | |||
| 1026 | (concat "*/" | 1024 | (concat "*/" |
| 1027 | (cdr ignore))))))) | 1025 | (cdr ignore))))))) |
| 1028 | grep-find-ignored-directories | 1026 | grep-find-ignored-directories |
| 1029 | "\\\n -o -path ") | 1027 | " -o -path ") |
| 1030 | " " | 1028 | " " |
| 1031 | (shell-quote-argument ")") | 1029 | (shell-quote-argument ")") |
| 1032 | " -prune -o ")) | 1030 | " -prune -o ")) |
| @@ -1044,7 +1042,7 @@ to specify a command to run." | |||
| 1044 | (shell-quote-argument | 1042 | (shell-quote-argument |
| 1045 | (cdr ignore)))))) | 1043 | (cdr ignore)))))) |
| 1046 | grep-find-ignored-files | 1044 | grep-find-ignored-files |
| 1047 | "\\\n -o -name ") | 1045 | " -o -name ") |
| 1048 | " " | 1046 | " " |
| 1049 | (shell-quote-argument ")") | 1047 | (shell-quote-argument ")") |
| 1050 | " -prune -o ")))))) | 1048 | " -prune -o ")))))) |