all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jeff Rancier" <jeff.rancier@softechnics.com>
Subject: c-mode : can't expand '#d' to '#define'
Date: Tue, 24 Sep 2002 17:35:09 GMT	[thread overview]
Message-ID: <hn1k9.26234$Kj4.6837710@twister.nyroc.rr.com> (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

             reply	other threads:[~2002-09-24 17:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-24 17:35 Jeff Rancier [this message]
2002-09-24 19:52 ` c-mode : can't expand '#d' to '#define' 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hn1k9.26234$Kj4.6837710@twister.nyroc.rr.com' \
    --to=jeff.rancier@softechnics.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.