From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Newsgroups: gmane.emacs.bugs Subject: bug#997: perl-mode: Merging was not quite correct Date: Tue, 17 Nov 2020 18:52:00 +0100 Message-ID: <87tutn98hr.fsf@hajtower> References: <871vzhoasd.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40426"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: 997@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 17 18:53:12 2020 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 1kf5AE-000AMR-UL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Nov 2020 18:53:10 +0100 Original-Received: from localhost ([::1]:43060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kf5AD-00040U-ST for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Nov 2020 12:53:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf5A6-00040M-PH for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 12:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kf5A6-0004CD-GO for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 12:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kf5A6-0001Yg-FN for bug-gnu-emacs@gnu.org; Tue, 17 Nov 2020 12:53:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <871vzhoasd.fsf@jidanni.org> Resent-From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Nov 2020 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 997 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed confirmed Original-Received: via spool by 997-submit@debbugs.gnu.org id=B997.16056355325897 (code B ref 997); Tue, 17 Nov 2020 17:53:02 +0000 Original-Received: (at 997) by debbugs.gnu.org; 17 Nov 2020 17:52:12 +0000 Original-Received: from localhost ([127.0.0.1]:32848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf59I-0001X3-0M for submit@debbugs.gnu.org; Tue, 17 Nov 2020 12:52:12 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:39084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf59E-0001Wo-Cp for 997@debbugs.gnu.org; Tue, 17 Nov 2020 12:52:10 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9142E16005C for <997@debbugs.gnu.org>; Tue, 17 Nov 2020 18:52:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1605635521; bh=pcTHYH02/MrVyaIaPXnF+EwYHdyP8tvpiGco2b7wL8Q=; h=From:To:Subject:Date:From; b=FnQ0DP+h+FaMg9zMp4vWRV4YwNzMLWflHu6lH+HjdEwys0zy+oVtshDgSD6ndFq0N j0p+/jBsIsd3cQ1MbVtd8j4THGYT65KC9t+SS5JyjsKRvMB3Du/kYcXqRn1P08Tqhk XY30WUN9HlAlYmHd6HiSGTEdhomlw6jBP9z7KORoXgaa5QHPBwnRFUVmb88eIhSXHx ZlThxvqLqsEJdkKH/KNw9nwXAHgTk84/GQLwyMKU7vZOclPNxbLRU1k/fWHefO04Xa qxHgSKa8AphiTD2cfmJK4+//4022OvVGKWGmLmoiSzNUlRC1ewPN4YmnpfLBweK/HN nSySRmIwWVF8w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CbD6873fKz6tmR for <997@debbugs.gnu.org>; Tue, 17 Nov 2020 18:52:00 +0100 (CET) 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:193563 Archived-At: unmerge 997 reopen 997 thanks So that's another attempt to exercise my super powers... It turns out that 997, which had been merged with 26850, is actually a different issue, and it is not fixed by the recent patch which successfully dealt with Bug#26850 and Bug#26745 for Perl mode. CPerl mode handles the examples correctly. The issues are all related to each other because they all deal with the difficulties to distinguish between a slash as a division sign and a slash as a regex introduction. The apostrophe "'" is a red herring - it increases the visibility of the bug, but isn't the root cause. Right now, Perl mode tries to detect regexes based on what's before them. Therefore, 26850 could be fixed by adding "return" to the stuff which can occur before a regex. However, the examples in this bug demonstrate regexes with *nothing* before them: Regular expressions can start a statement just fine, they have a return value and set some variables as side effects. Correctly detecting "nothing" in a regex needs some care. So I'd like to treat this as a separate bug which remains open for now. -- Cheers, haj