From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.help Subject: Re: Error message not recognized in compilation buffer Date: Fri, 21 Jun 2019 10:38:18 +0100 Message-ID: References: <83r27oyazf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="205702"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: pquessev@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 21 11:39:41 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1heG19-000r7Z-OA for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2019 11:39:35 +0200 Original-Received: from localhost ([::1]:57422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heG10-00045N-CJ for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jun 2019 05:39:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48973) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1heG0S-00044p-I5 for help-gnu-emacs@gnu.org; Fri, 21 Jun 2019 05:38:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1heG0P-00014t-G8 for help-gnu-emacs@gnu.org; Fri, 21 Jun 2019 05:38:52 -0400 Original-Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]:33613) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1heG0N-00010H-Mb for help-gnu-emacs@gnu.org; Fri, 21 Jun 2019 05:38:48 -0400 Original-Received: by mail-oi1-x229.google.com with SMTP id f80so4246210oib.0 for ; Fri, 21 Jun 2019 02:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pVCBmvbJFMz6RL+QzklCKyVFEeKkIo7TMCvYMqx5h38=; b=XE50HkY45jT3tK0PZtYPzlnBNpXvT1S3MCyWE4Nx50SYRaUCjkC6DuoUTZ7KCTTfIa Qmxl1WcUDaGien0ZxoNsaiVAu6buVZj2nIFgxUJYA/BHGoA9wZFOMeOTiBRvNf8qofBw 2k1dec0ByknKppL39BZMR00y6AnRgCULTxb9tt4k54b5Li35wOzG7YTXjC3VPipUt/Gd vc7bkUs0m77Yombzz5/ocWEe66Yh59dR4tW/T13yeu2JS6061r893OjIRLSokwoO1mkL H+Z95PTrc0WhANVvzQ3llt6h1eid9A7i02T1GE8ujNtqm8UFpzrz68Ayh+tRCnFQv4lx 2Mew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pVCBmvbJFMz6RL+QzklCKyVFEeKkIo7TMCvYMqx5h38=; b=UMV9vKveViv2bMhr1nAQ2wvicdad8LMa+8tLXj/FRjclhysUVHj7RgYctvO+s6VZeP jAAL+7CX7ampFBIuTtk+6h7uY/L7T5c6in9B9OvjVKByWdqG8pMfCnQM8UITuivKdq58 75Df8hGHZI247LUQlhnEN417FzvQED/3TV4RzLP3uO9Z2r8cFDPgd5YUdArHb0dIcDgG 97eSkfO9JPqysf/bp2fuqnMPP7yjvP3TVv+WjNy2hFZTxCIsmS6XH29UT/LKgiGaQvRT S6ksh2zk13HuKioklSzuduh9lEtbdImpUqgdO493EnwJzaSmS7NNdDi5MwOW0XQB8do0 Gccw== X-Gm-Message-State: APjAAAVEUdPOI7FugOXgCauhQPMlkpsM1zwIwo50OfrCzzmkcxItEOmt Emb/Y1ShgTJR4nSdOcnoEVZOzPu1LIExh27nMuk= X-Google-Smtp-Source: APXvYqwELy32srZQxfj3rmN3InkKbKYSJYV0xD2uJxxojos+mEx3aYNENIKHR1081+dn3rPn6rqil8ZPPlqhoNuujzw= X-Received: by 2002:aca:4e84:: with SMTP id c126mr1956530oib.153.1561109924235; Fri, 21 Jun 2019 02:38:44 -0700 (PDT) In-Reply-To: <83r27oyazf.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120999 Archived-At: On Thu, 20 Jun 2019 at 08:25, Pascal Quesseveur wrote: I am using ant under emacs on Windows (version 24.3) to compile Pascal source codes with Delphi compiler. When an error occurs it is not identified as an error in the compilation buffer. Error message is: TestEnum.dpr(24) Error: E2029 ',' or ':' expected but '(' found There is a regexp for borland in compilation-error-regexp-alist-alist that seems to match the error message but I don't understand how it is supposed to work. I would be glad if someone could explain the matching of the compilation error messages. Have you already seen the explanation in the docstring for "compilation-error-regexp-alist"? It might also be useful to look at the existing regexps (compilation-error-regexp-alist-alist) the sample file "etc/compilation.txt" in the Emacs distribution. It turns out there's a note in the sample file that the predefined regexp for borland is for "Borland C++, C++Builder". An error specification matching your example might look something like this: ("^\\([a-zA-Z]?:?[^:() \t\n]+\\)(\\([0-9]+\\)) \ \\(?:Error\\|\\(Warning\\)\\|\\(Hint\\)\\):" 1 2 nil (3 . 4)) Use M-x customize-variable to add it to compilation-error-regexp-alist making sure to choose 'Error specification', not 'Predefined symbol', from the Value Menu.