From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.devel 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 Message-ID: <874pqtjsbr.fsf@offby1.atm01.sea.blarg.net> References: <87mz4okjsz.fsf@offby1.atm01.sea.blarg.net> <17832.6997.240580.590621@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168888153 25653 80.91.229.12 (15 Jan 2007 19:09:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2007 19:09:13 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 15 20:09:11 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H6VgK-0005X8-EA for ged-emacs-devel@m.gmane.org; Mon, 15 Jan 2007 18:31:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6VgK-00076w-88 for ged-emacs-devel@m.gmane.org; Mon, 15 Jan 2007 12:31:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H6Vbt-0002Vl-Ru for emacs-devel@gnu.org; Mon, 15 Jan 2007 12:27:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H6Vbt-0002VA-6q for emacs-devel@gnu.org; Mon, 15 Jan 2007 12:27:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H6Vbs-0002Uu-AU for emacs-devel@gnu.org; Mon, 15 Jan 2007 12:27:04 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H6Vbr-0000aG-6e for emacs-devel@gnu.org; Mon, 15 Jan 2007 12:27:03 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H6BeT-0001SL-Gj for emacs-devel@gnu.org; Sun, 14 Jan 2007 21:08:25 +0100 Original-Received: from q-static-138-125.avvanta.com ([206.124.138.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jan 2007 21:08:25 +0100 Original-Received: from offby1 by q-static-138-125.avvanta.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jan 2007 21:08:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: q-static-138-125.avvanta.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) Cancel-Lock: sha1:GA2cVzFN322Ida/8c3Xwt0vYh2Q= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65223 Archived-At: >>>>> "Richard" == Richard Stallman 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