Path: utzoo!mnetor!uunet!husc6!hao!oddjob!uwvax!dogie!uwmcsd1!ig!agate!ucbvax!ICS.UCI.EDU!mw From: mw@ICS.UCI.EDU (Mark Wadsworth) Newsgroups: comp.emacs Subject: Expanding abbrevs with hooks Message-ID: <8802101845.aa23962@ICS.UCI.EDU> Date: 11 Feb 88 02:45:03 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 7 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.]