GNU bug report logs - #3943
23.0.96; CPerl-mode is too electric

Previous Next

Package: emacs;

Reported by: "Rommerskirchen, Heinrich (NSN - DE/Munich)" <heinrich.rommerskirchen <at> nsn.com>

Date: Mon, 27 Jul 2009 13:30:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Ilya Zakharevich <nospam-abuse <at> ilyaz.org>
Cc: 3943 <at> debbugs.gnu.org
Subject: bug#3943: 23.0.96; CPerl-mode is too electric
Date: Sun, 16 Aug 2009 19:24:23 -0400
Ilya Zakharevich <nospam-abuse <at> ilyaz.org> 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.



This bug report was last modified 15 years and 206 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.