From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sunway Newsgroups: gmane.emacs.help Subject: M-x compile problem under tramp Date: Tue, 13 May 2008 06:43:08 -0700 (PDT) Organization: http://groups.google.com Message-ID: <07284b91-5cda-4609-8580-fc1be9629bf3@u6g2000prc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210689730 26419 80.91.229.12 (13 May 2008 14:42:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 May 2008 14:42:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 13 16:42:48 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jvvh2-0007av-GX for geh-help-gnu-emacs@m.gmane.org; Tue, 13 May 2008 16:41:28 +0200 Original-Received: from localhost ([127.0.0.1]:34462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvvgG-000659-Cy for geh-help-gnu-emacs@m.gmane.org; Tue, 13 May 2008 10:40:40 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!u6g2000prc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 123.127.134.57 Original-X-Trace: posting.google.com 1210686188 23117 127.0.0.1 (13 May 2008 13:43:08 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 13 May 2008 13:43:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u6g2000prc.googlegroups.com; posting-host=123.127.134.57; posting-account=ngAdqwoAAAA0uK1OfC15kE5UvDiCOvxy User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.27 (X11; Linux i686; U; zh-cn),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 localhost.localdomain:8080 (squid/2.6.STABLE18) Original-Xref: news.stanford.edu gnu.emacs.help:158593 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53961 Archived-At: 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?