From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: M-x compile problem under tramp Date: Wed, 14 May 2008 10:13:29 +0200 Message-ID: References: <07284b91-5cda-4609-8580-fc1be9629bf3@u6g2000prc.googlegroups.com> <2286d45a-8052-4561-ad3c-6f2f1b860592@l28g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210752781 21807 80.91.229.12 (14 May 2008 08:13:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 May 2008 08:13:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: sunway Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 14 10:13:36 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 1JwC7C-0002MH-MO for geh-help-gnu-emacs@m.gmane.org; Wed, 14 May 2008 10:13:34 +0200 Original-Received: from localhost ([127.0.0.1]:51760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwC6T-00016g-ES for geh-help-gnu-emacs@m.gmane.org; Wed, 14 May 2008 04:12:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwC65-00012i-Fs for help-gnu-emacs@gnu.org; Wed, 14 May 2008 04:12:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwC5x-0000tN-Il for help-gnu-emacs@gnu.org; Wed, 14 May 2008 04:12:22 -0400 Original-Received: from [199.232.76.173] (port=40742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwC5w-0000su-Mf for help-gnu-emacs@gnu.org; Wed, 14 May 2008 04:12:16 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]:58425) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JwC5v-0006db-Ic for help-gnu-emacs@gnu.org; Wed, 14 May 2008 04:12:15 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m4E8C9O7010601; Wed, 14 May 2008 10:12:09 +0200 In-Reply-To: <2286d45a-8052-4561-ad3c-6f2f1b860592@l28g2000prd.googlegroups.com> (sunwayforever@gmail.com's message of "Tue, 13 May 2008 20:09:02 -0700 (PDT)") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 2) 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:53982 Archived-At: sunway writes: > Compilation started at Wed May 14 11:07:42 > > make -k || echo Compilation exited abnormally with code $? > g++ -g -I./occi/occi_header -I./matlab/include -DDEBUG -c -o data.o > data.cpp > data.cpp:13: error: `ata_sniffer' has not been declared > data.cpp:13: error: expected `)' before '*' token > make: *** [data.o] Error 1 > make: Target `all' not remade because of errors. > Compilation exited abnormally with code 2 > > ///618cabfa20e529686c9b6e0b5a405636 > > exit > Connection to matlab closed. > exit > > Compilation finished at Wed May 14 11:07:45 Of course, you must also change your `compilation-finish-function'. STR is still the success message of the process. Instead of, you might check the buffer for the error message, like this (untested): (setq compilation-finish-function (lambda (buf str) (save-excursion (with-current-buffer buf (goto-char (point-min)) (if (re-search-forward "exited abnormally" nil t) (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!")))))) Best regards, Michael.