all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* M-x compile problem  under tramp
@ 2008-05-13 13:43 sunway
  2008-05-13 21:24 ` Michael Albinus
       [not found] ` <mailman.11565.1210713878.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: sunway @ 2008-05-13 13:43 UTC (permalink / raw)
  To: help-gnu-emacs

I have been using this elisp code:

(setq compilation-finish-function
      (lambda (buf str)
        (if (string-match "exited abnormally" str)
            (message "compilation errors, press C-x ` to visit")
          ;;no errors, make the compilation window go away in 0.5
seconds
          (run-at-time 0.5 nil 'delete-windows-on buf)
          (message "NO COMPILATION ERRORS!"))))

to close the Compilation buffer when there is no compilation error
when compiling.

how ever, when using M-x compile under tramp, the command will always
return "..finished.." instead of "exited abnormally" when there is
compilation error.  so the Compilation buffer will always be closed.
how to fix the problem?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-14  8:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-13 13:43 M-x compile problem under tramp sunway
2008-05-13 21:24 ` Michael Albinus
     [not found] ` <mailman.11565.1210713878.18990.help-gnu-emacs@gnu.org>
2008-05-14  3:09   ` sunway
2008-05-14  8:13     ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.