From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#70794: 30.0.50; Add Rust compilation regex Date: Mon, 3 Jun 2024 18:22:48 +0200 Message-ID: <8BC5E59B-63B1-4784-9454-51925E9DBCFC@gmail.com> References: <16667D6C-F897-4A85-8C7A-0FA2E803FAA6@gmail.com> <86sexukpuh.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24349"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70794@debbugs.gnu.org, spacibba@aol.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 03 18:57:16 2024 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 1sEAzi-00063S-Gn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jun 2024 18:57:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEAzM-0006kz-Ch; Mon, 03 Jun 2024 12:56:52 -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 1sEAzK-0006kX-Pw for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 12:56:50 -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 1sEAzK-0006Iy-8Y for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 12:56:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sEAzW-0003je-Kd for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 12:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2024 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70794 X-GNU-PR-Package: emacs Original-Received: via spool by 70794-submit@debbugs.gnu.org id=B70794.171743376514172 (code B ref 70794); Mon, 03 Jun 2024 16:57:02 +0000 Original-Received: (at 70794) by debbugs.gnu.org; 3 Jun 2024 16:56:05 +0000 Original-Received: from localhost ([127.0.0.1]:49819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEAya-0003gV-L2 for submit@debbugs.gnu.org; Mon, 03 Jun 2024 12:56:05 -0400 Original-Received: from mail-ed1-f45.google.com ([209.85.208.45]:43519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEAyY-0003fM-PJ for 70794@debbugs.gnu.org; Mon, 03 Jun 2024 12:56:03 -0400 Original-Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-57a677d3d79so1723551a12.1 for <70794@debbugs.gnu.org>; Mon, 03 Jun 2024 09:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717433684; x=1718038484; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=PQEvcqnkHyBPughOYsSKldLWowBYY4R5MjzXEPs9Av4=; b=OL/3o2m5gNEAX9dV2x0TIPDY2I3yFqji6W08NsDNWEJ7FbQvQ4+k+4clLGlDemuK2M bUCqQtCHXtKDnodCxXCS54c5JNGCanUWWa+HrIwSj1hIYXJHFm87RlZWv3tzlgS2HjzG Akr+hxyHOkAVUJshq78ULWs1pNgLGSwUoVMw/mQkl4U1OITZpl6TMq17+Y+s92uQrpQF El+M5VZhYOdDbzgD+1U4QuAWZLYoaNH2aABkPqP+4gf/dQBXZzvnLHgbzAy+uTbvPEuy QDtriNDnplQaTAf47ygkX59CdX6gcYwAZnNDFrnv8hq7w7pazUMySkQF3GA3tvhUUhlT xe9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717433684; x=1718038484; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PQEvcqnkHyBPughOYsSKldLWowBYY4R5MjzXEPs9Av4=; b=WQAEoPMuFGDBecw7Apk+qugkdBJMujfqOglSpmtdOSf7XRI1vZnpkP4EGs5qdwyPQ3 baQYhIMabIhd4gQNBDq7lLXo/j6t+dKb3oEWtLpFErKd9tai8SEa7agIoYk1AcFc8WrZ U/KWCFIo6peHXRHC6UXcdZeLAM7861sonWaUW8k/9um+nGUdffWOdmYUebHv/ZmdjvDs 4lbkes4YxsbXc0gIKn2hqBqmx0FxUmGA0YRNDHoR0YUPMDkIiPXFRwhDoyFhM6QWofxi KV2DXAeTe/xIL1Lb7FUSmHNAydwi4wTph2G/3jcHSCFnNt8zil9a2dDRNT8fFsetydav 6JbA== X-Forwarded-Encrypted: i=1; AJvYcCUfvXzxd7eK0wGyKhVULzIgBvnUvV5x58uYow1IhdMidK3gn6eU+lshkf+GCB4w9DdeF4aQaEpf/XrFPtWwqStMw/EzbCM= X-Gm-Message-State: AOJu0YyIQlkmAvXx6Pk+oOgArfrhqGwWzfNbLxGGcgB71h4NrfodkRZi qHIIQKkVLVDpHdt05QlZderHtxqecjeGRq20itBjimUIAX8ajaF+gyDEcg== X-Google-Smtp-Source: AGHT+IHgdZSseErOJKAm3JVP2lDCuaDIPGnDGVqtAwc/iIGNnYRnQPV9TVjSuyTWAKgE1r7mwi/0OQ== X-Received: by 2002:ac2:5f83:0:b0:52b:8d0f:93a3 with SMTP id 2adb3069b0e04-52ba2290ce3mr34790e87.29.1717431769674; Mon, 03 Jun 2024 09:22:49 -0700 (PDT) Original-Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b9918fa69sm443872e87.261.2024.06.03.09.22.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2024 09:22:49 -0700 (PDT) In-Reply-To: <86sexukpuh.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:286473 Archived-At: 3 juni 2024 kl. 17.28 skrev Eli Zaretskii : > The order of the patterns in the alist is a complete mystery to me. I > tried to figure it out, but eventually gave up. A remark won't cut > it, I think: we need a detailed description of the principles, > considerations, and the way of testing the results after adding a new > pattern. Yes, it's really not ideal. There are lots of legacy entries which are = hardly ever used and just shouldn't be there, or at least not enabled by = default. And as you say, the order is chaotic, difficult to understand, = and probably not the best. There is also insufficient testing of cross-pattern interference which = isn't easy or cheap to do if we are serious about it. The customisation interface is also not helping very much, and the whole = mechanism is not very modular. >> In fact the added pattern has visibly wrecked the display of = etc/compilation.txt so I'm taking the slightly drastic step of reverting = it. >=20 > That succeeded in my testing, so I wonder why it doesn't work for you. My guess it is because of the nondeterministic parsing by = compilation-mode; it seems to depend on the order of fontification, and = possibly user settings (faces maybe). I can reproduce it reliably here, = though. Anyway, the syndrome was just a consequence of the previous observations = about the (far too unrestrained) regexp, so there is no real mystery. > If you revert it, please fix this ASAP and install the results, since > I'd like to have this on the emacs-20 branch, which will be cut > soon-ish. Personally I strongly prefer no rule to a broken one, or even to = Mattias's-best-guess-of-what-a-correct-rule-might-look-like.