From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60830: 30.0.50; The *Compilation* buffer does not recognize Lua errors Date: Sun, 08 Oct 2023 11:49:03 -0400 Message-ID: References: <909EF5E1-6F30-4A35-84E8-2EF4333115FD@gmail.com> <4996E536-72CE-4E6A-9C75-CF7307A82469@gmail.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37389"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 60830@debbugs.gnu.org, Stefan Kangas To: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 08 17:49:56 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qpW2V-0009T3-GO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Oct 2023 17:49:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpW2J-0001d7-6T; Sun, 08 Oct 2023 11:49:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpW2H-0001cx-QY for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 11:49:41 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qpW2H-0005TD-Ik for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 11:49:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpW2b-00053D-Jv for bug-gnu-emacs@gnu.org; Sun, 08 Oct 2023 11:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Oct 2023 15:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60830 X-GNU-PR-Package: emacs Original-Received: via spool by 60830-submit@debbugs.gnu.org id=B60830.169678017419371 (code B ref 60830); Sun, 08 Oct 2023 15:50:01 +0000 Original-Received: (at 60830) by debbugs.gnu.org; 8 Oct 2023 15:49:34 +0000 Original-Received: from localhost ([127.0.0.1]:58270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpW29-00052N-Kn for submit@debbugs.gnu.org; Sun, 08 Oct 2023 11:49:33 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpW27-00051w-Tb for 60830@debbugs.gnu.org; Sun, 08 Oct 2023 11:49:32 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D376A1000AD; Sun, 8 Oct 2023 11:49:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1696780144; bh=/GxiglKuudbCcMWQFd80RnsVB/+dtrS2p2lGg/T13dI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KGxLdHn/RjKBPqT6Oj/csFLYeCSE6BqlTMyhXVBqb0aLsSSxNQpqgQTo2I2g+Rqxq n6yjkdGMo9OWYVVWXHFQjYD4Op47Fv8rWVTjIgiYZua5u5ZCrhtl6yctp4RMuTuGUg VZAdS4+eZw1J9vAm5mSMHwR6NAFirywjOFUz3iA4PiVTVZYCShsOy8cBThwC8UFvZo /MgTO1VgvMN2GGezQXUTT4NqQPlKPhK4kpsEIzxXi+/e/dPuJXfSGWr8F2wPttVOTU dZS4DJsvmJRVRrVeA3xRrqd1dfWV26GtvqeZMcUI013BSiVFX4jRmYQSE4/K+fFj/p dCKhBExgq/jXQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C1399100033; Sun, 8 Oct 2023 11:49:04 -0400 (EDT) Original-Received: from alfajor (unknown [129.222.204.65]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5ED1E1204BB; Sun, 8 Oct 2023 11:49:04 -0400 (EDT) In-Reply-To: ("Rudolf =?UTF-8?Q?Adamkovi=C4=8D?="'s message of "Sat, 07 Oct 2023 23:02:25 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272097 Archived-At: > (1) How can I specify "this group cannot be '[C]'" in the regexp? For true "regular expressions", you'd use conjunction and negation and Bob's your uncle, but sadly, our regexps don't support conjunction nor negation, so you're stuck doing it by hand, e.g.: "\\|\\[\\|[^[].*\\|\\[C\\|\\[[^C].*\\|\\[C[^]].*\\|\\[C].+" Yes, it's hideous and it suffers from a really bad size-explosion syndrome. I don't even want to think about how to encode "this group can match neither "joe" nor "henry". >> I see no reason for the non-greedy match in the first regexp, do you? > I made the relevant groups greedy, but I wonder what difference it > makes. Is there a way to test the change in 'compile-tests.el'? .*?\n and .*\n are equivalent because . can't match the same char as \n, so there's no choice to be made about how many repetitions of . to use. But the regexp compiler notices this fact (which it can use to avoid using backtracking and thus work noticeably more efficiently) only if you use ".*\n". Stefan