From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 20 07:14:01 2023 Received: (at submit) by debbugs.gnu.org; 20 Jun 2023 11:14:01 +0000 Received: from localhost ([127.0.0.1]:58191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBZJB-0002EH-9D for submit@debbugs.gnu.org; Tue, 20 Jun 2023 07:14:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:34952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBZJ9-0002E9-8Z for submit@debbugs.gnu.org; Tue, 20 Jun 2023 07:13:59 -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 1qBZJ0-0006as-Tn for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 07:13:56 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBZIr-0005gD-5y for bug-gnu-emacs@gnu.org; Tue, 20 Jun 2023 07:13:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3A22A240101 for ; Tue, 20 Jun 2023 13:13:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1687259618; bh=Ms/lDHblB50LYkJxDBqnnseJktk0BTExfrD+3Lfp5Cw=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=I38x+QfNfMcweHwgHYBYxxKBPcl+GYtMlVjIfWsihqWgrui/4ZI+LgQd2VBIU/B/b 1HE/7m7feuhYH8kwc0SpkyamwjLhh/Vk6Q5OsZTcgRevQpWe7zjPrWwwshYpg1wXxi sZKe27SE8NumX16GVNkkMN9CraMvd5HuRfaWVzxyJIgiZgJGLub0RgWuZVLUcH1XQe Q39erxW3jfYunN34rklMvA3bx7MhT4Ji4wueVt8pjU6FjrcY/+ApHKEUMH9G/OprQ6 dr9oCxy4/NB2KfoqpKE7QkUN+SAHrUCph0ALM85jVofCoFPe1+pJ0dWpCu02A+qWuV RoEnzC5StVTGQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QlkXK5qjpz9rxB for ; Tue, 20 Jun 2023 13:13:37 +0200 (CEST) From: =?utf-8?Q?Harald_J=C3=B6rg?= To: bug-gnu-emacs@gnu.org Subject: 30.0.50; cperl-mode.el: bad recognition of multiline declarations Date: Tue, 20 Jun 2023 11:13:37 +0000 Message-ID: <87o7lajsim.fsf@oook.m.uunet.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=haj@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Owner: haj@posteo.de In CPerl mode, several constructs aren't recognized when they span several lines, leading to bad fontification and indentation. "Modern" Perl declarations like subroutine signatures and class attributes are more likely to span more than one line, so this should be fixed. Example 1 (copy to a buffer and run M-x cperl-mode): Only the first line is fontified here: ---------------------------------------------------------------------- my ($var1, $var2, $var3) ---------------------------------------------------------------------- Example 2 (copy to a buffer and run M-x cperl-mode): The package name isn't fontified. ---------------------------------------------------------------------- package Foo 0.1; ---------------------------------------------------------------------- Example 3 (this happens only while entering that code): When you type in a subroutine like this, the subroutine name isn't fontified. ---------------------------------------------------------------------- sub do_stuff { ...; } ---------------------------------------------------------------------- Example 4 (this happens only while typing): Put the cursor at the beginning of the second line and enter a space. The rest of the buffer is fontified as string. ---------------------------------------------------------------------- sub do_stuff ($param1, $param2) { ...; } sub oops { ...; } ---------------------------------------------------------------------- Examples 3 and 4 can be recovered from by running M-x cperl-find-pods-heres or by restarting M-x cperl-mode: They are caused by cperl-mode not reacting correctly to calls from jit-lock. -- Cheers, haj From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 16:20:33 2023 Received: (at 64190-done) by debbugs.gnu.org; 1 Jul 2023 20:20:33 +0000 Received: from localhost ([127.0.0.1]:58747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFh57-0004fA-3h for submit@debbugs.gnu.org; Sat, 01 Jul 2023 16:20:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]:38255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFh52-0004eg-0B for 64190-done@debbugs.gnu.org; Sat, 01 Jul 2023 16:20:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 78B99240029 for <64190-done@debbugs.gnu.org>; Sat, 1 Jul 2023 22:20:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1688242822; bh=CHZQs26wpMiL9jLF77kLuQmBkY/tjxNtStTDMrwGnw0=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=b4n4x3qQSSIhu9hjlkbiWCB4bBjkQNlZ5ag1TsWzRcNeXLrRLzOhlDFqWn64T1UeB NvBqfrc2Fb47byvB46xEyiiv4xL0tWdOF9NX2s+po6Z/etVS5gT6j7Lpo86fbmd326 Tzxo6h8VxqLSEiPG4uSdm7/ibvY+lv4Jrg/yOgcyZFk9gOcuLjnYhzeazOSfKNNGK0 L5rk0hU2GX3xRmeDlLw4W3k8ZoZYbCfNhfCOE2DxGO9wM9t+rTP/NIg3X+JOXIv06L kqjFuY9FLnA/dy1x5NNnb48gnG/Fj0fy58yRxOqHlFtG4vV4YCOG6ffGytsixkZIji E1taVYoaNqUYA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qtk861S4Pz6tyD for <64190-done@debbugs.gnu.org>; Sat, 1 Jul 2023 22:20:22 +0200 (CEST) From: =?utf-8?Q?Harald_J=C3=B6rg?= To: 64190-done@debbugs.gnu.org Subject: Multiline declarations in cperl-mode are fixed in the repository. Date: Sat, 01 Jul 2023 20:20:21 +0000 Message-ID: <87o7kvo03e.fsf@oook.m.uunet.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64190-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 (---) Fontification of multiline signatures has been fixed in the Emacs master branch. cperl-mode.el as available in the repository can be used with Emacs 28 and 27 (and could be backported to Emacs 26 if there is interest). -- Cheers, haj From unknown Mon Aug 18 06:58:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 30 Jul 2023 11:24:13 +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