From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Order of associations in compilation-error-regexp-alist-alist Date: Mon, 24 Sep 2012 15:00:58 +0800 Message-ID: <87zk4f3nx1.fsf@gnu.org> References: <83a9wgj5nf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348470081 25004 80.91.229.3 (24 Sep 2012 07:01:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2012 07:01:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 24 09:01:26 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TG2fT-0007qt-KW for ged-emacs-devel@m.gmane.org; Mon, 24 Sep 2012 09:01:23 +0200 Original-Received: from localhost ([::1]:48191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TG2fO-0000Ru-Qo for ged-emacs-devel@m.gmane.org; Mon, 24 Sep 2012 03:01:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TG2fI-0000RG-F2 for emacs-devel@gnu.org; Mon, 24 Sep 2012 03:01:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TG2fB-0006pX-HE for emacs-devel@gnu.org; Mon, 24 Sep 2012 03:01:12 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:49479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TG2fB-0006pH-8e; Mon, 24 Sep 2012 03:01:05 -0400 Original-Received: by pbbro12 with SMTP id ro12so12988934pbb.0 for ; Mon, 24 Sep 2012 00:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=hHZ2SWWcRqyBqaGrfuM3YNoYETbfEgN4u07x0/bYCEw=; b=GDr7OdPcyP0nkLJAFG6D0ZCzWfCMWwKK8Kd4Cu2xt8lH+12eBtCtOS0kmYhcVf6xPT CHPztoyxV/GoDWvr0EDF1OU6Xq3PVkPqt17EAZVFmw0mWZwGGUBaM1Cf+XEcFbcp61ne p99ZBtaaE1xMCr7WgdIInKggVGkXIMK+hjxGQoJRm8U+fo626/oh3pth/zID3OdZZ6UJ w2rOIzhejcYiCsEjkZIwStl8kkcpksFlY2jM/nU+HE0duX+12LXWApnJgNrvOwZ+vCH4 9Ooc7qqYT0oDUKgnXTBi0KphOAWXHN5cAFkm7umNUnbDAen2BSv+jlis1zO8at709KzY DrOg== Original-Received: by 10.66.76.231 with SMTP id n7mr30160655paw.68.1348470064146; Mon, 24 Sep 2012 00:01:04 -0700 (PDT) Original-Received: from ulysses ([155.69.17.99]) by mx.google.com with ESMTPS id tw5sm9196364pbc.48.2012.09.24.00.01.01 (version=SSLv3 cipher=OTHER); Mon, 24 Sep 2012 00:01:03 -0700 (PDT) In-Reply-To: <83a9wgj5nf.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 24 Sep 2012 08:28:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153506 Archived-At: Eli Zaretskii writes: > This means that if an error message matches more than one regexp > there, the first one wins. Yep, and that's the way it's worked for ages. > If the latter, how do we make sure only the correct regexp matches? By cunning choice of ordering in compilation-error-regexp-alist. See also test/automated/compile-tests.el, which is a regression test for precisely this issue, and etc/compilation.txt for a non-ERT version.