From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Abbrev tables in elisp with some extra stuff Date: Wed, 17 Oct 2007 10:10:33 -0400 Message-ID: References: <200706201948.06271.andreas.roehler@online.de> <4nvedib77v.fsf@fencepost.gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1192630288 19380 80.91.229.12 (17 Oct 2007 14:11:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2007 14:11:28 +0000 (UTC) Cc: rgm@gnu.org, andreas.roehler@online.de, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 17 16:11:27 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 1Ii9cK-0001gy-CS for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2007 16:11:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ii9cD-00058y-5z for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2007 10:11:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ii9bX-0004S7-LF for emacs-devel@gnu.org; Wed, 17 Oct 2007 10:10:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ii9bW-0004R1-BO for emacs-devel@gnu.org; Wed, 17 Oct 2007 10:10:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ii9bW-0004Qy-8a for emacs-devel@gnu.org; Wed, 17 Oct 2007 10:10:34 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ii9bW-00053I-1M for emacs-devel@gnu.org; Wed, 17 Oct 2007 10:10:34 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Ii9bV-0004Ty-Ht; Wed, 17 Oct 2007 10:10:33 -0400 In-reply-to: (message from Stefan Monnier on Tue, 16 Oct 2007 16:26:08 -0400) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:81065 Archived-At: >> - :abbrev-before-point-function holds a function to use to find the >> abbrev at point. Now that we have :regexp, I'm not sure it's worth the trouble. That is good. >> - :enable-function can be set to a function of no argument which returns >> non-nil iff the abbrevs in this table should be used for this instance >> of `expand-abbrev'. Useful to disable skeleton-abbrevs in strings and >> comments. Actually, it's different from :case-preserve because its used earlier (before we've3 have found the abbrev): it's important that it be global to an abbrev-table because it determines whether or not to look for a word It is no disaster to look for a word, find it, see it is disabled, and not expand it. So please make this work for individual abbrevs even if it is not as efficient. Abbrev expansion will still be far faster than humans can type.