From unknown Fri Jun 20 07:29:32 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#3943 <3943@debbugs.gnu.org> To: bug#3943 <3943@debbugs.gnu.org> Subject: Status: 23.0.96; CPerl-mode is too electric Reply-To: bug#3943 <3943@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:29:32 +0000 retitle 3943 23.0.96; CPerl-mode is too electric reassign 3943 emacs submitter 3943 "Rommerskirchen, Heinrich (NSN - DE/Munich)" severity 3943 normal thanks From heinrich.rommerskirchen@nsn.com Mon Jul 27 06:25:00 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 27 Jul 2009 13:25:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.1 required=4.0 tests=AWL,FOURLA,FVGT_m_MULTI_ODD, THREADTOPIC autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6RDOsUB019517 for ; Mon, 27 Jul 2009 06:24:56 -0700 Received: from mx10.gnu.org ([199.232.76.166]:59284) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MVQCD-0005CU-B6 for emacs-pretest-bug@gnu.org; Mon, 27 Jul 2009 09:24:53 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MVQC8-0006ux-Co for emacs-pretest-bug@gnu.org; Mon, 27 Jul 2009 09:24:51 -0400 Received: from demumfd001.nsn-inter.net ([217.115.75.233]:12065) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVQC7-0006tt-OD for emacs-pretest-bug@gnu.org; Mon, 27 Jul 2009 09:24:48 -0400 Received: from demuprx016.emea.nsn-intra.net ([10.150.129.55]) by demumfd001.nsn-inter.net (8.12.11.20060308/8.12.11) with ESMTP id n6RDOh1l031947 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 27 Jul 2009 15:24:43 +0200 Received: from demuexc024.nsn-intra.net (demuexc024.nsn-intra.net [10.159.32.11]) by demuprx016.emea.nsn-intra.net (8.12.11.20060308/8.12.11) with ESMTP id n6RDOhlw031138 for ; Mon, 27 Jul 2009 15:24:43 +0200 Received: from DEMUEXC035.nsn-intra.net ([10.150.128.26]) by demuexc024.nsn-intra.net with Microsoft SMTPSVC(6.0.3790.3959); Mon, 27 Jul 2009 15:24:42 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: 23.0.96; CPerl-mode is too electric Date: Mon, 27 Jul 2009 15:24:39 +0200 Message-ID: <5F9F14EA10283840AB895720F4D024CA2CE71D@DEMUEXC035.nsn-intra.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 23.0.96; CPerl-mode is too electric Thread-Index: AcoOvZfLfRp7c75ITNulAzU5M9t0qw== From: "Rommerskirchen, Heinrich (NSN - DE/Munich)" To: X-OriginalArrivalTime: 27 Jul 2009 13:24:42.0729 (UTC) FILETIME=[99E94590:01CA0EBD] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: In CPerl-Mode the '<' inside a while statement completes not only to '<>' which is fine, but adds another set of brackets, so that you end up with --- example start while (<>) { } ( ) { } --- example end instead of the reasonble --- example start while (<>) { } --- example end what was the result in former versions. To duplicate this I started emacs with '-Q' and loaded a file containing -- start of file (autoload 'cperl-mode "cperl-mode" t t) (setq cperl-hairy t) ; Alle Features on (setq cperl-indent-level 4) (setq cperl-auto-newline t) ; Einrueckung und Leerzeile bei ';' usw. (setq auto-mode-alist (append '(("\\.\\([pP][Llm]\\|al\\)$" . cperl-mode)) auto-mode-alist )) -- end of file the CPerl configuration I have used for a few years If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file d:/bin/emacs/etc/DEBUG for instructions. In GNU Emacs 23.0.96.1 (i386-mingw-nt5.1.2600) of 2009-07-09 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: DEU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: CPerl Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: M-x l o a d - f i l t m p / t e . e=20 C-x C-f t e s t . p l w h i=20 l e SPC SPC < =20 =20 =20 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Loading d:/tmp/test.el (source)...done (New file) Precede char by C-q to avoid expansion [2 times] <> Reads line from union of files in @ARGV (=3D command line) and STDIN. [2 times] From cyd@stupidchicken.com Fri Aug 14 22:13:51 2009 Received: (at 3943) by emacsbugs.donarmstrong.com; 15 Aug 2009 05:13:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.7 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7F5Dn0X010396 for <3943@emacsbugs.donarmstrong.com>; Fri, 14 Aug 2009 22:13:50 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 8A2A257E266; Sat, 15 Aug 2009 01:14:47 -0400 (EDT) From: Chong Yidong To: Ilya Zakharevich Cc: 3943@debbugs.gnu.org Subject: Re: 23.0.96; CPerl-mode is too electric Date: Sat, 15 Aug 2009 01:14:47 -0400 Message-ID: <87prax1wvs.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi Ilya, Could you take a look at the following bug report? Thanks. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3943 From nospam-abuse@ilyaz.org Sat Aug 15 22:09:05 2009 Received: (at 3943) by emacsbugs.donarmstrong.com; 16 Aug 2009 05:09:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from n23b.bullet.mail.mud.yahoo.com (n23b.bullet.mail.mud.yahoo.com [68.142.206.142]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n7G593pa001284 for <3943@emacsbugs.donarmstrong.com>; Sat, 15 Aug 2009 22:09:04 -0700 Received: from [209.191.108.96] by n23.bullet.mail.mud.yahoo.com with NNFMP; 16 Aug 2009 05:08:58 -0000 Received: from [68.142.201.242] by t3.bullet.mud.yahoo.com with NNFMP; 16 Aug 2009 05:08:58 -0000 Received: from [127.0.0.1] by omp403.mail.mud.yahoo.com with NNFMP; 16 Aug 2009 05:08:58 -0000 X-Yahoo-Newman-Id: 96337.68202.bm@omp403.mail.mud.yahoo.com Received: (qmail 96148 invoked from network); 16 Aug 2009 05:08:57 -0000 Received: from unknown (HELO localhost.localdomain) (nospam-abuse@128.32.238.142 with login) by smtp124.plus.mail.sp1.yahoo.com with SMTP; 16 Aug 2009 05:08:57 -0000 X-Yahoo-SMTP: AD9vPiOswBAfjahpvlJUrZlCf4SMv_NrfrpTOV8a7nc- X-YMail-OSG: zL7EWhoVM1lS4k8t9oCqVoBbAxxfbgEZQgDa2eyhmrKHD8SBus5ctgtNfRSF.LAqs04GhUoQn1Fm.YVM8in7wJIuE1y5YX4_rJJds92EqDIvPKxGsXAafg3ma_t0YHUdNEZH.E0f744dmIradaT7XvOf4EXwr6P40za33NXTR8f1ZM6UA7lr0QlfmzFZUL7fyX8BSixyVxzJ4yHkkANNX5zavbZX1ovBiI8otpPF.2VNcXBa.s4U5IwpGvdKe5GHArMRhrc2x9WCiVwUjPQYBDD3LWUtAYvpataqr.UcHaKtgqbQmtTkMC57i_X9fA-- X-Yahoo-Newman-Property: ymail-3 Date: Sat, 15 Aug 2009 22:08:54 -0700 From: Ilya Zakharevich To: Chong Yidong Cc: 3943@debbugs.gnu.org Subject: Re: 23.0.96; CPerl-mode is too electric Message-ID: <20090816050854.GA516@powdermilk.math.berkeley.edu> References: <87prax1wvs.fsf@cyd.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87prax1wvs.fsf@cyd.mit.edu> User-Agent: Mutt/1.4.2.1i On Sat, Aug 15, 2009 at 01:14:47AM -0400, Chong Yidong wrote: > Hi Ilya, > > Could you take a look at the following bug report? Thanks. > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3943 The home of CPerl is ilyaz.org/software/emacs Please report results with my version. (The shipped-with-Emacs version is hopelessly buggy...) Thanks, Ilya From cyd@stupidchicken.com Sun Aug 16 06:23:00 2009 Received: (at 3943) by emacsbugs.donarmstrong.com; 16 Aug 2009 13:23:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7GDMxka019325 for <3943@emacsbugs.donarmstrong.com>; Sun, 16 Aug 2009 06:23:00 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 2C53457E25D; Sun, 16 Aug 2009 09:23:58 -0400 (EDT) From: Chong Yidong To: Ilya Zakharevich Cc: 3943@debbugs.gnu.org Subject: Re: 23.0.96; CPerl-mode is too electric References: <87prax1wvs.fsf@cyd.mit.edu> <20090816050854.GA516@powdermilk.math.berkeley.edu> Date: Sun, 16 Aug 2009 09:23:58 -0400 In-Reply-To: <20090816050854.GA516@powdermilk.math.berkeley.edu> (Ilya Zakharevich's message of "Sat, 15 Aug 2009 22:08:54 -0700") Message-ID: <87r5vbopsh.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Ilya Zakharevich writes: > The home of CPerl is ilyaz.org/software/emacs > > Please report results with my version. (The shipped-with-Emacs > version is hopelessly buggy...) Then we should update the version in the Emacs repository. Is 6.2 the stable version? From nospam-abuse@ilyaz.org Sun Aug 16 08:20:20 2009 Received: (at 3943) by emacsbugs.donarmstrong.com; 16 Aug 2009 15:20:20 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from n25.bullet.mail.mud.yahoo.com (n25.bullet.mail.mud.yahoo.com [68.142.206.220]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n7GFKIrv007374 for <3943@emacsbugs.donarmstrong.com>; Sun, 16 Aug 2009 08:20:19 -0700 Received: from [68.142.200.227] by n25.bullet.mail.mud.yahoo.com with NNFMP; 16 Aug 2009 15:20:13 -0000 Received: from [68.142.201.65] by t8.bullet.mud.yahoo.com with NNFMP; 16 Aug 2009 15:20:13 -0000 Received: from [127.0.0.1] by omp417.mail.mud.yahoo.com with NNFMP; 16 Aug 2009 15:20:13 -0000 X-Yahoo-Newman-Id: 228341.18059.bm@omp417.mail.mud.yahoo.com Received: (qmail 90638 invoked from network); 16 Aug 2009 15:20:12 -0000 Received: from unknown (HELO localhost.localdomain) (nospam-abuse@128.32.238.142 with login) by smtp111.plus.mail.sp1.yahoo.com with SMTP; 16 Aug 2009 15:20:12 -0000 X-Yahoo-SMTP: AD9vPiOswBAfjahpvlJUrZlCf4SMv_NrfrpTOV8a7nc- X-YMail-OSG: KgcmhbIVM1l_nyOt7heZ5zZTEgdDzvUIRJBm1gIHyjxQVQlbyJke4jAnD28RHYzO.d7zoLi18GboUvjUXwVlqQ.RJV8y8cYX20DjqdWdx4pRxiAgaXFC1UBz7vMVo2Wfe2d4MR9xzBm34vMFZR6zsrbPePmu8q2qX9mGlswEDjTK3VBMQ96sv2Ld4uyytSm0Qv4_xxBC1AVl2d4DRL.d2.68iRn148GLh1pC3spuZgAOqKqZkO2AcAIFsKqUnhWV0yL0a9dPosBm8Vhz1Qr1lj.blWuXAojc39tPHTgz1safel50YN95WxmfmVQgIA-- X-Yahoo-Newman-Property: ymail-3 Date: Sun, 16 Aug 2009 08:20:10 -0700 From: Ilya Zakharevich To: Chong Yidong Cc: 3943@debbugs.gnu.org Subject: Re: 23.0.96; CPerl-mode is too electric Message-ID: <20090816152009.GA2992@powdermilk.math.berkeley.edu> References: <87prax1wvs.fsf@cyd.mit.edu> <20090816050854.GA516@powdermilk.math.berkeley.edu> <87r5vbopsh.fsf@cyd.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r5vbopsh.fsf@cyd.mit.edu> User-Agent: Mutt/1.4.2.1i On Sun, Aug 16, 2009 at 09:23:58AM -0400, Chong Yidong wrote: > Ilya Zakharevich writes: > > > The home of CPerl is ilyaz.org/software/emacs > > > > Please report results with my version. (The shipped-with-Emacs > > version is hopelessly buggy...) > > Then we should update the version in the Emacs repository. Is 6.2 the > stable version? Yes. But it is not conforming to the style policy (and never would). Hope this helps, Ilya From cyd@stupidchicken.com Sun Aug 16 16:23:25 2009 Received: (at 3943) by emacsbugs.donarmstrong.com; 16 Aug 2009 23:23:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7GNNNGS029553 for <3943@emacsbugs.donarmstrong.com>; Sun, 16 Aug 2009 16:23:25 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 9F94157E25D; Sun, 16 Aug 2009 19:24:23 -0400 (EDT) From: Chong Yidong To: Ilya Zakharevich Cc: 3943@debbugs.gnu.org Subject: Re: 23.0.96; CPerl-mode is too electric References: <87prax1wvs.fsf@cyd.mit.edu> <20090816050854.GA516@powdermilk.math.berkeley.edu> Date: Sun, 16 Aug 2009 19:24:23 -0400 In-Reply-To: <20090816050854.GA516@powdermilk.math.berkeley.edu> (Ilya Zakharevich's message of "Sat, 15 Aug 2009 22:08:54 -0700") Message-ID: <87skfr9wbc.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Ilya Zakharevich writes: >> Could you take a look at the following bug report? Thanks. >> >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3943 > > The home of CPerl is ilyaz.org/software/emacs > > Please report results with my version. (The shipped-with-Emacs > version is hopelessly buggy...) The problem exists in upstream CPerl as well. The bug arises from line 3763 (cperl-electric-paren): (if (eq last-command-char ?<) (progn (and abbrev-mode ; later it is too late, may be after `for' (expand-abbrev)) (cperl-after-expr-p nil "{;(,:=")) 1)) Because one abbrev expansion already takes place when typing "while ", this code leads to another, extra expansion. Removing the (and abbrev-mode...) expression fixes the problem. From nospam-abuse@ilyaz.org Sun Aug 16 18:33:30 2009 Received: (at 3943) by emacsbugs.donarmstrong.com; 17 Aug 2009 01:33:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from n8.bullet.mail.mud.yahoo.com (n8.bullet.mail.mud.yahoo.com [209.191.86.156]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n7H1XSfS020089 for <3943@emacsbugs.donarmstrong.com>; Sun, 16 Aug 2009 18:33:29 -0700 Received: from [68.142.194.243] by n8.bullet.mail.mud.yahoo.com with NNFMP; 17 Aug 2009 01:33:23 -0000 Received: from [68.142.201.246] by t1.bullet.mud.yahoo.com with NNFMP; 17 Aug 2009 01:33:23 -0000 Received: from [127.0.0.1] by omp407.mail.mud.yahoo.com with NNFMP; 17 Aug 2009 01:33:23 -0000 X-Yahoo-Newman-Id: 393129.58693.bm@omp407.mail.mud.yahoo.com Received: (qmail 48195 invoked from network); 17 Aug 2009 01:33:22 -0000 Received: from unknown (HELO localhost.localdomain) (nospam-abuse@128.32.238.142 with login) by smtp126.plus.mail.sp1.yahoo.com with SMTP; 17 Aug 2009 01:33:22 -0000 X-Yahoo-SMTP: AD9vPiOswBAfjahpvlJUrZlCf4SMv_NrfrpTOV8a7nc- X-YMail-OSG: CiAAMrIVM1ni9p4f784YdTnDnhePhw4y.uasKJmNeVt5bRpZX1lmosjmgR4dSS5npRoSVQpsS8GG9UmEcuujBU8v0Ce7Qwlbr3MXFGmeIvVkKoM1wMK3yTyszA8J4g5XMJZS3eTYgeFLTguFC.rm6ulHAQw6DLTM_09uzCqLi2scBthRkqQDe9uQb8jkbECNcicupT9KsD0mv7YI3ZtvRGasAwfJ_4Qc_xbB4WyVjS6umNSRgglVF625uD91KFbtMX25lTrpLm0QSYmV X-Yahoo-Newman-Property: ymail-3 Date: Sun, 16 Aug 2009 18:33:21 -0700 From: Ilya Zakharevich To: Chong Yidong Cc: 3943@debbugs.gnu.org Subject: Re: 23.0.96; CPerl-mode is too electric Message-ID: <20090817013321.GB4436@powdermilk.math.berkeley.edu> References: <87prax1wvs.fsf@cyd.mit.edu> <20090816050854.GA516@powdermilk.math.berkeley.edu> <87skfr9wbc.fsf@cyd.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87skfr9wbc.fsf@cyd.mit.edu> User-Agent: Mutt/1.4.2.1i On Sun, Aug 16, 2009 at 07:24:23PM -0400, Chong Yidong wrote: > The problem exists in upstream CPerl as well. The bug arises from line > 3763 (cperl-electric-paren): > > (if (eq last-command-char ?<) > (progn > (and abbrev-mode ; later it is too late, may be after `for' > (expand-abbrev)) > (cperl-after-expr-p nil "{;(,:=")) > 1)) > > Because one abbrev expansion already takes place when typing "while ", > this code leads to another, extra expansion. Removing the > (and abbrev-mode...) expression fixes the problem. A lot of thanks for investigating this problem! >>TODO Thanks again, Ilya From nospam-abuse@ilyaz.org Tue Aug 18 18:07:34 2009 Received: (at 3943) by emacsbugs.donarmstrong.com; 19 Aug 2009 01:07:34 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=AWL autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from n10.bullet.mail.mud.yahoo.com (n10.bullet.mail.mud.yahoo.com [209.191.125.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n7J17X9D000369 for <3943@emacsbugs.donarmstrong.com>; Tue, 18 Aug 2009 18:07:34 -0700 Received: from [209.191.108.97] by n10.bullet.mail.mud.yahoo.com with NNFMP; 19 Aug 2009 01:07:27 -0000 Received: from [68.142.201.69] by t4.bullet.mud.yahoo.com with NNFMP; 19 Aug 2009 01:07:27 -0000 Received: from [127.0.0.1] by omp421.mail.mud.yahoo.com with NNFMP; 19 Aug 2009 01:07:27 -0000 X-Yahoo-Newman-Id: 892918.34436.bm@omp421.mail.mud.yahoo.com Received: (qmail 87699 invoked from network); 19 Aug 2009 01:07:27 -0000 Received: from unknown (HELO localhost.localdomain) (nospam-abuse@128.32.238.142 with login) by smtp113.plus.mail.sp1.yahoo.com with SMTP; 19 Aug 2009 01:07:26 -0000 X-Yahoo-SMTP: AD9vPiOswBAfjahpvlJUrZlCf4SMv_NrfrpTOV8a7nc- X-YMail-OSG: waznwvIVM1nyhGqYsEK5B03VHEIP4ImkgrH95zBXSnUqWREtp3HoSvoKj6_vvEyAWjywaPCNaXgHP6hrA9_zGV2zkUSUJAKxz8KGBCH9E7Rbjs8N0nhvK3XyPJnL_xlO.I_OyOPonu5fILsn5n6o5UKPjzpzL.yjScYOKX6pxnbujyxhcXYEpAhWhVrjrfjzSHCK99RX3rtBzz1z2cu95xRy1vL6JcJF32R_q7iuyyol9LHjGDIueZWOKTdbKD5zUUEFz4P5RrHCs04k6oGwMQKgTGsr.5Oi9DXyjHfaoeHSxuq3GIjesydCUu3UTw-- X-Yahoo-Newman-Property: ymail-3 Date: Tue, 18 Aug 2009 18:07:25 -0700 From: Ilya Zakharevich To: Chong Yidong Cc: 3943@debbugs.gnu.org Subject: Re: 23.0.96; CPerl-mode is too electric Message-ID: <20090819010725.GA11802@powdermilk.math.berkeley.edu> References: <87prax1wvs.fsf@cyd.mit.edu> <20090816050854.GA516@powdermilk.math.berkeley.edu> <87skfr9wbc.fsf@cyd.mit.edu> <20090818161340.GA10453@powdermilk.math.berkeley.edu> <87fxbpdpn4.fsf@stupidchicken.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fxbpdpn4.fsf@stupidchicken.com> User-Agent: Mutt/1.4.2.1i On Tue, Aug 18, 2009 at 12:59:27PM -0400, Chong Yidong wrote: > Ilya Zakharevich writes: > > > The bug report does not contain the way to reproduce the problem. > > From your description, I presume that it is typing > > > > while< > > > > which leads to a double expansion. > It's from typing "while <". You must type a space after the "while". If one is inside parens in while () { } and types < , would this lead to the abnormal behaviour? If yes, then would typing M-x expand-abbrev (instead of "<") lead to the same abnormal behaviour? (Then it is, IMO, a bug in expansion logic...) Yours, Ilya From nospam-abuse@ilyaz.org Tue Aug 18 09:13:50 2009 Received: (at 3943) by emacsbugs.donarmstrong.com; 18 Aug 2009 16:13:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from n20.bullet.mail.mud.yahoo.com (n20.bullet.mail.mud.yahoo.com [68.142.206.147]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n7IGDn75025089 for <3943@emacsbugs.donarmstrong.com>; Tue, 18 Aug 2009 09:13:50 -0700 Received: from [68.142.200.224] by n20.bullet.mail.mud.yahoo.com with NNFMP; 18 Aug 2009 16:13:44 -0000 Received: from [68.142.201.73] by t5.bullet.mud.yahoo.com with NNFMP; 18 Aug 2009 16:13:44 -0000 Received: from [127.0.0.1] by omp425.mail.mud.yahoo.com with NNFMP; 18 Aug 2009 16:13:44 -0000 X-Yahoo-Newman-Id: 186953.98615.bm@omp425.mail.mud.yahoo.com Received: (qmail 76113 invoked from network); 18 Aug 2009 16:13:43 -0000 Received: from unknown (HELO localhost.localdomain) (nospam-abuse@128.32.238.142 with login) by smtp127.plus.mail.sp1.yahoo.com with SMTP; 18 Aug 2009 16:13:43 -0000 X-Yahoo-SMTP: AD9vPiOswBAfjahpvlJUrZlCf4SMv_NrfrpTOV8a7nc- X-YMail-OSG: R08dzNcVM1mEm0pHz8hUrS0CVhdp7tdUnDxNAwbzv9XyfyBoC.snmG.N.wu3WsL66UJWrUFwQBQso_VRxvl6QOloqaT5Y8BF6k_mKzyYH53XwiF7CbEm7acPnp_lm0x8eMsJr9jiJZAharOK1G1_aPlSh6yOf3qF8HkqFk4L1qvmS01obq0QDcfS_3FSzwixsEF9pnM2v5U4SpUNRe3wrU..Uqg_AKEr.wQBzaj8D0MFLwaI7KvrRxWKutKY50UpWxnvBV7TBjn8pytC X-Yahoo-Newman-Property: ymail-3 Date: Tue, 18 Aug 2009 09:13:40 -0700 From: Ilya Zakharevich To: Chong Yidong Cc: 3943@debbugs.gnu.org Subject: Re: 23.0.96; CPerl-mode is too electric Message-ID: <20090818161340.GA10453@powdermilk.math.berkeley.edu> References: <87prax1wvs.fsf@cyd.mit.edu> <20090816050854.GA516@powdermilk.math.berkeley.edu> <87skfr9wbc.fsf@cyd.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87skfr9wbc.fsf@cyd.mit.edu> User-Agent: Mutt/1.4.2.1i On Sun, Aug 16, 2009 at 07:24:23PM -0400, Chong Yidong wrote: > The problem exists in upstream CPerl as well. The bug arises from line > 3763 (cperl-electric-paren): > > (if (eq last-command-char ?<) > (progn > (and abbrev-mode ; later it is too late, may be after `for' > (expand-abbrev)) > (cperl-after-expr-p nil "{;(,:=")) > 1)) > > Because one abbrev expansion already takes place when typing "while ", > this code leads to another, extra expansion. Removing the > (and abbrev-mode...) expression fixes the problem. The bug report does not contain the way to reproduce the problem. >From your description, I presume that it is typing while< which leads to a double expansion. Then it is an incompatible change in Emacs after v21 (which I can test with). I would much prefer code without explicit version-checking (especially since there are a few independent branches); for this I need a way to determine whether I'm inside `expand-abbrev'. Is there a way to detect this? Thanks, Ilya From cyd@stupidchicken.com Tue Aug 18 09:59:35 2009 Received: (at 3943) by emacsbugs.donarmstrong.com; 18 Aug 2009 16:59:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.4 required=4.0 tests=AWL autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po44.its.yale.edu (pantheon-po44.its.yale.edu [130.132.50.78]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7IGxXIt032713 for <3943@emacsbugs.donarmstrong.com>; Tue, 18 Aug 2009 09:59:34 -0700 Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po44.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n7IGxRhu029588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 18 Aug 2009 12:59:28 -0400 Received: by furry (Postfix, from userid 1000) id 3696AC070; Tue, 18 Aug 2009 12:59:27 -0400 (EDT) From: Chong Yidong To: Ilya Zakharevich Cc: 3943@debbugs.gnu.org Subject: Re: 23.0.96; CPerl-mode is too electric References: <87prax1wvs.fsf@cyd.mit.edu> <20090816050854.GA516@powdermilk.math.berkeley.edu> <87skfr9wbc.fsf@cyd.mit.edu> <20090818161340.GA10453@powdermilk.math.berkeley.edu> Date: Tue, 18 Aug 2009 12:59:27 -0400 In-Reply-To: <20090818161340.GA10453@powdermilk.math.berkeley.edu> (Ilya Zakharevich's message of "Tue, 18 Aug 2009 09:13:40 -0700") Message-ID: <87fxbpdpn4.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) Ilya Zakharevich writes: > The bug report does not contain the way to reproduce the problem. > From your description, I presume that it is typing > > while< > > which leads to a double expansion. It's from typing "while <". You must type a space after the "while". From cyd@stupidchicken.com Sat Oct 31 12:59:22 2009 Received: (at control) by emacsbugs.donarmstrong.com; 31 Oct 2009 19:59:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.2 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po27.its.yale.edu (pantheon-po27.its.yale.edu [130.132.50.122]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9VJxKTd023784 for ; Sat, 31 Oct 2009 12:59:21 -0700 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po27.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n9VJxFYG014207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 31 Oct 2009 15:59:15 -0400 Received: by furry (Postfix, from userid 1000) id 0FD16C070; Sat, 31 Oct 2009 15:59:15 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 3943 Date: Sat, 31 Oct 2009 15:59:15 -0400 Message-ID: <87zl77tjvw.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) close 3943 thanks From unknown Fri Jun 20 07:29:32 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, 29 Nov 2009 15:24:12 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator