unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* c-mode : can't expand '#d' to '#define'
@ 2002-09-24 17:35 Jeff Rancier
  2002-09-24 19:52 ` Kai Großjohann
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Rancier @ 2002-09-24 17:35 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-09-30 23:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-24 17:35 c-mode : can't expand '#d' to '#define' Jeff Rancier
2002-09-24 19:52 ` Kai Großjohann
2002-09-30  1:24   ` Luis Fernandes
2002-09-30 12:54     ` Clemens Fischer
2002-09-30 14:29     ` Kai Großjohann
2002-09-30 23:55       ` Luis Fernandes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).