Article View: gnu.emacs.bug
Article #87756noninteractive isearch bug
From: Tom Tromey
Date: Tue, 30 Aug 1994 04:56
Date: Tue, 30 Aug 1994 04:56
28 lines
1654 bytes
1654 bytes
Emacs 19.25.
I typed the following into *scratch* and evaluated it:
(save-excursion
(goto-char (point-min))
(isearch-forward))
This puts me into isearch. If I then type M-p, isearch immediately
exits, returning nil. The documentation for isearch-forward says
this:
If this function is called non-interactively, it does not return to
the calling function until the search is done.
So I think that this behavior is a bug.
While I'm at it, noninteractive use of isearch doesn't seem to be very
convenient. For instance, I don't see a way to get the last search
string. I think it would be good if isearch-forward returned the
search string (for a successful search), or nil if the user terminated
the search.
Tom
---
tromey@busco.lanl.gov Member, League for Programming Freedom
Sadism and farce are always inexplicably linked.
-- Alexander Theroux
Technical Details
Message-ID:
<9408300455.AA09818@busco.lanl.gov>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!uhog.mit.edu!europa.eng.gtefsd.com!library.ucla.edu!agate!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!busco.lanl.gov!tromeyShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,4454a6b429061c7,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-08-29 22:06:55 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!uhog.mit.edu!europa.eng.gtefsd.com!library.ucla.edu!agate!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!busco.lanl.gov!tromey From: tromey@busco.lanl.gov (Tom Tromey) Newsgroups: gnu.emacs.bug Subject: noninteractive isearch bug Date: 30 Aug 1994 00:56:24 -0400 Organization: GNUs Not Usenet Lines: 28 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9408300455.AA09818@busco.lanl.gov>