From unknown Fri Aug 15 14:17:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#23266 <23266@debbugs.gnu.org> To: bug#23266 <23266@debbugs.gnu.org> Subject: Status: 25.0.92; GNUmakefile mode incorrect syntax highlighting Reply-To: bug#23266 <23266@debbugs.gnu.org> Date: Fri, 15 Aug 2025 21:17:24 +0000 retitle 23266 25.0.92; GNUmakefile mode incorrect syntax highlighting reassign 23266 emacs submitter 23266 Dima Kogan severity 23266 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 10 19:03:04 2016 Received: (at submit) by debbugs.gnu.org; 10 Apr 2016 23:03:04 +0000 Received: from localhost ([127.0.0.1]:57673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apONj-0001dA-R3 for submit@debbugs.gnu.org; Sun, 10 Apr 2016 19:03:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apONi-0001cg-Bl for submit@debbugs.gnu.org; Sun, 10 Apr 2016 19:03:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apONc-0008Fz-JX for submit@debbugs.gnu.org; Sun, 10 Apr 2016 19:02:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apONc-0008Fu-Fs for submit@debbugs.gnu.org; Sun, 10 Apr 2016 19:02:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apONb-0005r1-KM for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2016 19:02:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apONY-0008Ec-DA for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2016 19:02:55 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:49744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apONY-0008EG-7o for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2016 19:02:52 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 8CB7120424 for ; Sun, 10 Apr 2016 19:02:48 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Sun, 10 Apr 2016 19:02:48 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=ZNWdU3kp5P6VG569q+RvOQYV9ZE =; b=HvTaD1jJXft5k48SQi7mquzKplL0GVxCTS0pyrW4v5p/Jv1NYa18q+QiBE2 6jG5Q4aLQH6Xsiqf30KC/OvT+yLFcXy5fP3fRkXvOZYkwG7oZ6wosp1AvpjLavle I0qh/KDSUbhZi6P8k61NsjuYCQufRVZmk6eA/abWzTJesM0E= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ZN WdU3kp5P6VG569q+RvOQYV9ZE=; b=TFh1aVhIwU995R4crhUgfhZcI3rj5AIcr5 +FgGDUGmBySYI3e+lxxrMIp5zzT6R4I8u8g7klhgKxhG4AkjYoQwz1O2dNoh1oz3 r/+Bz8SQGGkpc9sZo16S6/nlKrUB+psQ0EBBihUeWVU4rZvVjKLplFxBo6byNl77 dmN4zrauI= X-Sasl-enc: fyZhbl3nbD91aQwpH4TXCmm151OUvlJL2CMBb5V/+ks0 1460329368 Received: from shorty.local (50-1-153-216.dsl.dynamic.fusionbroadband.com [50.1.153.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 2AAF9C00013 for ; Sun, 10 Apr 2016 19:02:48 -0400 (EDT) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1apONS-0006Vd-OX for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2016 16:02:46 -0700 From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 25.0.92; GNUmakefile mode incorrect syntax highlighting Date: Sun, 10 Apr 2016 16:02:46 -0700 Message-ID: <87potxgj8p.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.7 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.7 (----) --=-=-= Content-Type: text/plain Hi. I'm running an emacs built from the emacs-25 branch on 2016/04/05 (a05fb21). I'm seeing Makefiles incorrectly rendered at times. Example. I load the following Makefile: =================================== XXX := \ $(DIR)/aaa/bbb \ $(DIR)/aaa/bbb \ $(DIR)/aaa/bbb \ $(DIR)/aaa/bbb \ $(DIR)/aaa/bbb \ $(DIR)/aaa/bbb \ $(DIR)/aaa/bbb \ $(DIR)/aaa/bbb \ $(DIR)/aaa/bbb =================================== Things look correct here. In particular all the DIR are rendered with font-lock-variable-name-face I then kill (with C-k) any of the DIR lines. Two of the DIR around the line being killed then lose the font-lock-variable-name-face. The buffer needs to be reverted to get proper highlighting back. I'm attaching screenshots (emacs -Q -nw) before and after the kill. Thanks --=-=-= Content-Type: image/png Content-Disposition: attachment; filename=before.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAcwAAAEvAgMAAAC1ZRk5AAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEUAAAD////NzQCU5S9h AAAAAWJLR0QB/wIt3gAAAAd0SU1FB+AEChY5JGqBQS8AAAU/SURBVHja7Z3JbiM3EEDJARk4PnUD rPskx3wFCXTfSYD8H88tn+FPTRUXSdZYsaq1TaJ6kNs0t9dcuoQ5TFOpJ8GWexMf4lS6ZMCUgkQZ +eAeIqZt7GmNl4A/KRWqaFsrgJrJdGrsorbG3nLtMtdOyY/ptEL7g36lnTOn3gpGZZ6zDGcZzrJ3 lrV8dMZQnaPVRmco4LF11gEnMyUVbch2wknOCVxZWxrrZJswkWafVp9HK2dTtFynsjhLeLsq9blF DybtjIO0MFnV0lhnxmyc2LnMgPm9Vcvcsp4KCnx0goM+zqghQ3dmWnU/FeVGq0lvdVKfR05Yu5M2 y9qdmMAiHGcereay2dnHmWg9M00X0NwmR84E6XBuk5tXcKMVZvLXUxfcHLgblNOenjoLxWIObg58 PkPdQzD2kKc9lMKccA+1VljNczfuJ3EImF2wH5ZHOe//vWL0A5y/v/39co1+fnHnb3/8+e27Uv5S J2eJmlPHcqGV4zQ/XtTbFcbJ6aHP7eVMfOelc8tx9n17qZG1cZtTx7s624a7fJwMHhFvH0Ob3Ome Sm9e3/96fTd9ExhvNi0uJ97qbL69IPd0Gj9Vp+6zO210suLt3gk6gpron0U3dupIztd3jaOjIXq/ GL9loJw2Sx3nm9YKQoagtjontvM7Osl2F6eNfd8aFRYXls1Ozsatz2d1otEtauMeYjkfEYeeBonx t3JKjGfCaSMxnofE+CdGYvytnBLjmXDaSIznITH+iZEYfyunxHgmnDYS43lIjH9iJ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f59PMAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA0LTEwVDE1OjU3 OjE5LTA3OjAwZ1G4WQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNC0xMFQxNTo1Njo1OS0wNzow MH2EZSEAAAAASUVORK5CYII= --=-=-= Content-Type: image/png Content-Disposition: attachment; filename=after.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAcwAAAEvAgMAAAC1ZRk5AAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEUAAAD////NzQCU5S9h AAAAAWJLR0QB/wIt3gAAAAd0SU1FB+AEChY5JoSPIAMAAAQxSURBVHja7Z3BbuMqFIahMlLVlZHM vprlPAVI8Z4jwft0eR+jj3oPGLdJZu60x07wXOX/lKauY/gCxn/dLHqUehBM7k08xKl0To63lKOy I529h8jbJrZtzU+Bv4hyOdAsrZyrO4VOzV3U1txbql2m2mnx8zbNbvmhfKMPZ6LWyq0Hy5x5debV mT+dec6Xzhiqc2210Rmy89w66cCTSaSiCcmMPMmJ3JTnZZuPSYZ4g6yn2ae11WQoGqlTGZ4lfruK 2tyyhzeN5UEaNxq1bPMxlnfzxNpsHe9vrZadW86nctldOt3k2jijdsk1Zypn3Y9ZTWurUW91lj6v nG5uzrJY5ubkDX6Jx5nWVjZvdrZxUjmfqUyXK3NLU3GSo/O5pcnOblpb8U75+dSZFwevBjVpX646 47LhPbw4+PoMdQ25dQ35soYoWOI1tLTiw7x04f4mh5ywC/HFcozzUXh+fvvn+Qb9DH+58+n1x9Or Un6vU4udOuadVolTvT2rtxuMU9JDm9v9jHLn3rmVONu63WsULdzFqWNPZ2P/OMFvWK7msafSDy/v P1/eh7YIBj9sOrmSJaTT8PTM9HQOfqxO3WZ33OiU5O2Z0+no1Fj+LLqzU8fifHnXPLoyRO9Pg98y UEmbUx3nm9bKheSC2uocxc5XdhZbF6eJbd0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266) by debbugs.gnu.org; 11 Apr 2016 09:15:12 +0000 Received: from localhost ([127.0.0.1]:57994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apXw7-0006aZ-QO for submit@debbugs.gnu.org; Mon, 11 Apr 2016 05:15:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:46470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apXw5-0006aQ-SJ for 23266@debbugs.gnu.org; Mon, 11 Apr 2016 05:15:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E3117AC89; Mon, 11 Apr 2016 09:15:07 +0000 (UTC) From: Andreas Schwab To: Dima Kogan Subject: Re: bug#23266: 25.0.92; GNUmakefile mode incorrect syntax highlighting References: <87potxgj8p.fsf@secretsauce.net> X-Yow: It's 74 degrees, 12 minutes NORTH, and 41 degrees, 3 minutes EAST!! Soon, it will be TUESDAY!! Date: Mon, 11 Apr 2016 11:15:08 +0200 In-Reply-To: <87potxgj8p.fsf@secretsauce.net> (Dima Kogan's message of "Sun, 10 Apr 2016 16:02:46 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 23266 Cc: 23266@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dima Kogan writes: > I then kill (with C-k) any of the DIR lines. Two of the DIR around the > line being killed then lose the font-lock-variable-name-face. The buffer > needs to be reverted to get proper highlighting back. Does M-o M-o also restore proper highlighting? Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 11 08:47:37 2016 Received: (at 23266) by debbugs.gnu.org; 11 Apr 2016 12:47:37 +0000 Received: from localhost ([127.0.0.1]:58137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apbFh-0004uU-A7 for submit@debbugs.gnu.org; Mon, 11 Apr 2016 08:47:37 -0400 Received: from mail-vk0-f53.google.com ([209.85.213.53]:36477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apbFg-0004uH-48 for 23266@debbugs.gnu.org; Mon, 11 Apr 2016 08:47:36 -0400 Received: by mail-vk0-f53.google.com with SMTP id c4so210560715vkb.3 for <23266@debbugs.gnu.org>; Mon, 11 Apr 2016 05:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=XHbICkQS8vtdth5i3z73W82wvUIKAxsCJNY2CjCehoU=; b=ukEwyLS7AD9ClNTVmrAkyYfjd11YSPNUUCSGdyNdghaPQ1sFBhdgzRzCjfM7I8q0GE bZTb9vm7k4QcuFQmodH9TMYD3eB9Nzd1uvkhEHuPuX2tA7OMmjMx3VGLgve+wVaGFYos PC2wOTojYSHBzmSTtBgtuErcAsqFDWP0ifoO4AVUh2zxq14SshZPbHrBBV1NoBKmkp0H P0REzJ+NgW0ooTFxTL4f4xCToGyQ1PeTBRODCedFH1I2jmaVsxwNda8TPwWGWhcGgR7m O5CuP6ZH+30O0nuH9li05QKKCG80ZK/kCyytipV08jEwV3ZtVn6rk0UrE1RJiU7l3D1K V2ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=XHbICkQS8vtdth5i3z73W82wvUIKAxsCJNY2CjCehoU=; b=IZdtXk/V8/lFSQBrNpd7PxkAdubxBY12iXw10ZFRC2MfchFvuoRZCSzSbA3USfIwgV hlHI7wdWmnZyo134ALwIGeUZ+aolypXvrSAlJ+WkuGuXm8rq/UxTnu3PGrB3iUG6BRZH v6KA/g3C8KYTTDqdaW9I81ly6bvTICTcD0ZydGdnV+FgGnf7CCHOPqjk5cU7yEFsnUG8 PykyZmNLuyGmz1KR6dsFg01x2Q6pcCtBQkyKnM8oHFjcn1++6shmS1rf6UftqSg8dIe6 malvKr40W1S1qqfH2TNYnNnhg/CkkZT7/ke7wXZ06BzTmontwYUD6iMMiEvjQGTrdps1 +lWg== X-Gm-Message-State: AD7BkJK9yim9mt1586L7oUnDTQNOxkW+lKrPz0XpPfrfNL601tl0NAqyJzGbt1cXlQfxjLrM6VqzaihSz66M0Q== MIME-Version: 1.0 X-Received: by 10.176.6.130 with SMTP id g2mr11335702uag.58.1460378850235; Mon, 11 Apr 2016 05:47:30 -0700 (PDT) Received: by 10.31.214.131 with HTTP; Mon, 11 Apr 2016 05:47:30 -0700 (PDT) Date: Mon, 11 Apr 2016 14:47:30 +0200 Message-ID: Subject: Re: bug#23266: 25.0.92; GNUmakefile mode incorrect syntax highlighting From: Anders Lindgren To: 23266@debbugs.gnu.org, Dima Kogan , Andreas Schwab Content-Type: multipart/alternative; boundary=94eb2c122d289b1e11053034f2dc X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 23266 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --94eb2c122d289b1e11053034f2dc Content-Type: text/plain; charset=UTF-8 Hi! I think it's the following font-lock keyword that is broken: ("[^$]\\$[({]\\([-a-zA-Z0-9_.]+\\|[@%
Hi!

