From unknown Sat Jun 21 02:55:40 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#26850 <26850@debbugs.gnu.org> To: bug#26850 <26850@debbugs.gnu.org> Subject: Status: perl-mode: apostrophes trigger color change in wrong situation Reply-To: bug#26850 <26850@debbugs.gnu.org> Date: Sat, 21 Jun 2025 09:55:40 +0000 retitle 26850 perl-mode: apostrophes trigger color change in wrong situation reassign 26850 emacs submitter 26850 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 26850 minor tag 26850 fixed confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 09 01:43:11 2017 Received: (at submit) by debbugs.gnu.org; 9 May 2017 05:43:12 +0000 Received: from localhost ([127.0.0.1]:60525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7xvT-0005dk-Md for submit@debbugs.gnu.org; Tue, 09 May 2017 01:43:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7xvS-0005dY-7D for submit@debbugs.gnu.org; Tue, 09 May 2017 01:43:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7xvM-0003tV-CF for submit@debbugs.gnu.org; Tue, 09 May 2017 01:43:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_20,DATE_IN_PAST_06_12, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54374) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7xvM-0003tR-9A for submit@debbugs.gnu.org; Tue, 09 May 2017 01:43:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7xvL-0006jN-C7 for bug-gnu-emacs@gnu.org; Tue, 09 May 2017 01:43:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7xvI-0003ss-8L for bug-gnu-emacs@gnu.org; Tue, 09 May 2017 01:43:03 -0400 Received: from homie.mail.dreamhost.com ([208.97.132.208]:38853 helo=homiemail-a6.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7xvH-0003sK-VM for bug-gnu-emacs@gnu.org; Tue, 09 May 2017 01:43:00 -0400 Received: from homiemail-a6.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTP id 0768F59806C for ; Mon, 8 May 2017 22:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=91h/5TbkazL9ldgT26Trixthmrc=; b=dkqyA9EAOocq5SZC i/COHqfjG46NBg3ptlOVDgvuyHWap4PT8dt3pMoQl19AAB8iHQvNzb6J2JHLm/H7 RDaH5ufgjXlpjDbtHslr2U3AQiwQfjBk8GhtW9EqEm289INfehsYdDJo/aWBwxza VXXKQ8ikamAoso6pKsqcUZwIidQ= Received: from jidanni.org (114-26-46-147.dynamic-ip.hinet.net [114.26.46.147]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTPSA id C1745598069 for ; Mon, 8 May 2017 22:42:57 -0700 (PDT) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs Subject: perl-mode: apostrophes trigger color change in wrong situation Date: Tue, 09 May 2017 06:50:40 +0800 Message-ID: <87ziendku7.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.9 (---) 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: -3.9 (---) Apostrophes trigger color change in wrong situation: sub interesting { $_ = shift; return />Today is .+'s birthday\. likes? your comment: / || /&birthdays=.*birthdays?\.<\/a>/; } From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 09 14:50:09 2017 Received: (at control) by debbugs.gnu.org; 9 Jul 2017 18:50:10 +0000 Received: from localhost ([127.0.0.1]:59152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUHHV-0007qR-Mi for submit@debbugs.gnu.org; Sun, 09 Jul 2017 14:50:09 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:36003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUHHU-0007qF-Kt for control@debbugs.gnu.org; Sun, 09 Jul 2017 14:50:08 -0400 Received: by mail-it0-f48.google.com with SMTP id m68so16535449ith.1 for ; Sun, 09 Jul 2017 11:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=EA0ebIwhQM1K667sRxuKVDThaxKgjGi8MBSxXx1PE6Q=; b=U4FYJ+6S0w+5zanERKS1muywElQa4jn1woKouGJBRj2QD26hACFCskoJVWB8694ocE qxdGfu7gYfwZsNwC5sTeVdWLS/UOd/NJYbSnxytKiVEKH4jlNa7hDfYKlGQ00uANXnlr DVIKBsI6L5I0wgj8aZvliq1A6JmPg/VyFRUHPEFbRBovU7NLcTkGLGFeAMZqmnH8xjdg ukaZCCryz1awnI4kyrYXfzskIeVlb+/8pUaY7xNcpksdSQrHqyolm0R1CkoawipO6NWJ Hol/rrHInwfhCukMLLgJpf31CXOvuXvhRIy576Z5zdq5MbK4feUskCFTqUJBFR85/w0F RMMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=EA0ebIwhQM1K667sRxuKVDThaxKgjGi8MBSxXx1PE6Q=; b=HL7AxPEhQteTCxKFR+9LEG0le2mLDgM3+ThoPwIehnNCFIjgO93KDFArQa/6XA6tHa 31F55HzFUgMr4C158k8OIUDnbMzYs0nSctcJ6lAqvWBS54eLsvWEAkVFSxKN4BLDjH8r d1klH5AaM+Ik82sKpdhUG7NOlJ+4qqFmQmZSBakm8FU1x0ZAs/k7a6HbptpcqfH7iOeM 0dUgAlPwbVB7sG7fQLRvJXkGhGtJ1pRRMo9t6++58+bSQ8GoC8HTC24rOxb8bI8inHDv D5LxwAJ/lAkNqSfE9OwvsmE2JKqx5fib59ZpfvFqkBXgVbdyeXPtDk0B6Xn+luMBh8Ij JzLA== X-Gm-Message-State: AIVw111VL3/MKCNwlAUXbQwT1+51n73j2P1gjXg0kmbfsBplyt22qH0Z KoO60GCO4obZIQvv X-Received: by 10.36.51.82 with SMTP id k79mr8404915itk.32.1499626202795; Sun, 09 Jul 2017 11:50:02 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id k16sm2973063itb.1.2017.07.09.11.50.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Jul 2017 11:50:02 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #997 Date: Sun, 09 Jul 2017 14:51:35 -0400 Message-ID: <8760f1h2a0.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) 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: 0.7 (/) merge 997 26850 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 28 21:58:47 2020 Received: (at control) by debbugs.gnu.org; 29 Feb 2020 02:58:47 +0000 Received: from localhost ([127.0.0.1]:34026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7sL1-0000rl-HP for submit@debbugs.gnu.org; Fri, 28 Feb 2020 21:58:47 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:54486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7sKx-0000rK-4S; Fri, 28 Feb 2020 21:58:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To: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=Rvd3hCyM8G+ryGVWy0Nee6gfe1E/EXf6ZLENC2V2zIE=; b=TyU+I0GYiSSAsfRxdovGkVsgUw XKol6iUeOOFzA7YPQdMI4epDCIHFuvFF2UEgOLueHyMieKTLNFnVZtsRolR30/Cx65+VwD50QEwqZ VwOSG/H4uKL3O0IB9RcV7Aq10RxPowIQuzuSWRFYVva5zNYEGtj+oHClp+bjWga8L3aRKPfTte/HW 7ilE+Fe0NJQTp2EAFe75S5oYl1eSrmdRxGl5soS/GxVpf+5TNJBYj7azerG05KLyI48sOKChdgtOx AE1ppFw8SZn1ZYdLaGVLInHNI/B7KicA62S0nztlsck1tmBD4AoUnrnEXK5OpjfU6dE8UHsBbF4BV eilyD2NQ==; Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:44392 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1j7sKq-001PoC-W8; Fri, 28 Feb 2020 21:58:37 -0500 From: Stefan Kangas To: jidanni@jidanni.org Subject: Re: bug#997: perl mode blows "'" etc. In-Reply-To: <871vzhoasd.fsf@jidanni.org> (jidanni's message of "Thu, 18 Sep 2008 21:15:14 +0800") References: <871vzhoasd.fsf@jidanni.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Sat, 29 Feb 2020 03:58:35 +0100 Message-ID: <87a75285gk.fsf@stefankangas.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 997@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 (-) title 997 Incorrect perl-mode syntax highlighting in some cases (e.g. using "'") tags 997 confirmed found 997 28.0.50 thanks jidanni@jidanni.org writes: > Perl mode screws up bad with this file. Cperl mode gets it better. > $ perl -c p.pl > p.pl syntax OK > $ cat p.pl > /this is a perl program to demonstrate emacs's wacky color biz/; > /this line is in the wrong color until here'/; #/// I can reproduce this on current master (28.0.50). Open a file like this using perl-mode under emacs -Q to see the incorrect highlighting: /correct 'incorrect/; /incorrect' correct/; The problem goes away if the file looks like this instead: $foo =~ /foobar/; /correct 'incorrect/; /incorrect 'correct/; > /\b.*\bpic(ture)?s\b/; > /this line is in the wrong color/; > #this comment turns back on emacs correct color: \b\b > /this line is in the right color/; > /but not this line until the end\/;/m; I see some incorrect highlighting in this example too. Adding the "$foo =~ /foobar/;" line from above seems to fix it here too. > $ emacs -Q p.pl > Anyway, one usually ends up having to stick in special comments with > some / ; ` ' etc. in them lest large tracts of code become the wrong > color. emacs-version "22.2.1" I tried inserting the problematic lines into a larger Perl file, but I couldn't reproduce the issue. I'm not sure if that means that the incorrect coloring only happens when these lines are inserted at the very beginning of a file. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 16 17:13:29 2020 Received: (at 26850) by debbugs.gnu.org; 16 Nov 2020 22:13:30 +0000 Received: from localhost ([127.0.0.1]:57601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kemkb-0007ch-GC for submit@debbugs.gnu.org; Mon, 16 Nov 2020 17:13:29 -0500 Received: from mout01.posteo.de ([185.67.36.65]:40150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kemkV-0007cQ-MB for 26850@debbugs.gnu.org; Mon, 16 Nov 2020 17:13:27 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4925216005F for <26850@debbugs.gnu.org>; Mon, 16 Nov 2020 23:13:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1605564797; bh=OXge4hPJ18cJrl0pKwbR8vCYNthcoOnDZ4aFXnwOCko=; h=From:To:Subject:Date:From; b=GV2bmcgeluRPTUhg+w7TiHHh+pVbxNw9o+7FWSSbalxpg9uy3057jX6hc6KtLVLaM TSsNXm768+EzqKiMABbE1QzKKNfOdDOrgfcJq3/QjArStu9OrCMsHBkq4kAeOSEbHI ALIgkEecSV3Ni9IIE7+BMJm9LBCFOdp3PaqHHa0gJi6ouKrSi8SETmeIcBXFJrNFJ9 SFU8k1/uP2HwwmScPF29DMWJRrcaFwZlIBImMQffCalJg60x967789fVkGQMnxUAex j5EiRgiLAcsSWz90FRhhusnf3Q7HBcYHITbcDmsqDioYUcJS54LuMDpDczoUGzgBT6 /mlo2bKUeS/vA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CZjy4549Qz9rxH for <26850@debbugs.gnu.org>; Mon, 16 Nov 2020 23:13:16 +0100 (CET) From: haj@posteo.de (Harald =?utf-8?Q?J=C3=B6rg?=) To: 26850@debbugs.gnu.org Subject: perl-mode and cperl-mode: Recognize regex after "return" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Mon, 16 Nov 2020 23:13:16 +0100 Message-ID: <87k0ulne6b.fsf@hajtower> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 26850 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 (---) --=-=-= Content-Type: text/plain merge 26850 26745 thanks I don't know whether I have the authority to merge bugs, but they clearly are the same issue, so I'll just give it a try. The apostrophe, as mentioned in the subject of Bug#26850, is irrelevant: The actual problem in both reports is the failure to recognize a regular expression after the keyword "return". The apostrophe just changes the interpretation of the text which follows. There are several workarounds: You could, for example, explicitly write the regexes as $_ =~ /.../; ... but of course, why would you do that, since $_ is superfluous. Alternatively, you could just omit the "return", which is also superfluous in the examples provided. Nevertheless, the patch fixes the issue, which happens in both perl-mode and cperl-mode. I guess that in neither mode the list of keywords which precede a regex is actually complete, but "return" is a use case relevant enough to be fixed. -- Cheers, haj --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-cperl-mode-perl-mode-Recognize-a-regular-expression-.patch Content-Description: Recognize regex after "return" >From bab7a88cb14d9b464f2d976094f46eae46500c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20J=C3=B6rg?= Date: Mon, 16 Nov 2020 22:47:31 +0100 Subject: [PATCH] ; cperl-mode, perl-mode: Recognize a regular expression after "return" * lisp/progmodes/perl-mode.el (defconst): Add "return" to 'perl--syntax-exp-intro-keywords' (Bug#26850). * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres): Add "return" to the keywords which start a regex. * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-28650): New test. --- lisp/progmodes/cperl-mode.el | 2 +- lisp/progmodes/perl-mode.el | 2 +- .../cperl-mode-resources/cperl-bug-26850.pl | 16 ++++++++++++++++ test/lisp/progmodes/cperl-mode-tests.el | 15 +++++++++++++++ 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 test/lisp/progmodes/cperl-mode-resources/cperl-bug-26850.pl diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index a42ace105a..0dc45515d4 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -3959,7 +3959,7 @@ cperl-find-pods-heres (not (memq (preceding-char) '(?$ ?@ ?& ?%))) (looking-at - "\\(while\\|if\\|unless\\|until\\|and\\|or\\|not\\|xor\\|split\\|grep\\|map\\|print\\|say\\)\\>"))))) + "\\(while\\|if\\|unless\\|until\\|and\\|or\\|not\\|xor\\|split\\|grep\\|map\\|print\\|say\\|return\\)\\>"))))) (and (eq (preceding-char) ?.) (eq (char-after (- (point) 2)) ?.)) (bobp)) diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el index 7265aeee45..bb19436cda 100644 --- a/lisp/progmodes/perl-mode.el +++ b/lisp/progmodes/perl-mode.el @@ -209,7 +209,7 @@ perl-quote-like-pairs (eval-and-compile (defconst perl--syntax-exp-intro-keywords '("split" "if" "unless" "until" "while" "print" - "grep" "map" "not" "or" "and" "for" "foreach")) + "grep" "map" "not" "or" "and" "for" "foreach" "return")) (defconst perl--syntax-exp-intro-regexp (concat "\\(?:\\(?:^\\|[^$@&%[:word:]]\\)" diff --git a/test/lisp/progmodes/cperl-mode-resources/cperl-bug-26850.pl b/test/lisp/progmodes/cperl-mode-resources/cperl-bug-26850.pl new file mode 100644 index 0000000000..a02ea29fe9 --- /dev/null +++ b/test/lisp/progmodes/cperl-mode-resources/cperl-bug-26850.pl @@ -0,0 +1,16 @@ +sub interesting { + $_ = shift; + return + />Today is .+\'s birthday\. likes? your comment: / + || /&birthdays=.*birthdays?\.<\/a>/; +} + +sub boring { + return + / likes? your post in ) id 1kenpr-00034F-U6 for submit@debbugs.gnu.org; Mon, 16 Nov 2020 18:23:00 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kenpq-000342-Bl for control@debbugs.gnu.org; Mon, 16 Nov 2020 18:22:58 -0500 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=gcTxl4DjcTqiU9SmiL3LgwPpU3Xv4ez4KWrdFiQ3z+U=; b=g1NhLXArRXx5j3IWYlknyf/BiB uyC2azr+gbZRjONj5CxAzrEE02T/UPCrffeEjPIRai7Nm9CHmn7V5d3WspHjqV1KdxWXX/N4FUo5E jgV7/23/Lro+GJh9yd2xWaAaz56tCFhlidSCE2AdlxIknKwAnLhss5+c6mb1fTtc/7YE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kenpi-0007Dv-1E for control@debbugs.gnu.org; Tue, 17 Nov 2020 00:22:52 +0100 Date: Tue, 17 Nov 2020 00:22:48 +0100 Message-Id: <87mtzgsx87.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #26745 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: forcemerge 26745 26850 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: 0.0 (/) 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: -1.0 (-) forcemerge 26745 26850 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 16 18:25:00 2020 Received: (at 26850) by debbugs.gnu.org; 16 Nov 2020 23:25:00 +0000 Received: from localhost ([127.0.0.1]:57744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kenrk-00037k-AN for submit@debbugs.gnu.org; Mon, 16 Nov 2020 18:25:00 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kenri-00037U-1L for 26850@debbugs.gnu.org; Mon, 16 Nov 2020 18:24:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=7GT/l8BIVxY8evudOaxNRlgVL5W9xO3oXN7c2h6LiOA=; b=Df0bIHoddlL3XD98pm+bCTxc+7 LtEShkTNHj0pVRx5eqMYO4FSaF5ivIar0R/hwV9NWGeY9YbbGTP7V2fLd4t+2u1fnKnt89IJf2jaA 5cT3UtlLO/d3MqnJhv5xx4VwIDS8+epdVow7Z8qK+o7pZkVgkA9YQT1Ut8UkCYE/r/tM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kenrY-0007FC-0L; Tue, 17 Nov 2020 00:24:48 +0100 From: Lars Ingebrigtsen To: haj@posteo.de (Harald =?utf-8?Q?J=C3=B6rg?=) Subject: Re: bug#26850: perl-mode and cperl-mode: Recognize regex after "return" References: <87ziendku7.fsf@jidanni.org> <87k0ulne6b.fsf@hajtower> X-Now-Playing: Yes's _The Yes Album_: "Perpetual Change" Date: Tue, 17 Nov 2020 00:24:42 +0100 In-Reply-To: <87k0ulne6b.fsf@hajtower> ("Harald =?utf-8?Q?J=C3=B6rg=22's?= message of "Mon, 16 Nov 2020 23:13:16 +0100") Message-ID: <87lff0sx51.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: haj@posteo.de (Harald Jörg) writes: > I don't know whether I have the authority to merge bugs, but they > clearly are the same issue, so I'll just give it a try. Oh, sure, I think everybody can. Hm... but it doesn't seem to have gone through in this case? When the statuses of the bugs involved aren't the same, you have to use "forcemerge" to make it actually h [...] 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: 0.0 (/) X-Debbugs-Envelope-To: 26850 Cc: 26850@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 (-) haj@posteo.de (Harald J=C3=B6rg) writes: > I don't know whether I have the authority to merge bugs, but they > clearly are the same issue, so I'll just give it a try. Oh, sure, I think everybody can. Hm... but it doesn't seem to have gone through in this case? When the statuses of the bugs involved aren't the same, you have to use "forcemerge" to make it actually happened; I did that now. > There are several workarounds: You could, for example, explicitly write > the regexes as $_ =3D~ /.../; ... but of course, why would you do that, > since $_ is superfluous. Alternatively, you could just omit the > "return", which is also superfluous in the examples provided. > > Nevertheless, the patch fixes the issue, which happens in both perl-mode > and cperl-mode. I guess that in neither mode the list of keywords which > precede a regex is actually complete, but "return" is a use case > relevant enough to be fixed. Thanks for the patch; applied to Emacs 28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 16 18:25:18 2020 Received: (at control) by debbugs.gnu.org; 16 Nov 2020 23:25:18 +0000 Received: from localhost ([127.0.0.1]:57748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kens6-00038q-5z for submit@debbugs.gnu.org; Mon, 16 Nov 2020 18:25:18 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kens4-00038d-Ij for control@debbugs.gnu.org; Mon, 16 Nov 2020 18:25:17 -0500 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=53a6Btd31po0vt1Cuum12d5AID67DivYL9tiMflXh5I=; b=MZy6/H1QNDm8W6d9bbWhPdAshv nlvPJ2GxlZg249v3CZ/MahJoRumH6ut2kgKKuoWR+bs0EEfpWpoU93UXi4q/FzYu3ifvRlDIONu8o WPTQT8JSZWecMH0UQVAEHfHQ1rr/31OdizPF5yvN3c1h0XeLT5jjYBqqHGmNNoJ/LeTI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kenrw-0007Hn-Sn for control@debbugs.gnu.org; Tue, 17 Nov 2020 00:25:11 +0100 Date: Tue, 17 Nov 2020 00:25:07 +0100 Message-Id: <87k0uksx4c.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #26850 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: tags 26850 fixed close 26850 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: 0.0 (/) 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: -1.0 (-) tags 26850 fixed close 26850 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 19 12:07:15 2020 Received: (at control) by debbugs.gnu.org; 19 Nov 2020 17:07:15 +0000 Received: from localhost ([127.0.0.1]:40832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfnOs-0002l0-Qj for submit@debbugs.gnu.org; Thu, 19 Nov 2020 12:07:15 -0500 Received: from mout01.posteo.de ([185.67.36.65]:42310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfnOp-0002kd-Uk for control@debbugs.gnu.org; Thu, 19 Nov 2020 12:07:12 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8D54116006C for ; Thu, 19 Nov 2020 18:07:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1605805625; bh=cyrbQeQ1J1rOBVxMg3jkZvkl6a1YUuwXsx/LK5PT/KA=; h=From:To:Cc:Subject:Date:From; b=gWeEAh6s9qW2Mn7LArLZANUvhIYT7Ge2YQ4kqq4VHBvqdOy3WS/1NBj/2wkDmUa3q aoRktbqxwYSN5TRKK8jzsCcUAUrD2VECrgQk+H3Yl8CbtMQ4W0rq22EZcHMeP462Mm eLSfZwwCUf5QlH41MNA+nMcbPAzgXifpo0wKkBmpa6j4tR1e/QrrcBjjByXYE1h+S1 mRqbdL0YqG4anGhvEFiPkys7fjtMBmx+vcmv7GLDFzcAaNhFgYu/bskyL1ktReAZd+ sxk3XmjcntMPVWh/3mAJ5cDs2yqt1hvLx/lP1IOTSoqIIT5UppRl/Ixq214rXmq9y9 ezkJzCotvhZ9w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CcR1N6fRtz9rxK; Thu, 19 Nov 2020 18:07:04 +0100 (CET) From: haj@posteo.de (Harald =?utf-8?Q?J=C3=B6rg?=) To: 997@debbugs.gnu.org Subject: perl-mode: Un-merging an unrelated bug User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Thu, 19 Nov 2020 18:07:04 +0100 Message-ID: <87lfex6zt3.fsf@hajtower> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control Cc: Noam Postavsky 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 (---) unmerge 997 reopen 997 thanks See my previous message for an explanation why I want to unmerge, and Noam Postavsky's clarification (thank you!) why I'm sending this again, now Bcc'ed to control@debbugs.gnu.org. One day I'll be familiar enough with these procedures... I hope. -- Cheers, haj From unknown Sat Jun 21 02:55:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Dec 2020 12: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