From: Eli Zaretskii Date: Sat, 20 Jan 2007 15:53:04 +0000 (+0000) Subject: (cperl-electric-keywords): Document in the doc string how to use personal X-Git-Tag: emacs-pretest-22.0.93~74 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=350b4cb9bbb255dbd4e8415d291f46511c52e212;p=emacs.git (cperl-electric-keywords): Document in the doc string how to use personal abbrevs without electric keywords. --- diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 14cbaf9c0f4..4aea466f747 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -352,7 +352,15 @@ Can be overwritten by `cperl-hairy' if nil." (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)