home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!nntp-read!jbw
- From: jbw@bigbird.bu.edu (Joe Wells)
- Newsgroups: gnu.emacs.help
- Subject: Re: Can I expand an abbrev without the space getting added on the end ?
- Message-ID: <JBW.92Sep5124720@bigbird.bu.edu>
- Date: 5 Sep 92 17:47:20 GMT
- References: <1723@prlhp1.prl.philips.co.uk>
- <WMESARD.92Sep4121833@tofu.oracle.com>
- Sender: news@bu.edu
- Organization: Boston University Computer Science Department
- Lines: 20
- In-reply-to: wmesard@tofu.oracle.com's message of 4 Sep 92 20:18:33 GMT
-
- In article <WMESARD.92Sep4121833@tofu.oracle.com> wmesard@tofu.oracle.com (Wayne Mesard) writes:
-
- The insertion of the character you type is the very last thing that
- happens during the abbrev-expansion procedure and there's no opportunity
- for client elisp code to suppress that.
-
- You can do this:
-
- (setq unread-command-char ?\C-?)
-
- This will only work if DEL (aka C-?) is bound to a function that deletes
- the previous character. If necessary, you save the old binding of some
- key, rebind that key to a function that will delete the previous character
- and restore the old binding, and then set unread-command-char to that key.
-
- --
- Enjoy,
-
- Joe Wells <jbw@cs.bu.edu>
- Member of the League for Programming Freedom --- send e-mail for details
-