From unknown Mon Jun 23 23:50:20 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#18502 <18502@debbugs.gnu.org> To: bug#18502 <18502@debbugs.gnu.org> Subject: Status: 24.4.50; perl-mode indentation problem Reply-To: bug#18502 <18502@debbugs.gnu.org> Date: Tue, 24 Jun 2025 06:50:20 +0000 retitle 18502 24.4.50; perl-mode indentation problem reassign 18502 emacs submitter 18502 David Howells severity 18502 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 18 17:51:35 2014 Received: (at submit) by debbugs.gnu.org; 18 Sep 2014 21:51:35 +0000 Received: from localhost ([127.0.0.1]:44859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUjbx-0008C3-M0 for submit@debbugs.gnu.org; Thu, 18 Sep 2014 17:51:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53089) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUcA9-0002vL-08 for submit@debbugs.gnu.org; Thu, 18 Sep 2014 09:54:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUcA2-0000s1-Jj for submit@debbugs.gnu.org; Thu, 18 Sep 2014 09:54:20 -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.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUcA2-0000rj-GO for submit@debbugs.gnu.org; Thu, 18 Sep 2014 09:54:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUc9s-00066c-9G for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 09:54:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUc9m-0000gP-71 for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 09:54:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUc9l-0000fl-Vn for bug-gnu-emacs@gnu.org; Thu, 18 Sep 2014 09:53:58 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8IDrpOk028972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 18 Sep 2014 09:53:51 -0400 Received: from warthog.procyon.org.uk ([10.3.112.6]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8IDrnZS028759; Thu, 18 Sep 2014 09:53:50 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells To: bug-gnu-emacs@gnu.org Subject: 24.4.50; perl-mode indentation problem MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20230.1411048428.1@warthog.procyon.org.uk> Date: Thu, 18 Sep 2014 14:53:48 +0100 Message-ID: <20231.1411048428@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 18 Sep 2014 17:51:30 -0400 Cc: dhowells@redhat.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) perl mode automatically indents substantially off to the right following the first sub definition that has an odd number of '$' characters in the argument spec, eg.: #!/usr/bin/perl -w sub add_funds($) { return 0; } The closing brace should be against the left margin, but isn't because it seems that perl-mode interprets '$)' in the sub line as being a variable expansion and not a variable spec and a closing bracket. In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-09-17 on warthog.procyon.org.uk Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 20 (Heisenbug) Configured using: `configure --prefix=/warthog/emacs64 --without-gconf --with-x-toolkit=athena --without-gsettings' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t display-time-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: M-. s-b C-s C-w C-w C-s C-s C-a C-s C-w C-w C-s C-s C-w C-w C-s C-s C-s C-s C-s C-r C-r C-s C-s C-s C-s C-s C-s C-l C-l C-x C-f C-# C-x C-f ~ / . e m s a C-s p e r l C-s C-s C-s C-s C-s C-x k C-x C-f s r e m 6 / s r l i s p e p r o g p e r C-x C-f C-g C-x C-f p e r p C-g C-x C-f C-g C-x v l C-x 1 M-x r e p o r Recent messages: Mark set Mark saved where search started C-# is undefined Quit Mark saved where search started Making completion list... [5 times] Quit Making completion list... Quit [2 times] Making completion list... [2 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message cl-macs dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils add-log log-view pcvs-util help-mode vc-annotate vc vc-dispatcher etags misearch multi-isearch rect hippie-exp comint ansi-color ring perl-mode sh-script smie executable jka-compr desktop frameset vc-git cl gv cl-loaddefs cl-lib cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs diff-mode easymenu easy-mmode time time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 218584 8136) (symbols 48 23771 0) (miscs 40 205 1045) (strings 32 55442 7922) (string-bytes 1 1788377) (vectors 16 16976) (vector-slots 8 487454 6144) (floats 8 92 214) (intervals 56 12172 13) (buffers 976 36) (heap 1024 19728 2625)) From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 21 18:01:19 2014 Received: (at 18502) by debbugs.gnu.org; 21 Sep 2014 22:01:19 +0000 Received: from localhost ([127.0.0.1]:47758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVpC2-0004kw-MR for submit@debbugs.gnu.org; Sun, 21 Sep 2014 18:01:19 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:54888) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVpBy-0004h1-A7 for 18502@debbugs.gnu.org; Sun, 21 Sep 2014 18:01:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNFpZEG/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCw4mEhQYDSSIBAjSGReOegeEOAEDqRmBaoNMIQ X-IPAS-Result: ArYGAIDvNVNFpZEG/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCw4mEhQYDSSIBAjSGReOegeEOAEDqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="90496148" Received: from 69-165-145-6.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.145.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 21 Sep 2014 18:01:13 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 7AC3AAE80E; Sun, 21 Sep 2014 18:01:13 -0400 (EDT) From: Stefan Monnier To: David Howells Subject: Re: bug#18502: 24.4.50; perl-mode indentation problem Message-ID: References: <20231.1411048428@warthog.procyon.org.uk> Date: Sun, 21 Sep 2014 18:01:13 -0400 In-Reply-To: <20231.1411048428@warthog.procyon.org.uk> (David Howells's message of "Thu, 18 Sep 2014 14:53:48 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18502 Cc: 18502@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (/) > perl mode automatically indents substantially off to the right following the > first sub definition that has an odd number of '$' characters in the argument > spec, eg.: > #!/usr/bin/perl -w > sub add_funds($) { > return 0; > } Indeed, the code that handles this had a bug which made it fail when the identifier has an underscore. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 21 18:03:51 2014 Received: (at 18502-done) by debbugs.gnu.org; 21 Sep 2014 22:03:52 +0000 Received: from localhost ([127.0.0.1]:47766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVpEV-0004r6-La for submit@debbugs.gnu.org; Sun, 21 Sep 2014 18:03:51 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:5584) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XVpET-0004qy-7z for 18502-done@debbugs.gnu.org; Sun, 21 Sep 2014 18:03:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNFpZEG/2dsb2JhbABZgwaDSr0vgw6BFxd0giYBAQRWIxALDiYSFBgNJIgM0hkXjnoHhDgBA6kZgWqDTCE X-IPAS-Result: ArYGAIDvNVNFpZEG/2dsb2JhbABZgwaDSr0vgw6BFxd0giYBAQRWIxALDiYSFBgNJIgM0hkXjnoHhDgBA6kZgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="90496229" Received: from 69-165-145-6.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.145.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 21 Sep 2014 18:03:48 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 787E4AE80E; Sun, 21 Sep 2014 18:03:48 -0400 (EDT) From: Stefan Monnier To: David Howells Subject: Re: bug#18502: 24.4.50; perl-mode indentation problem Message-ID: References: <20231.1411048428@warthog.procyon.org.uk> Date: Sun, 21 Sep 2014 18:03:48 -0400 In-Reply-To: <20231.1411048428@warthog.procyon.org.uk> (David Howells's message of "Thu, 18 Sep 2014 14:53:48 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18502-done Cc: 18502-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (/) Version:24.5 Should be fixed in trunk now, Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 04 12:32:22 2014 Received: (at control) by debbugs.gnu.org; 4 Oct 2014 16:32:22 +0000 Received: from localhost ([127.0.0.1]:33179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaSFp-0002hC-Jn for submit@debbugs.gnu.org; Sat, 04 Oct 2014 12:32:21 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:59991) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaSFm-0002h3-Hj for control@debbugs.gnu.org; Sat, 04 Oct 2014 12:32:19 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XaSFj-0005By-Pf; Sat, 04 Oct 2014 12:32:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21552.8463.712517.884718@gnu.org> Date: Sat, 4 Oct 2014 12:32:15 -0400 From: Glenn Morris To: GNU bug tracker automated control server Subject: update fixed Emacs bugs for version number change X-Debbugs-No-Ack: yes X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) fixed 18502 25.1 notfixed 18502 24.5 fixed 16204 25.1 notfixed 16204 24.5 fixed 18557 25.1 notfixed 18557 24.5 fixed 18562 25.1 notfixed 18562 24.5 fixed 18265 25.1 notfixed 18265 24.5 fixed 16567 25.1 notfixed 16567 24.5 From unknown Mon Jun 23 23:50:20 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, 02 Nov 2014 12:24:03 +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