From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: abbrev table in cperl-mode Date: Sat, 17 Apr 2010 10:42:09 -0400 Message-ID: References: <20100416191207.GA9408@powdermilk.math.berkeley.edu> <20100417044853.GA10752@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 1271515356 3206 80.91.229.12 (17 Apr 2010 14:42:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Apr 2010 14:42:36 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Ilya Zakharevich Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 17 16:42:29 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 1O39Dz-000273-Hb for ged-emacs-devel@m.gmane.org; Sat, 17 Apr 2010 16:42:23 +0200 Original-Received: from localhost ([127.0.0.1]:41024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O39Dz-0003AH-1m for ged-emacs-devel@m.gmane.org; Sat, 17 Apr 2010 10:42:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O39Ds-00038S-I1 for emacs-devel@gnu.org; Sat, 17 Apr 2010 10:42:16 -0400 Original-Received: from [140.186.70.92] (port=50273 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O39Dq-00036Q-2X for emacs-devel@gnu.org; Sat, 17 Apr 2010 10:42:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O39Dn-0006EC-Js for emacs-devel@gnu.org; Sat, 17 Apr 2010 10:42:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:29744 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O39Dn-0006Dq-HW for emacs-devel@gnu.org; Sat, 17 Apr 2010 10:42:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAN1lyUvO+LLb/2dsb2JhbACcAHK8UYUQBItrgwY X-IronPort-AV: E=Sophos;i="4.52,227,1270440000"; d="scan'208";a="61072074" Original-Received: from 206-248-178-219.dsl.teksavvy.com (HELO pastel.home) ([206.248.178.219]) by ironport2-out.pppoe.ca with ESMTP; 17 Apr 2010 10:42:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D77DD8180; Sat, 17 Apr 2010 10:42:09 -0400 (EDT) In-Reply-To: <20100417044853.GA10752@powdermilk.math.berkeley.edu> (Ilya Zakharevich's message of "Fri, 16 Apr 2010 21:48:53 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:123804 Archived-At: >> 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. Actually, AFAIK it is backward compatible in that older versions just ignore the tail of the list rather than checking that it's nil. So older versions will just ignore the additional t. Stefan