From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jeff Rancier" Newsgroups: gmane.emacs.help Subject: c-mode : can't expand '#d' to '#define' Date: Tue, 24 Sep 2002 17:35:09 GMT Organization: Road Runner Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1032889636 18288 127.0.0.1 (24 Sep 2002 17:47:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Sep 2002 17:47:16 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17ttmE-0004kl-00 for ; Tue, 24 Sep 2002 19:47:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ttmK-00044i-00; Tue, 24 Sep 2002 13:47:20 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.nyroc.rr.com!cyclone-out.nyroc.rr.com!twister.nyroc.rr.com.POSTED!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 24 X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 24.97.108.46 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyroc.rr.com 1032888909 24.97.108.46 (Tue, 24 Sep 2002 13:35:09 EDT) Original-NNTP-Posting-Date: Tue, 24 Sep 2002 13:35:09 EDT Original-Xref: nntp.stanford.edu comp.emacs:74736 gnu.emacs.help:105249 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1804 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1804 Hello All: In c-mode, I have the following: (defconst c-expand-list '( ("#d" "#define ") ("d" "do\n{\n\n} while();" (6 15)) ("de" "default:") ) "Expansions for C mode" ) (defun c-mode-expand-add-hooks () (expand-add-abbrevs c-mode-abbrev-table c-expand-list)) (add-hook 'c-mode-hook 'c-mode-expand-add-hooks) When I type #d followed by a space, I get the do expansion. Can anyone explain this? -- Thanks, Jeff