all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* abbrev-expand-functions
@ 2009-03-04 15:22 Leo
  2009-03-13 11:27 ` abbrev-expand-functions Leo
  0 siblings, 1 reply; 6+ messages in thread
From: Leo @ 2009-03-04 15:22 UTC (permalink / raw)
  To: help-gnu-emacs

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 :.





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

end of thread, other threads:[~2009-03-15 19:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-04 15:22 abbrev-expand-functions Leo
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

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.