Article View: gnu.emacs.help
Article #189002Re: isearch eating initial ESC generated by cursor keys
From: Dion Hollenbeck
Date: Fri, 17 May 1991 19:22
Date: Fri, 17 May 1991 19:22
34 lines
2231 bytes
2231 bytes
In article <9105150902.AA18293@telotech.UUCP> bsa@telotech.ai.mit.edu writes:
> +---------------
> | In article <1991Apr29.204040.14429@jato.jpl.nasa.gov> dave@jato.jpl.nasa.gov (Dave Hayes) writes:
> | I have one HOWEVER I am reluctant to release it for general use until I
> | find out exactly how to stop an ESC from being eaten by a search command.
> |
> | Here's the fix I use. Apply the diff to the source or to your own private
> | copy of isearch.el.
> |
> | + ;; jbw: added support for unreading ESC if it might be
> | + ;; part of a character sequence generated by a
> | + ;; function key. This is timing dependent and will
> | + ;; not always work.
> +---------------
>
> There's a MUCH cleaner way:
>
> (setq search-exit-char ?\r)
>
> ++Brandon
This is definitely cleaner, but does not solve the problem jbw put
the fix in for, namely typing of arrow keys (containing and ESC)
while in an isearch. By putting in your fix, when he types
an arrow key while in isearch, it will merely beep at him, it will
not terminate the search AND PERFORM MOVEMENT ALSO, which is
what he wants and what his fix solves. Thanks for a novel
solution which may help other people who do not like to end
an isearch with ESC.
--
-----
Dion Hollenbeck (619) 455-5590 x2814
Megatek Corporation, 9645 Scranton Road, San Diego, CA 92121
uunet!megatek!hollen or hollen@megatek.uucp
Technical Details
Message-ID:
<HOLLEN.91May17122258@orion.megatek.UUCP>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!usc!ucla-cs!ucivax!megatek!orion!hollenReferences:
<9105150902.AA18293@telotech.UUCP>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,c6ad83f607946d0c X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-05-17 21:02:58 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!usc!ucla-cs!ucivax!megatek!orion!hollen From: hollen@megatek.UUCP (Dion Hollenbeck) Newsgroups: gnu.emacs.help Subject: Re: isearch eating initial ESC generated by cursor keys Message-ID: <HOLLEN.91May17122258@orion.megatek.UUCP> Date: 17 May 91 19:22:58 GMT References: <9105150902.AA18293@telotech.UUCP> Sender: rupp@megatek.UUCP Followup-To: gnu.emacs.help Organization: Megatek Corporation, San Diego, California Lines: 34 In-reply-to: bsa@telotech.ai.mit.edu's message of 15 May 91 13:02:47 GMT