Dave Abrahams <[email protected]> writes:

> on Sun Dec 16 2012, Michael Albinus <michael.albinus-AT-gmx.de> wrote:
>
>> Maybe it is due to the very long command line? What happens, if you send
>> the command in the Emacs shell as (several lines)
>
> It works fine.

Then what about the following patch:

--8<---------------cut here---------------start------------->8---
albinmic@uw001237:~/src/emacs$ bzr diff --diff-options=-c lisp/progmodes/grep.el
=== modified file 'lisp/progmodes/grep.el'
*** lisp/progmodes/grep.el      2012-11-30 07:37:23 +0000
--- lisp/progmodes/grep.el      2012-12-17 13:26:14 +0000
***************
*** 999,1005 ****
                              " " find-name-arg " "
                              (mapconcat #'shell-quote-argument
                                         (split-string files)
!                                        (concat " -o " find-name-arg " "))
                              " "
                              (shell-quote-argument ")"))
                      dir
--- 999,1005 ----
                              " " find-name-arg " "
                              (mapconcat #'shell-quote-argument
                                         (split-string files)
!                                        (concat " \\\n" " -o " find-name-arg " 
"))
                              " "
                              (shell-quote-argument ")"))
                      dir
***************
*** 1020,1026 ****
                                                      (concat "*/"
                                                              (cdr ignore)))))))
                                     grep-find-ignored-directories
!                                    " -o -path ")
                                    " "
                                    (shell-quote-argument ")")
                                    " -prune -o "))
--- 1020,1026 ----
                                                      (concat "*/"
                                                              (cdr ignore)))))))
                                     grep-find-ignored-directories
!                                    " \\\n -o -path ")
                                    " "
                                    (shell-quote-argument ")")
                                    " -prune -o "))
***************
*** 1038,1044 ****
                                                     (shell-quote-argument
                                                      (cdr ignore))))))
                                     grep-find-ignored-files
!                                    " -o -name ")
                                    " "
                                    (shell-quote-argument ")")
                                    " -prune -o "))))))
--- 1038,1044 ----
                                                     (shell-quote-argument
                                                      (cdr ignore))))))
                                     grep-find-ignored-files
!                                    " \\\n -o -name ")
                                    " "
                                    (shell-quote-argument ")")
                                    " -prune -o "))))))

--8<---------------cut here---------------end--------------->8---

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to