home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4009 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.3 KB  |  34 lines

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