From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: help-gnu-emacs@gnu.org
Subject: Re: abbrevs, skeletons, and comments
Date: Thu, 14 Jun 2007 20:30:56 +0200 [thread overview]
Message-ID: <yoij3b0uie1r.fsf@gamma02.me.chalmers.se> (raw)
In-Reply-To: jwvzm3547e3.fsf-monnier+gnu.emacs.help@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> you can define it as
>
> (define-abbrev sml-mode-abbrev-table ,name ""
> (lambda () (unless (nth 8 (syntax-ppss))
> (call-interactively ',fsym)))
> nil 'system)
>
> Hmm... ah no, then it just erases the abbrev's name, so you have to
> adjust the function so it re-inserts the text.
The argument EXPANSION is normally the desired expansion [...]. If
it is anything but a string or `nil', then the abbreviation
"expands" solely by running HOOK.
--
Johan Bockgård
prev parent reply other threads:[~2007-06-14 18:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-02 14:34 abbrevs, skeletons, and comments nobrowser
2007-06-03 3:24 ` Tim X
2007-06-03 4:44 ` nobrowser
2007-06-03 10:32 ` Tim X
2007-06-03 13:31 ` nobrowser
2007-06-03 11:43 ` Andreas Roehler
2007-06-11 9:20 ` Johan Bockgård
2007-06-12 13:50 ` Stefan Monnier
2007-06-14 18:30 ` Johan Bockgård [this message]
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=yoij3b0uie1r.fsf@gamma02.me.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
--cc=help-gnu-emacs@gnu.org \
/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.