changeset 75304:c8f5a9de4a5e

(cperl-electric-keywords): Document in the doc string how to use personal abbrevs without electric keywords.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 20 Jan 2007 15:53:04 +0000
parents 528bac1f7b32
children 205f53ebfa3e
files lisp/progmodes/cperl-mode.el
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cperl-mode.el	Sat Jan 20 15:43:48 2007 +0000
+++ b/lisp/progmodes/cperl-mode.el	Sat Jan 20 15:53:04 2007 +0000
@@ -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)