I think it's the followin= g font-lock keyword that is broken:

=C2=A0 =C2=A0 ("[^$]\\$[({]= \\([-a-zA-Z0-9_.]+\\|[@%<?^+*][FD]?\\)"
=C2=A0 =C2=A0 =C2=A0 (1 = font-lock-variable-name-face prepend))

The regexp match = constructs like $(NAME). However, in an attempt not to match $$(NAME), it t= ries to match any other character besides $ before $(NAME). When $(NAME) is= at the beginning of a line, at the beginning of the search, this fails.

The reason why the buffer originally is colored corr= ectly is that the [^$] match the newline of the previous line. However, aft= er an edit, font-lock only highlights the edited parts. When the search res= umes on a line starting with $(NAME), the regexp no longer match.

You can verify this in Font-Lock Studio (https://github.com/Lindydancer/fo= nt-lock-studio) by first single-stepping (SPC) the rule in the whole bu= ffer, then mark a single line and step only that line, using `font-lock-stu= dio' and `font-lock-studio-region', respectively.

This can be fixed in a number of ways:

=C2= =A0* Replace "[^$]" with "\\(^\\|[^$]\\)", which mean t= o match the beginning of a line or any non-$ character.

=C2=A0* Implement the search in a function that would search for the = regex (except the "[^$]" part) plus code to check that it's n= ot preceded by a "$".

=C2=A0* Extend the= region that should be highlighted to include all lines that end with the &= quot;\" character. This can be done by adding a mode-specific function= to `font-lock-extend-region-functions'.

Note = that there seems to be six rules in Makefile mode using this pattern, I gue= ss all of them needs to be fixes.

=C2=A0 =C2=A0 --= Anders Lindgren

--94eb2c122d289b1e11053034f2dc-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 07 20:58:24 2021 Received: (at 23266) by debbugs.gnu.org; 8 Jul 2021 00:58:24 +0000 Received: from localhost ([127.0.0.1]:53797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1IMy-0002AC-1w for submit@debbugs.gnu.org; Wed, 07 Jul 2021 20:58:24 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1IMv-00029y-UE for 23266@debbugs.gnu.org; Wed, 07 Jul 2021 20:58:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QCWOJ1FFOcWWnjPJqnpFOcUSrz7qQWyF/oZCSlpjORE=; b=kueiQGRQLtosZ4yBSmF20UT7vt JfPPEpE9PqWKDRHOZUlhIV41024NZUcTaEZmepc4JYmTIO6lk0z9FPoIxpiAr+RsI+K4tuVQJUPiy E1DWacCfoC0LdZvexfOr3mastp6NxBL7QSztV2NTpLgBMx3yP2FoWuwO1HkvLS5w9eoQ=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1IMl-0003wQ-RN; Thu, 08 Jul 2021 02:58:14 +0200 From: Lars Ingebrigtsen To: Anders Lindgren Subject: Re: bug#23266: 25.0.92; GNUmakefile mode incorrect syntax highlighting References: <87potxgj8p.fsf@secretsauce.net> X-Now-Playing: Oh Sees's _Face Stabber_: "The Experimenter" Date: Thu, 08 Jul 2021 02:58:11 +0200 In-Reply-To: (Anders Lindgren's message of "Mon, 11 Apr 2016 14:47:30 +0200") Message-ID: <871r891v18.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Anders Lindgren writes: > This can be fixed in a number of ways: > > * Replace "[^$]" with "\\(^\\|[^$]\\)", which mean to match the beginning of a > line or any non-$ character. Thanks; I did this in Emacs 28, and it seems to fix the issue. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 23266 Cc: Andreas Schwab , 23266@debbugs.gnu.org, Dima Kogan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Anders Lindgren writes: > This can be fixed in a number of ways: > > * Replace "[^$]" with "\\(^\\|[^$]\\)", which mean to match the beginning of a > line or any non-$ character. Thanks; I did this in Emacs 28, and it seems to fix the issue. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 07 20:58:26 2021 Received: (at control) by debbugs.gnu.org; 8 Jul 2021 00:58:26 +0000 Received: from localhost ([127.0.0.1]:53800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1IN0-0002AQ-88 for submit@debbugs.gnu.org; Wed, 07 Jul 2021 20:58:26 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1IMz-0002A2-Ed for control@debbugs.gnu.org; Wed, 07 Jul 2021 20:58:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZEyF+MIiMMU9AlQ3nsh2OsYciJCm/0NbnQUjvvXcZIQ=; b=SOkhm3gCzQn4TGyYfbVCSyGYrH ptJBR/nCuZhIhkyKeDB6KNEu4AfKt2/CjpIYLlrdpsCWsXFRc6ZzB7o8+EJsMjvRJv8Umv8gwGncj HM9F80/12933ZwvH+ZnubhR5dk/ekCQeP3TlNSDwrtn91fU94jXQ7FzCKv790jFOg2Qw=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1IMr-0003wb-Ku for control@debbugs.gnu.org; Thu, 08 Jul 2021 02:58:19 +0200 Date: Thu, 08 Jul 2021 02:58:17 +0200 Message-Id: <87zguxzknq.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #23266 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 23266 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 23266 28.1 quit From unknown Fri Aug 15 14:17:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Aug 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator