From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: special char in abbrev Date: 16 Aug 2005 06:10:53 -0700 Organization: http://groups.google.com Message-ID: <1124197853.030582.41040@g49g2000cwa.googlegroups.com> References: <87ll33hvx2.fsf@wash.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1124197928 21935 80.91.229.2 (16 Aug 2005 13:12:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2005 13:12:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 16 15:11:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E51EL-0002vy-JG for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Aug 2005 15:11:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E51Hl-00019J-Ht for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Aug 2005 09:15:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g49g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 198.74.20.78 Original-X-Trace: posting.google.com 1124197858 28130 127.0.0.1 (16 Aug 2005 13:10:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 16 Aug 2005 13:10:58 +0000 (UTC) In-Reply-To: <87ll33hvx2.fsf@wash.edu> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g49g2000cwa.googlegroups.com; posting-host=198.74.20.78; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:133229 Original-To: help-gnu-emacs@gnu.org 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:28756 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28756 > I am trying to define an abbrev, > #i > to > #include I had a similar problem when writing TACL mode where all keywords begin with #. IIRC abbrev only looks at characters with word syntax. Since modifying the mode's syntax table can have all kinds of effects the easiest solution might be to do something more along these lines. (add-hook foo-mode-hook (lambda () (local-set-key [?\C-c ?i] "#include")))