Xref: utzoo gnu.emacs.help:685 comp.emacs:9803 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!tut.cis.ohio-state.edu!scenic.wa.com!pauld From: pauld@scenic.wa.com (Paul Barton-Davis) Newsgroups: gnu.emacs.help,comp.emacs Subject: Problem with Home key Message-ID: <9012311743.AA00445@scenic.scenic.wa.com> Date: 31 Dec 90 17:43:21 GMT References: <9012211448.AA01156@mite.aet_austin> Sender: daemon@tut.cis.ohio-state.edu Followup-To: gnu.emacs.help Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Lines: 24 Harold - many people have probably told you about this already. There is a special character that Emacs uses to terminate an incremental search. By default it is set to ESC. When you press the home key (or most any other function key), it generates a sequence that begins with an ESC. Emacs therefore terminates the search, and inserts the remaining part of the generated sequence ("[214z") into the buffer, since it appears to Emacs as if you typed each character one-by-one. You can prevent this behaviour by putting the following in your .emacs file: (setq search-exit-char ?q) which would set the "search exit character" to be a lower case q. I seem to recall that I used to have a more sophisticated solution to this that involved modifying the way that isearch handled its exit character (sort of an "ungetc" approach), but I can't find it now. Hope this helps, Paul Barton-Davis ScenicSoft, Inc. (206) 776-7760 "Make it fast - soon to be pauld@home.com"