Nice!  I think you've nailed it!

on Mon Dec 17 2012, Michael Albinus <michael.albinus-AT-gmx.de> wrote:

> Dave Abrahams <[email protected]> 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:
>
> 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.
>
> Does it work for you?
>
> Best regards, Michael.

-- 
Dave Abrahams
BoostPro Computing                  Software Development        Training
http://www.boostpro.com             Clang/LLVM/EDG Compilers  C++  Boost

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

Reply via email to