home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lucidem / help / 955 < prev    next >
Encoding:
Text File  |  1993-01-27  |  933 b   |  28 lines

  1. x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Wed, 27 Jan 1993 17:58:58 EST
  2. From: piggy%hilbert.maths.utas.edu.au@lucid.com (La Monte Yarroll)
  3. Message-ID: <9301270742.AA06561@hilbert.maths.utas.edu.au>
  4. Subject: How to replace self-insert-command?
  5. Date: Wed, 27 Jan 1993 18:42:27 EST
  6. X-Mailer: ELM [version 2.2 PL11]
  7. Newsgroups: alt.lucid-emacs.help
  8. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  9. Sender: help-lucid-emacs-request@lucid.com
  10. Lines: 16
  11.  
  12. I'd like to replace self-insert-command with my own routine.
  13.  
  14. Under plain GNU emacs I can define a function like this:
  15.  
  16. (defun self-insert-wrapper (arg)
  17.   (interactive "p")
  18.   (self-insert-command arg))
  19.  
  20. and then replace every instance of 'self-insert-command in global-map
  21. with 'self-insert-wrapper.
  22.  
  23. Under Lucid emacs 19.4 this almost works, except it breaks incremental
  24. searching.
  25.  
  26. Is there a way to do this WITHOUT breaking incremental searching?
  27.  
  28.