From unknown Sun Jun 22 00:25:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66145: 30.0.50; cperl-mode unexpected fontification in comments Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2023 21:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 66145@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16953299962944 (code B ref -1); Thu, 21 Sep 2023 21:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Sep 2023 20:59:56 +0000 Received: from localhost ([127.0.0.1]:34881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjQmB-0000lO-O3 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 16:59:56 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjQm9-0000l6-G4 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 16:59:54 -0400 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 1qjQlt-0004tz-Ua for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 16:59:37 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjQlr-0008GD-Ic for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 16:59:37 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1c5c91bec75so11934375ad.3 for ; Thu, 21 Sep 2023 13:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695329973; x=1695934773; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=TeD1ic+HHbV3ySlJNgN3qYljnWQyuGLRT+cQ8nrjDpE=; b=eXvL9u7Tn1WvF5lw1gZZAVF18asU+0BP5wUoCaDlKT869JnFaJh0GeGUEHWXbZDuEj FZW107LFf3MApaMfZ4XToUhFgW2bCwSvrdHOms7nPnx31NpIzklrXrngPnibg2prl5A8 DHjrdNh8Bu63EmaZnTkzyrT9nSeoplued9gFXSeV7Gu9do/rNPaXhJwl4lEtB711t3dv jbdXV7bVDMwBnqBer6Y4qt7AwGNJDTgiJTzLoSC1bIncDV+SzHk/MN2sCli46PhKnw8C KTlJClDmOTQvLMqq8A7AVeWGF8/btAYVL4m6cg1lZl/5wfsP2yKD2o7KXb1FSeDAZdgo 2+tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695329973; x=1695934773; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=TeD1ic+HHbV3ySlJNgN3qYljnWQyuGLRT+cQ8nrjDpE=; b=dih1494y8By4AEAnylOwZ5gvL9pVHye8QXo0O9Zeh3PhIvNXZ0ez4joIzLUDuySzDZ ngpIqeQmrqet/YRjwvnN5qFZGlTBPZDtfs2PfI29ygGDq4626rwUAjtpOhsQ3bHqXmWJ BjyYFlHb+6xS3wAvuGRXpKei9TLAKxJr4ICIuDP00DX1cyLWirBSLSHE5tV6sN+rLMPd YlD+d3QUKkVSbb+/4lJQLFOm/yN40yPrvnNsZr22SCvIHlAHWzSX2bbQQHq0PVE67ZYY h7e/+dDwL4eefr8/XdUHudMh+bIJ+dzTIY6jCeSpfYmqymYHaBd7heTwuQrh7+wBeqKu S84Q== X-Gm-Message-State: AOJu0Yx7qEeEPCyBmc9E93I1yEGpk8rfsoSEIwkpo1NBAbxx52Hb7cP+ mRywrPmI91feaG2DyLKIF7pzp2mxkpQ= X-Google-Smtp-Source: AGHT+IHQIGjMypXxLHuvaNJ/ToVc25Vj/iZc6ARwP9fuEgwGd1EtN+pprFeMDc+/jfKNlu3a+v8qeA== X-Received: by 2002:a17:902:8681:b0:1c3:a396:25b5 with SMTP id g1-20020a170902868100b001c3a39625b5mr4991724plo.61.1695329973328; Thu, 21 Sep 2023 13:59:33 -0700 (PDT) Received: from [192.168.0.234] ([152.168.142.156]) by smtp.gmail.com with ESMTPSA id jf2-20020a170903268200b001b8c6662094sm1978610plb.188.2023.09.21.13.59.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Sep 2023 13:59:32 -0700 (PDT) Message-ID: <35b1b9cd-e2a6-9d9d-7f56-2026bbef4ef2@gmail.com> Date: Thu, 21 Sep 2023 17:59:28 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US From: Mauro Aranda Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=maurooaranda@gmail.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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.0 (/) After emacs -Q C-x C-f bug.pl M-x cperl-mode Type something like this: sub foo {   # Here we do something like   # this: $thing [ num_things ]->{prop} } $thing and prop get fontified.  That's unexpected. If I leave: # this: $thing it doesn't get fontified. In GNU Emacs 30.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version  3.24.33, cairo version 1.16.0) of 2023-09-21 built on tbb-desktop Repository revision: a45d33d8aa80482d185a130059dd099e24d7aec1 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12201001 System Description: Ubuntu 22.04.2 LTS Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings:   value of $LC_MONETARY: es_AR.UTF-8   value of $LC_NUMERIC: es_AR.UTF-8   value of $LC_TIME: es_AR.UTF-8   value of $LANG: en_US.UTF-8   value of $XMODIFIERS: @im=ibus   locale-coding-system: utf-8-unix Major mode: CPerl Minor modes in effect:   tooltip-mode: t   global-eldoc-mode: t   show-paren-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   minibuffer-regexp-mode: t   line-number-mode: t   indent-tabs-mode: t   transient-mark-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort emacsbug mail-extr message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader cl-loaddefs cl-lib cperl-mode rx facemenu perl-mode rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process emacs) Memory information: ((conses 16 46050 17086) (symbols 48 6035 0) (strings 32 15847 1885)  (string-bytes 1 467707) (vectors 16 11446)  (vector-slots 8 175080 19925) (floats 8 25 23) (intervals 56 281 0)  (buffers 992 11)) From unknown Sun Jun 22 00:25:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66145: 30.0.50; cperl-mode unexpected fontification in comments Resent-From: Harald =?UTF-8?Q?J=C3=B6rg?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Sep 2023 12:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 66145@debbugs.gnu.org Received: via spool by 66145-submit@debbugs.gnu.org id=B66145.169556027412890 (code B ref 66145); Sun, 24 Sep 2023 12:58:01 +0000 Received: (at 66145) by debbugs.gnu.org; 24 Sep 2023 12:57:54 +0000 Received: from localhost ([127.0.0.1]:41338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkOgL-0003Lp-S3 for submit@debbugs.gnu.org; Sun, 24 Sep 2023 08:57:54 -0400 Received: from mout02.posteo.de ([185.67.36.66]:49285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkOgJ-0003LU-MJ for 66145@debbugs.gnu.org; Sun, 24 Sep 2023 08:57:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7DE98240101 for <66145@debbugs.gnu.org>; Sun, 24 Sep 2023 14:57:33 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RtmHw6wz5z6tsf; Sun, 24 Sep 2023 14:57:32 +0200 (CEST) From: Harald =?UTF-8?Q?J=C3=B6rg?= In-Reply-To: <35b1b9cd-e2a6-9d9d-7f56-2026bbef4ef2@gmail.com> (Mauro Aranda's message of "Thu, 21 Sep 2023 17:59:28 -0300") References: <35b1b9cd-e2a6-9d9d-7f56-2026bbef4ef2@gmail.com> Date: Sun, 24 Sep 2023 12:57:32 +0000 Message-ID: <87bkdrybib.fsf@oook.m.uunet.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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 (---) tags 66145 + confirmed owner 66145 ! thanks Mauro Aranda writes: > After emacs -Q > C-x C-f bug.pl > M-x cperl-mode > Type something like this: > sub foo { > =C2=A0 # Here we do something like > =C2=A0 # this: $thing [ num_things ]->{prop} > } > > $thing and prop get fontified.=C2=A0 That's unexpected. > > If I leave: > # this: $thing > it doesn't get fontified. Ouch. I seem to have re-introduced a behavior which had already been fixed by Lars (Bug#22867). The ordering of fontification rules in cperl-mode.el is somewhat ... delicate. --=20 Sorry, haj From unknown Sun Jun 22 00:25:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mauro Aranda Subject: bug#66145: closed (Re: bug#66145: 30.0.50; cperl-mode unexpected fontification in comments) Message-ID: References: <87jzru4qzg.fsf@oook.m.uunet.de> <35b1b9cd-e2a6-9d9d-7f56-2026bbef4ef2@gmail.com> X-Gnu-PR-Message: they-closed 66145 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: confirmed Reply-To: 66145@debbugs.gnu.org Date: Tue, 10 Oct 2023 12:12:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1696939922-27700-1" This is a multi-part message in MIME format... ------------=_1696939922-27700-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #66145: 30.0.50; cperl-mode unexpected fontification in comments which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 66145@debbugs.gnu.org. --=20 66145: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D66145 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1696939922-27700-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 66145-done) by debbugs.gnu.org; 10 Oct 2023 12:11:52 +0000 Received: from localhost ([127.0.0.1]:34192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqBaZ-0007CJ-3a for submit@debbugs.gnu.org; Tue, 10 Oct 2023 08:11:52 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqBaS-0007Bx-1U for 66145-done@debbugs.gnu.org; Tue, 10 Oct 2023 08:11:49 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 52E15240027 for <66145-done@debbugs.gnu.org>; Tue, 10 Oct 2023 14:11:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1696939876; bh=AEBmKVxRvC7iCXUCJ0ERN9gMbBasuB6fo+lCwvLRJ0U=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=g9SJaoJiyP06dHbE1LXBUzy5hu8XQyJNRjTvmsOyXQQfbtr0BfSao0a5xO29Md3ox z/2xRTaabEVyu2nSOLr5NP5OUj/uCTF+0xNZM96wjfENdDcErUlbznPsonjHfNE23s g9ROTAHHjUYdJm7zjgqPmbi65F0IVs4RHBU726pwakk8BMTLYK6xlmYjc6B4a+KHHU PxSop8495YUzPWXLi1ob4RKcvGKGg3fsuXpJoTKIdjXfQFwajYj7pd8RqrGdkLcz7v HYN+FMQP9trRKeOzVrJpefVSxSXoPBVi8E2z/oK9GjMR+HBqfb1u6WH9X5z1P0EyRk E7wzamrxsGIiQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S4ZW80Bmlz6v8j for <66145-done@debbugs.gnu.org>; Tue, 10 Oct 2023 14:11:15 +0200 (CEST) From: =?utf-8?Q?Harald_J=C3=B6rg?= To: 66145-done@debbugs.gnu.org Subject: Re: bug#66145: 30.0.50; cperl-mode unexpected fontification in comments Date: Tue, 10 Oct 2023 12:11:15 +0000 Message-ID: <87jzru4qzg.fsf@oook.m.uunet.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66145-done 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 (---) This is now fixed in master by some reordering of rules, so that the rules don't need to override elements which have already been fontified. Contrary to my original belief, the patch to Bug#22867 only fixed unexpected fontification of arrays and hashes as a whole, but not for elements of these. -- Cheers, haj ------------=_1696939922-27700-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Sep 2023 20:59:56 +0000 Received: from localhost ([127.0.0.1]:34881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjQmB-0000lO-O3 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 16:59:56 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjQm9-0000l6-G4 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 16:59:54 -0400 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 1qjQlt-0004tz-Ua for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 16:59:37 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjQlr-0008GD-Ic for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 16:59:37 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1c5c91bec75so11934375ad.3 for ; Thu, 21 Sep 2023 13:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695329973; x=1695934773; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=TeD1ic+HHbV3ySlJNgN3qYljnWQyuGLRT+cQ8nrjDpE=; b=eXvL9u7Tn1WvF5lw1gZZAVF18asU+0BP5wUoCaDlKT869JnFaJh0GeGUEHWXbZDuEj FZW107LFf3MApaMfZ4XToUhFgW2bCwSvrdHOms7nPnx31NpIzklrXrngPnibg2prl5A8 DHjrdNh8Bu63EmaZnTkzyrT9nSeoplued9gFXSeV7Gu9do/rNPaXhJwl4lEtB711t3dv jbdXV7bVDMwBnqBer6Y4qt7AwGNJDTgiJTzLoSC1bIncDV+SzHk/MN2sCli46PhKnw8C KTlJClDmOTQvLMqq8A7AVeWGF8/btAYVL4m6cg1lZl/5wfsP2yKD2o7KXb1FSeDAZdgo 2+tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695329973; x=1695934773; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=TeD1ic+HHbV3ySlJNgN3qYljnWQyuGLRT+cQ8nrjDpE=; b=dih1494y8By4AEAnylOwZ5gvL9pVHye8QXo0O9Zeh3PhIvNXZ0ez4joIzLUDuySzDZ ngpIqeQmrqet/YRjwvnN5qFZGlTBPZDtfs2PfI29ygGDq4626rwUAjtpOhsQ3bHqXmWJ BjyYFlHb+6xS3wAvuGRXpKei9TLAKxJr4ICIuDP00DX1cyLWirBSLSHE5tV6sN+rLMPd YlD+d3QUKkVSbb+/4lJQLFOm/yN40yPrvnNsZr22SCvIHlAHWzSX2bbQQHq0PVE67ZYY h7e/+dDwL4eefr8/XdUHudMh+bIJ+dzTIY6jCeSpfYmqymYHaBd7heTwuQrh7+wBeqKu S84Q== X-Gm-Message-State: AOJu0Yx7qEeEPCyBmc9E93I1yEGpk8rfsoSEIwkpo1NBAbxx52Hb7cP+ mRywrPmI91feaG2DyLKIF7pzp2mxkpQ= X-Google-Smtp-Source: AGHT+IHQIGjMypXxLHuvaNJ/ToVc25Vj/iZc6ARwP9fuEgwGd1EtN+pprFeMDc+/jfKNlu3a+v8qeA== X-Received: by 2002:a17:902:8681:b0:1c3:a396:25b5 with SMTP id g1-20020a170902868100b001c3a39625b5mr4991724plo.61.1695329973328; Thu, 21 Sep 2023 13:59:33 -0700 (PDT) Received: from [192.168.0.234] ([152.168.142.156]) by smtp.gmail.com with ESMTPSA id jf2-20020a170903268200b001b8c6662094sm1978610plb.188.2023.09.21.13.59.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Sep 2023 13:59:32 -0700 (PDT) Message-ID: <35b1b9cd-e2a6-9d9d-7f56-2026bbef4ef2@gmail.com> Date: Thu, 21 Sep 2023 17:59:28 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Mauro Aranda Subject: 30.0.50; cperl-mode unexpected fontification in comments Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=maurooaranda@gmail.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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: -0.0 (/) After emacs -Q C-x C-f bug.pl M-x cperl-mode Type something like this: sub foo {   # Here we do something like   # this: $thing [ num_things ]->{prop} } $thing and prop get fontified.  That's unexpected. If I leave: # this: $thing it doesn't get fontified. In GNU Emacs 30.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version  3.24.33, cairo version 1.16.0) of 2023-09-21 built on tbb-desktop Repository revision: a45d33d8aa80482d185a130059dd099e24d7aec1 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12201001 System Description: Ubuntu 22.04.2 LTS Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings:   value of $LC_MONETARY: es_AR.UTF-8   value of $LC_NUMERIC: es_AR.UTF-8   value of $LC_TIME: es_AR.UTF-8   value of $LANG: en_US.UTF-8   value of $XMODIFIERS: @im=ibus   locale-coding-system: utf-8-unix Major mode: CPerl Minor modes in effect:   tooltip-mode: t   global-eldoc-mode: t   show-paren-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   minibuffer-regexp-mode: t   line-number-mode: t   indent-tabs-mode: t   transient-mark-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort emacsbug mail-extr message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader cl-loaddefs cl-lib cperl-mode rx facemenu perl-mode rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process emacs) Memory information: ((conses 16 46050 17086) (symbols 48 6035 0) (strings 32 15847 1885)  (string-bytes 1 467707) (vectors 16 11446)  (vector-slots 8 175080 19925) (floats 8 25 23) (intervals 56 281 0)  (buffers 992 11)) ------------=_1696939922-27700-1-- From unknown Sun Jun 22 00:25:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66145: 30.0.50; cperl-mode unexpected fontification in comments Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, Harald =?UTF-8?Q?J=C3=B6rg?= Resent-Date: Tue, 10 Oct 2023 12:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66145 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: 66145@debbugs.gnu.org, haj@posteo.de Received: via spool by 66145-submit@debbugs.gnu.org id=B66145.169694152231065 (code B ref 66145); Tue, 10 Oct 2023 12:39:01 +0000 Received: (at 66145) by debbugs.gnu.org; 10 Oct 2023 12:38:42 +0000 Received: from localhost ([127.0.0.1]:34237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqC0Y-00084z-2x for submit@debbugs.gnu.org; Tue, 10 Oct 2023 08:38:42 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]:58769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqC0W-00084m-83 for 66145@debbugs.gnu.org; Tue, 10 Oct 2023 08:38:40 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6934202b8bdso4586598b3a.1 for <66145@debbugs.gnu.org>; Tue, 10 Oct 2023 05:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696941493; x=1697546293; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=xG/kQcpjHKvROFosg51BlYZpEIpg/LPz2h9KIYVbrvw=; b=B+PQN4zzbwsQu4xrXs+0koOGBp8wlmCUKIX2FytQAmKGkPG93VFD1cg8Ty7XG4V48J KmmFvrza6Fh3P9Bayb/LaX9Z1yifEjmEZv4xdKLc4yxCmB29MsfemOD7lWiAasu+SBL7 Zyb4Y2GTaE6r/h4wlLNn+VYolUcFh4nB8wrSbvqQVrnziu88tvFAiT+dhPV79V+W18EX TtuGGeBlck6R5Ph8q0+7mxOEmjk103wXI3KpAiaVFya0UmKDC7tRf0PDnYozauun1Uo2 7cxgEDzKVSp0Yr6BDRpdlMwmMcyjMDT4+D9cY5/Zi+EwGLAZJyD9gV6C7HIzxikWYcB0 NqoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696941493; x=1697546293; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xG/kQcpjHKvROFosg51BlYZpEIpg/LPz2h9KIYVbrvw=; b=E7SWXg2OIvDLwCS2pt9F849RaXrXRHmLMv9TO7ZSokZKY9XF76Bh6QjC6aW4pnmSGb lwSGz6Og5y61430B9CDuMWtUbQ1KLq/B3Og0UuM6HobXj+g1HfB1wzVqdNFHk6hCKonH EBrgddZ4nIdnb+kGJP8UBF50yZ3KtYLc3MdpXmpel0QE6w+2kA5J/veS0VfT5o0SV2jO IX5v746lkeGRdwCXMH21oRVR5Dsb9htTp1bCUpLF9sK7LHcFiWA1caLiU2a3NbfFNDCH lu1dpOKP0shTAFoinIHD12sxgTMQkLRiFj8HExocCTuxFB+MdgykukSTp/yWujSy/A77 cSfg== X-Gm-Message-State: AOJu0Yx7AHCcyj46MgnZZb8A452VtoP8Dau+5988fF3BhZA/fcn2S/jy 6R7VLdoxXbSfvR2xVse9tLQ0lUzr7F4= X-Google-Smtp-Source: AGHT+IEKQqh/jh0nhkywCJ4sgjyVcJ9RbtOYSaYGWI3ra9Dywzlm1IyalMRXR/EjM3niLFEKYy2N2g== X-Received: by 2002:a05:6a00:1956:b0:68c:1004:1feb with SMTP id s22-20020a056a00195600b0068c10041febmr20141423pfk.32.1696941492571; Tue, 10 Oct 2023 05:38:12 -0700 (PDT) Received: from [192.168.0.234] ([152.168.142.156]) by smtp.gmail.com with ESMTPSA id k22-20020aa78216000000b0069337938be8sm8115774pfi.110.2023.10.10.05.38.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Oct 2023 05:38:12 -0700 (PDT) Message-ID: <9e593b67-1847-40ed-bd8b-0b63e33b921b@gmail.com> Date: Tue, 10 Oct 2023 09:38:09 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <35b1b9cd-e2a6-9d9d-7f56-2026bbef4ef2@gmail.com> <87jzru4qzg.fsf@oook.m.uunet.de> Content-Language: en-US From: Mauro Aranda In-Reply-To: <87jzru4qzg.fsf@oook.m.uunet.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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 (-) On 10/10/23 09:11, Harald Jörg wrote: > This is now fixed in master by some reordering of rules, so that the > rules don't need to override elements which have already been fontified. > > Contrary to my original belief, the patch to Bug#22867 only fixed > unexpected fontification of arrays and hashes as a whole, but not for > elements of these. > Thank you for fixing this. Please, keep me CC'ed in other bug reports of mine.