[comp.emacs] Expanding abbrevs with hooks

mw@ICS.UCI.EDU (Mark Wadsworth) (02/11/88)

Is there any way in GNU Emacs to find the string that is being expanded by an
abbrev hook?  I'd like to have several prefixes of a string all trigger the
same hook, which may choose not to expand the string.  (For example, the hook
might expand Pascal keywords into templates, but not if it's invoked in a
string or comment.)  So far, I haven't found anything that would let me do
that.  [A recent posting asked about suppressing the character that triggered
the abbrev.  That would be handy, too.]