From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.bugs Subject: bug#3943: 23.0.96; CPerl-mode is too electric Date: Sun, 16 Aug 2009 18:33:21 -0700 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> Reply-To: Ilya Zakharevich , 3943@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250517456 9084 80.91.229.12 (17 Aug 2009 13:57:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2009 13:57:36 +0000 (UTC) Cc: 3943@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 17 15:57:28 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Md2i7-0007q3-D9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2009 15:57:19 +0200 Original-Received: from localhost ([127.0.0.1]:40220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md2i7-0003zm-38 for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Aug 2009 09:57:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McrJM-0000JW-Nf for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 21:47:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McrJH-0000En-0s for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 21:46:59 -0400 Original-Received: from [199.232.76.173] (port=46361 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McrJG-0000EA-7E for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 21:46:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46717) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1McrJF-0007OR-FA for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2009 21:46:53 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7H1ko8J022277; Sun, 16 Aug 2009 18:46:51 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7H1e8Jh021194; Sun, 16 Aug 2009 18:40:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ilya Zakharevich Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 17 Aug 2009 01:40:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3943 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3943-submit@emacsbugs.donarmstrong.com id=B3943.125047281020098 (code B ref 3943); Mon, 17 Aug 2009 01:40:08 +0000 Original-Received: (at 3943) by emacsbugs.donarmstrong.com; 17 Aug 2009 01:33:30 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-Received: from [68.142.194.243] by n8.bullet.mail.mud.yahoo.com with NNFMP; 17 Aug 2009 01:33:23 -0000 Original-Received: from [68.142.201.246] by t1.bullet.mud.yahoo.com with NNFMP; 17 Aug 2009 01:33:23 -0000 Original-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 Original-Received: (qmail 48195 invoked from network); 17 Aug 2009 01:33:22 -0000 Original-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 Content-Disposition: inline In-Reply-To: <87skfr9wbc.fsf@cyd.mit.edu> User-Agent: Mutt/1.4.2.1i X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 16 Aug 2009 21:46:59 -0400 X-Mailman-Approved-At: Mon, 17 Aug 2009 09:46:13 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30299 Archived-At: 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