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:

--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.

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

Reply via email to