From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: emacs abbreviation mode Date: Mon, 11 Jun 2007 01:27:54 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181518099 9905 80.91.229.12 (10 Jun 2007 23:28:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2007 23:28:19 +0000 (UTC) Cc: Fabrizio Sidoli To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 11 01:28:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HxWpU-00050S-82 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jun 2007 01:28:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxWpT-0005bn-Oc for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Jun 2007 19:28:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxWpE-0005Z9-Iu for help-gnu-emacs@gnu.org; Sun, 10 Jun 2007 19:28:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxWpC-0005Tv-3Q for help-gnu-emacs@gnu.org; Sun, 10 Jun 2007 19:27:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxWpB-0005Tk-P3 for help-gnu-emacs@gnu.org; Sun, 10 Jun 2007 19:27:57 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HxWpB-0004AM-D1 for help-gnu-emacs@gnu.org; Sun, 10 Jun 2007 19:27:57 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id 074CA85AD1F5; Mon, 11 Jun 2007 01:27:56 +0200 (CEST) Original-Received: from [89.59.217.9] (helo=wednesday) by smtp08.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #197) id 1HxWp9-0004jt-00; Mon, 11 Jun 2007 01:27:55 +0200 In-Reply-To: (Fabrizio Sidoli's message of "Sun\, 10 Jun 2007 17\:02\:07 +0100 \(BST\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX1/z05ZVui6X0IYsIeturcG4tK+gAhXxSW72xRmm LkvVsT7qVrzykzaQ2XKDrBTsrTnv4EbWwfqqiJUIrQ+hupnhH7 Xvaevw9CrCxBmxeLJZBA== X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44858 Archived-At: Fabrizio Sidoli wrote: > Emacs appears not to like the abbreviation to have the special > character '\'. I was bothered by this recently as well. It appears Emacs just uses characters with word-syntax (see `char-syntax') for abbreviations. There are some advantages to this, for instance a closing ")" will also trigger an expansion, because only the word before is looked up. (Don't know how XEmacs handles that ...) I currently defadvice expand-abbrev with a custom syntax-table to allow more characters. If anybody knows a cleaner way to tweak this, I'm interested ... regards, Nikolaj Schumacher