[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: version 1.84 of cperl-mode.el takes away my control over abbrev

From: Eric Hanchrow
Subject: Re: Fwd: version 1.84 of cperl-mode.el takes away my control over abbrevs
Date: Sun, 14 Jan 2007 11:56:08 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

>>>>> "Richard" == Richard Stallman <address@hidden> writes:

    Glen>     I think all you can do is define the abbrevs you
    Glen>     don't want to expand to themselves, rather than
    Glen>     deleting them.  A bit ugly.

    Richard> This solution seems natural to me, not ugly, so I think
    Richard> we should just document it.

    Richard> Would you like to try that?

--- cperl-mode.el       09 Dec 2006 22:54:46 -0800      1.84
+++ cperl-mode.el       14 Jan 2007 11:54:32 -0800      
@@ -352,7 +352,15 @@
 (defcustom cperl-electric-keywords nil
   "*Not-nil (and non-null) means keywords are electric in CPerl.
-Can be overwritten by `cperl-hairy' if nil."
+Can be overwritten by `cperl-hairy' if nil.
+Uses abbrev-mode to do the expansion.  If you want to use your
+own abbrevs in cperl-mode, but do not want keywords to be
+electric, you must redefine cperl-mode-abbrev-table: do
+\\[edit-abbrevs], search for cperl-mode-abbrev-table, and, in
+that paragraph, delete the words that appear at the ends of lines, and
+that begin with \"cperl-electric\".
   :type '(choice (const null) boolean)
   :group 'cperl-affected-by-hairy)

A special circle of hell should be reserved for video
executives who place previews at the beginnings of DVDs.
        -- Roger Ebert

reply via email to

[Prev in Thread] Current Thread [Next in Thread]