From: Leo <sdl.web@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: abbrev-expand-functions
Date: Wed, 04 Mar 2009 15:22:46 +0000 [thread overview]
Message-ID: <xbaiocwhtird.fsf@cam.ac.uk> (raw)
Hi there,
I want to include a function in abbrev-expand-functions that does
post-processing the expansion, however I'd like to avoid inserting the
character that triggers it. For example, if <SPC> triggers an abbrev,
that function will be called to process the expansion but <SPC> should
be not be inserted.
But according to the manual, it seems this is only possible by defining
the abbreviation with a 'no-self-insert hook. This is not an option to
me as I want my function to be general for all abbreviations.
Any idea how to get this done?
p.s.
I read the source of expand-abbrev to find out how the hook
work. Unfortunately it is written with lables and lexical-let that I yet
to familiarise myself with.
Thanks,
--
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.
next reply other threads:[~2009-03-04 15:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-04 15:22 Leo [this message]
2009-03-13 11:27 ` abbrev-expand-functions Leo
2009-03-13 20:24 ` abbrev-expand-functions Johan Bockgård
2009-03-15 13:05 ` abbrev-expand-functions Leo
2009-03-15 16:34 ` abbrev-expand-functions Johan Bockgård
2009-03-15 19:41 ` abbrev-expand-functions Leo
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=xbaiocwhtird.fsf@cam.ac.uk \
--to=sdl.web@gmail.com \
--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.