From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.devel Subject: Re: abbrev table in cperl-mode Date: Fri, 16 Apr 2010 21:48:53 -0700 Message-ID: <20100417044853.GA10752@powdermilk.math.berkeley.edu> References: <20100416191207.GA9408@powdermilk.math.berkeley.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271487332 21044 80.91.229.12 (17 Apr 2010 06:55:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Apr 2010 06:55:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 17 08:55:31 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O31wA-0001oK-H5 for ged-emacs-devel@m.gmane.org; Sat, 17 Apr 2010 08:55:30 +0200 Original-Received: from localhost ([127.0.0.1]:56832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O31wA-0001wn-2R for ged-emacs-devel@m.gmane.org; Sat, 17 Apr 2010 02:55:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2zxk-0008Rc-35 for emacs-devel@gnu.org; Sat, 17 Apr 2010 00:49:00 -0400 Original-Received: from [140.186.70.92] (port=60325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2zxi-0008RU-Mb for emacs-devel@gnu.org; Sat, 17 Apr 2010 00:48:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2zxh-0003gC-69 for emacs-devel@gnu.org; Sat, 17 Apr 2010 00:48:58 -0400 Original-Received: from n11.bullet.mail.mud.yahoo.com ([209.191.125.210]:24262) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O2zxg-0003g3-VW for emacs-devel@gnu.org; Sat, 17 Apr 2010 00:48:57 -0400 Original-Received: from [68.142.194.243] by n11.bullet.mail.mud.yahoo.com with NNFMP; 17 Apr 2010 04:48:55 -0000 Original-Received: from [68.142.201.241] by t1.bullet.mud.yahoo.com with NNFMP; 17 Apr 2010 04:48:55 -0000 Original-Received: from [127.0.0.1] by omp402.mail.mud.yahoo.com with NNFMP; 17 Apr 2010 04:48:55 -0000 X-Yahoo-Newman-Id: 587096.40773.bm@omp402.mail.mud.yahoo.com Original-Received: (qmail 65817 invoked from network); 17 Apr 2010 04:48:55 -0000 Original-Received: from localhost.localdomain (ilya@128.32.213.171 with login) by smtp123.plus.mail.sp1.yahoo.com with SMTP; 16 Apr 2010 21:48:54 -0700 PDT X-Yahoo-SMTP: oLSY3dWswBBqoBVzCkLl_RIsw6heKMxu8wpEbARv1SU- X-YMail-OSG: OZ.HAvcVM1kAPfWsMtk6HgNisQksCFSOel4uzlHktKTtB.a DbPKbkz3KsozbD89o8AczJBjPiptZ.FRBxPGy5RkRg2_kqovBH2VMVgvQ.Fl SsQH7ZuQjI1aFZIRpaApR0AXKDWRRHUPSqZcmLh8Qe_Wq2sfIRQ_9dHc.MYI 0ktR30.U_1QLKcok18lXJEkXM3nHNKUXUbTnaEeWT42S0ZmQAbDjxjDmbmKW HCTEQR_5QLE3IKF_KUJHtfGAhjrbG X-Yahoo-Newman-Property: ymail-3 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Mailman-Approved-At: Sat, 17 Apr 2010 02:54:24 -0400 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:123797 Archived-At: On Fri, Apr 16, 2010 at 09:11:15PM +0100, Leo wrote: > The attached patch does this. BTW, defining system abbrevs doesn't > change abbrev-changed so I leave the (let ...) out. The docs for my version say define-abbrev-table: a built-in function. Define TABLENAME (a symbol) as an abbrev table name. Define abbrevs in it according to DEFINITIONS, which is a list of elements of the form (ABBREVNAME EXPANSION HOOK USECOUNT). (define-abbrev-table TABLENAME DEFINITIONS) So, as minimum, it is not backward-compatible. Hope this helps, Ilya