unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Calling function after any abbrev expansion
@ 2003-11-12 21:11 Jakub Narebski
  2003-11-12 22:20 ` Ian Zimmerman
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Narebski @ 2003-11-12 21:11 UTC (permalink / raw)


There is `pre-abbrev-expand-hook' for functions to execute just _before_
any expansion of an abbrev.  Is there any way to define function
to execute just _after_ an expansion of _any_ abbrev, possibly before
caling auto-fill[-function]?  Yes, I know that I can define the function 
to call after expansion of the specific abbrev, but is there any simple 
and fast solution for all abbrevs at once?


Thanks in advance

-- 
Jakub Narebski
    Poland

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

* Re: Calling function after any abbrev expansion
  2003-11-12 21:11 Calling function after any abbrev expansion Jakub Narebski
@ 2003-11-12 22:20 ` Ian Zimmerman
  2003-11-12 23:21   ` Jakub Narębski
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Zimmerman @ 2003-11-12 22:20 UTC (permalink / raw)



Jakub> There is `pre-abbrev-expand-hook' for functions to execute just
Jakub> _before_ any expansion of an abbrev.  Is there any way to define
Jakub> function to execute just _after_ an expansion of _any_ abbrev,
Jakub> possibly before caling auto-fill[-function]?  Yes, I know that I
Jakub> can define the function to call after expansion of the specific
Jakub> abbrev, but is there any simple and fast solution for all abbrevs
Jakub> at once?

I don't know if there's a hook variable that sovles your problem.  If
not, it (like anything :) can be done with defadvice.

-- 
"Rap music is our punishment for neglecting music education."
An anonymous teacher

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

* Re: Calling function after any abbrev expansion
  2003-11-12 22:20 ` Ian Zimmerman
@ 2003-11-12 23:21   ` Jakub Narębski
  0 siblings, 0 replies; 3+ messages in thread
From: Jakub Narębski @ 2003-11-12 23:21 UTC (permalink / raw)


Ian Zimmerman <bayard@newsguy.com> wrote:
> 
> Jakub> There is `pre-abbrev-expand-hook' for functions to execute just
> Jakub> _before_ any expansion of an abbrev.  Is there any way to define
> Jakub> function to execute just _after_ an expansion of _any_ abbrev,
> Jakub> possibly before caling auto-fill[-function]?  Yes, I know that I
> Jakub> can define the function to call after expansion of the specific
> Jakub> abbrev, but is there any simple and fast solution for all abbrevs
> Jakub> at once?
> 
> I don't know if there's a hook variable that solves your problem.  If
> not, it (like anything :) can be done with defadvice.

Yeah, defadvice, but defadvice what? I have thought about advising 
define-abbrev and the likes and going thru the defined (and appropriate) 
advices and add after abbrev hooks to appropriate abbrevs. But I really 
hope that there is a faster/simpler way...

-- 
Jakub Narębski                      mailto:jnareb@fuw.edu.pl
 ZTHiL IFT UW                       http://info.fuw.edu.pl/~jnareb/

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

end of thread, other threads:[~2003-11-12 23:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-12 21:11 Calling function after any abbrev expansion Jakub Narebski
2003-11-12 22:20 ` Ian Zimmerman
2003-11-12 23:21   ` Jakub Narębski

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