From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#58471: 29.0.50; perl-mode doesn't fontify comments when using the /x modifier Date: Wed, 12 Oct 2022 11:35:26 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006d9a6705ead74e21" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17815"; mail-complaints-to="usenet@ciao.gmane.io" To: 58471@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 12 16:57:05 2022 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 1oidAP-0004M8-Hg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 16:57:05 +0200 Original-Received: from localhost ([::1]:49464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oidAO-0005fc-C6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 10:57:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oicq3-0007n7-8T for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:36:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59095) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oicq2-0007HU-Ul for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oicq2-0007ZW-KF for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Oct 2022 14:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58471 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.166558534729076 (code B ref -1); Wed, 12 Oct 2022 14:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2022 14:35:47 +0000 Original-Received: from localhost ([127.0.0.1]:58173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oicpm-0007Yu-C7 for submit@debbugs.gnu.org; Wed, 12 Oct 2022 10:35:46 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oicpk-0007Ym-Ck for submit@debbugs.gnu.org; Wed, 12 Oct 2022 10:35:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oicpk-0007WG-5o for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:35:44 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:46047) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oicpi-0007FO-2W for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 10:35:43 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id sc25so32284410ejc.12 for ; Wed, 12 Oct 2022 07:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Sl4LmYss/xkq1NJV2zSIdICobKNeE0talv209uOk6DE=; b=WKev3pPkXzUxKnStXdt1uqhWvrMepMngjgbN11X8pezBVnjzNZ2EyuNKJbR0UPMbQW n7Mp6mMQam5N+flTNmuAynImAs3wueNZziBo/3Y/6zTXc8ddKgau4ODeYxptECFC0n+z cg8msw8bHhNztjAchZ72/nd8SyfRKO9MC89R2QFSMNfCA7aWwgBzVYQFNX3Bm/8zKNJq qjmriO85XHZ9YLuddWtZCTrm1yrdJi59OCByYtL6mPwu5k2UQoR4nS3bW22TXPLrwUTR KLh5LvpwQOw3/KNFJQil/2YXJM6uUiMVFrgDVkIMxXjruUfNc8BY2gBfzamlpwMIfKuH /9PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Sl4LmYss/xkq1NJV2zSIdICobKNeE0talv209uOk6DE=; b=PEInuPVc1tQ53HwTWCZYgZLiNk0OW6jmllGs6no1MpYmZE83UbrIFHOVWD6wIE/S7A lmnqhmBJUKlqui90yHPNXeEUUWByL/ovdfUQY4nxePM67S0ieQ0WGtJs4CEVKPtgLb6I Y+VJ0uunQrBk8Tm1hE30r2RzvlT/DXqzsn9h5k/TY/kb5jf8bedIXu/aoQBFEJUsLEOR cC2kpmH7dz5bDeb4DpMxNBOLfU2IuiAbCUobAII1RcgFzWvJfLh/ixgfZqfjGt9uQ94L RKZ7mwS3/MhC2OzVSMCqtj84xScQng6zj+KsRqNHBhOKj17yYTdsjRgj9xCALe5ayVER XYZw== X-Gm-Message-State: ACrzQf1UnlpFXy1pNjTgGYkIaCImT9vaMdvi4u5wetAXh95QOIgCOBRO vnmevciMcY9Kd7UPsY8CFvrRvafsHI94xWSsVqjD//Iq637EnSbx X-Google-Smtp-Source: AMsMyM6X1zNJiVPjMQylTfvsgSf4gdLaUO0DkErNq7K/gAtkKTqP7WdL8WwgXAT8v9oStTbWxAwPXIwl+qhp1us0r3A= X-Received: by 2002:a17:907:72d1:b0:78d:ec48:d402 with SMTP id du17-20020a17090772d100b0078dec48d402mr4434355ejc.768.1665585338225; Wed, 12 Oct 2022 07:35:38 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=maurooaranda@gmail.com; helo=mail-ej1-x62b.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, HTML_MESSAGE=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-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" Xref: news.gmane.io gmane.emacs.bugs:245218 Archived-At: --0000000000006d9a6705ead74e21 Content-Type: text/plain; charset="UTF-8" After emacs -Q: C-x C-f bug.pl my $foo = qr/ ^ (\s*) # $1 (=?) # $2 /x; "# $1" and "# $2" are comments, but get fontified with font-lock-string-face. Configured using: 'configure --with-mailutils' 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 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: Perl 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 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 mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x cperl-mode rx facemenu pp wid-edit descr-text help-mode cl-loaddefs cl-lib perl-mode rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd 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 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 move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 50097 6197) (symbols 48 6422 0) (strings 32 17305 1295) (string-bytes 1 553969) (vectors 16 11227) (vector-slots 8 173557 9449) (floats 8 29 21) (intervals 56 304 0) (buffers 1000 12)) --0000000000006d9a6705ead74e21 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
After emacs -Q:
C-x C-f bug.p= l
my $foo =3D qr/ ^ (\s*)=C2=A0 # $1
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = (=3D?) =C2=A0 =C2=A0# $2
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /x;

"= # $1" and "# $2" are comments, but get fontified with
fon= t-lock-string-face.


Configured using:
=C2=A0'configure --= with-mailutils'

Configured features:
ACL CAIRO DBUS FREETYPE = GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSEL= INUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG= SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XIN= PUT2 XPM GTK3 ZLIB

Important settings:
=C2=A0 value of $LC_MONETA= RY: es_AR.UTF-8
=C2=A0 value of $LC_NUMERIC: es_AR.UTF-8
=C2=A0 value= of $LC_TIME: es_AR.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 v= alue of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix<= br>
Major mode: Perl

Minor modes in effect:
=C2=A0 tooltip-mod= e: t
=C2=A0 global-eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 = electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mo= de: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2= =A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cu= rsor-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode: t=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0= auto-encryption-mode: t
=C2=A0 auto-compression-mode: t

Load-pat= h shadows:
None found.

Features:
(shadow sort mail-extr emacsb= ug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-s= ec password-cache epa derived epg rfc6068
epg-config gnus-util text-prop= erty-search mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev = gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-pr= svr mail-utils time-date subr-x
cperl-mode rx facemenu pp wid-edit descr= -text help-mode cl-loaddefs
cl-lib perl-mode rmc iso-transl tooltip eldo= c paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode= mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset imag= e regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mod= e 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/t= ty-colors
frame minibuffer nadvice seq simple cl-generic indonesian phil= ippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-vi= et lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak cze= ch
european ethiopic indian cyrillic chinese composite emoji-zwj charscr= ipt
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclos= ure
cl-preloaded button loaddefs faces cus-face macroexp files windowtext-properties overlay sha1 md5 base64 format env code-pages mule
cust= om widget keymap hashtable-print-readable backquote threads dbusbind
ino= tify lcms2 dynamic-setting system-font-setting font-render-setting
cairo= move-toolbar gtk x-toolkit xinput2 x multi-tty
make-network-process ema= cs)

Memory information:
((conses 16 50097 6197)
=C2=A0(symbols= 48 6422 0)
=C2=A0(strings 32 17305 1295)
=C2=A0(string-bytes 1 55396= 9)
=C2=A0(vectors 16 11227)
=C2=A0(vector-slots 8 173557 9449)
=C2= =A0(floats 8 29 21)
=C2=A0(intervals 56 304 0)
=C2=A0(buffers 1000 12= ))
--0000000000006d9a6705ead74e21--