From: sunway <sunwayforever@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: M-x compile problem under tramp
Date: Tue, 13 May 2008 06:43:08 -0700 (PDT) [thread overview]
Message-ID: <07284b91-5cda-4609-8580-fc1be9629bf3@u6g2000prc.googlegroups.com> (raw)
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?
next reply other threads:[~2008-05-13 13:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 13:43 sunway [this message]
2008-05-13 21:24 ` M-x compile problem under tramp 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=07284b91-5cda-4609-8580-fc1be9629bf3@u6g2000prc.googlegroups.com \
--to=sunwayforever@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.