tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (2.2.6-pre); remote rgrep doesn't work for me


From: Michael Albinus
Subject: Re: tramp (2.2.6-pre); remote rgrep doesn't work for me
Date: Mon, 17 Dec 2012 21:13:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Dave Abrahams <address@hidden> writes:

>> Then what about the following patch:
>
> Well, technically it works, but it leaves the grep buffer looking as
> below.  Maybe it would be better to break each line at whitespace
> after 80-120 characters.

That would be hairy. Instead, I would prefer to filter the " \<NL>"
strings out of the displayed command. Like this:

--8<---------------cut here---------------start------------->8---
detlef:~/src/emacs> bzr diff --diff-options=-c lisp/progmodes/compile.el
=== modified file 'lisp/progmodes/compile.el'
*** lisp/progmodes/compile.el   2012-10-23 19:07:44 +0000
--- lisp/progmodes/compile.el   2012-12-17 20:08:08 +0000
***************
*** 1611,1617 ****
                (format "%s started at %s\n\n"
                        mode-name
                        (substring (current-time-string) 0 19))
!               command "\n")
        (setq thisdir default-directory))
        (set-buffer-modified-p nil))
      ;; Pop up the compilation buffer.
--- 1611,1618 ----
                (format "%s started at %s\n\n"
                        mode-name
                        (substring (current-time-string) 0 19))
!               (apply 'concat (split-string command (regexp-quote " \\\n") t))
!               "\n")
        (setq thisdir default-directory))
        (set-buffer-modified-p nil))
      ;; Pop up the compilation buffer.
--8<---------------cut here---------------end--------------->8---

Does it work for you?

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]