Article View: gnu.emacs.bug
Article #99416Re: Bug with isearch-forward-regexp and search-exit-char
From: Joseph Wells
Date: Sat, 22 Sep 1990 02:00
Date: Sat, 22 Sep 1990 02:00
39 lines
2389 bytes
2389 bytes
In article <1990Sep20.155354.5242@unx.sas.com> sasdjb@mozart.unx.sas.com (David Biesack) writes:
I have found some confusing behavior with interaction between
isearch-forward-regexp and search-exit-char. I have bound
isearch-forward-regexp to C-s and search-exit-char bound to ESC (I think
that is the default). Try the following key sequence from the *scratch*
buffer:
C-x 1 C-s ESC C-x o h e l l o RET RET
This starts an incremental isearch. The ESC cancels it, which really
puts me into non-incremental search. However, if you try to do a
other-window, Emacs leaves the cursor in the minibuffer. It looks like
Emacs is still prompting for the search string, but point is really in
the *scratch* buffer, not the minibuffer. If you try typing text, it is
inserted in the *scratch* buffer!
Here is a patch to fix this behavior:
*** /usr14/gnu/dist-18.55/lisp/isearch.el Tue Dec 8 18:11:03 1987
--- isearch.el Fri Sep 21 21:57:10 1990
***************
*** 365,369 ****
(if forward 'search-forward 'search-backward))))
;; Read the search string with corrected prompt.
! (setq string (read-string message))
;; Empty means use default.
(if (= 0 (length string))
--- 365,370 ----
(if forward 'search-forward 'search-backward))))
;; Read the search string with corrected prompt.
! (let (cursor-in-echo-area)
! (setq string (read-string message)))
;; Empty means use default.
(if (= 0 (length string))
Enjoy,
--
Joe Wells <jbw@bu.edu>
Technical Details
Message-ID:
<JBW.90Sep21220003@bucsf.bu.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!cica!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!bu.edu!nntp-read!jbwReferences:
<1990Sep20.155354.5242@unx.sas.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,e5dfa2fcc9c55b6,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-09-22 16:31:45 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!isaak!escher!nadia!smurf!ira.uka.de!sol.ctr.columbia.edu!cica!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!bu.edu!nntp-read!jbw From: jbw@bucsf.bu.edu (Joseph Wells) Newsgroups: gnu.emacs.bug Subject: Re: Bug with isearch-forward-regexp and search-exit-char Message-ID: <JBW.90Sep21220003@bucsf.bu.edu> Date: 22 Sep 90 02:00:03 GMT References: <1990Sep20.155354.5242@unx.sas.com> Sender: news@bu.edu.bu.edu Distribution: gnu Organization: Boston University Computer Science Department Lines: 39 Posted: Sat Sep 22 03:00:03 1990 In-reply-to: sasdjb@mozart.unx.sas.com's message of 20 Sep 90 15:53:54 GMT