From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gamename Newsgroups: gmane.emacs.help Subject: Compile Error Regex Problems Date: Sun, 2 Dec 2007 10:31:31 -0800 (PST) Organization: http://groups.google.com Message-ID: 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 1196620908 15706 80.91.229.12 (2 Dec 2007 18:41:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Dec 2007 18:41:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 02 19:41:54 2007 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 1IytlK-00031s-E5 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Dec 2007 19:41:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iytl4-0001OQ-9O for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Dec 2007 13:41:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i29g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 76.222.192.62 Original-X-Trace: posting.google.com 1196620292 18068 127.0.0.1 (2 Dec 2007 18:31:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 2 Dec 2007 18:31:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i29g2000prf.googlegroups.com; posting-host=76.222.192.62; posting-account=7UkxlwoAAACoABDEFXUvLX1hUNHcpo5L User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11,gzip(gfe),gzip(gfe) Content-Disposition: inline Original-Xref: shelby.stanford.edu gnu.emacs.help:154350 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:49779 Archived-At: Hi Guys, Got a strange problem with a regex for compile mode. On the initial compile it doesn't work (i.e. doesn't highlight lines), but on the *re*compile, it works fine (lines are highlighted). Here is the code in my .emacs: (require 'compile) (setq compilation-search-path '("./" "../../")) (add-to-list 'compilation-error-regexp-alist '("^ +[0-9]+\. \\([^ :]+\\):\\([0-9]+\\) +" 1 2)) (defun fdeunit (command) "fdeunit test run" (interactive (list (read-file-name "FDEUnit (with args): " (buffer-file-name)))) (compile-internal (concat "fdeunit " command) "finished" "FDEUnit Test" nil grep-regexp-alist)) Any ideas? -T