Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!ucla-cs!zen!ucbvax!nmsu.CSNET!jthomas From: jthomas@nmsu.CSNET Newsgroups: comp.emacs Subject: Re: abbrev-mode vs (insert "abbrev") Message-ID: <8709050147.AA18640@ucbvax.Berkeley.EDU> Date: Fri, 4-Sep-87 11:34:34 EDT Article-I.D.: ucbvax.8709050147.AA18640 Posted: Fri Sep 4 11:34:34 1987 Date-Received: Sat, 5-Sep-87 22:31:26 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 22 Re: my message Message-Id: <8709031458.AA24875@tesuque> > From: John Robinson > Something like this will do it, I think: > (defun foo () > (progn > (let ((beg (point))) > (insert "if " (read-string ": ")) > (expand-region-abbrevs beg (point) 1)) > )) > /jr Thank you, but... I had considered using expand-region-abbrevs , but the language mode really shouldn't have to know anything at all about whether abbrev-mode is on or not. Shouldn't abbrev-mode have to know that insert (and presumably some other things) have to be redefined? Or is that just as gross? Jim Thomas jthomas@nmsu.CSNET formerly JNTCS@UNO.BITNET