Article View: gnu.emacs.bug
Article #1690problem with reverse i-search?
From: Chris Hanson
Date: Tue, 16 May 1989 20:22
Date: Tue, 16 May 1989 20:22
19 lines
1350 bytes
1350 bytes
A problem I noticed recently with reverse i-search is that the C-w and C-y characters have an unusual behavior: when used, if the length of the text added to the search string is greater than one character, the search skips to the previous instance of the string. However, if the length of the text is exactly one character, it just extends the search text without moving. I believe this is because the following (from line 246 of "/gp/gnu/emacs/lisp/isearch.el") is incorrect: ;; Not regexp, not reverse, or no match at point. (if (and other-end (not adjusted)) (goto-char (if forward other-end (min opoint barrier (1+ other-end))))) The subexpression `(1+ other-end)' does not take into account the length of the text being added to the search string. If this is fixed to do so the effect of the C-w and C-y characters should be consistent independent of the length of the added text.
Technical Details
Message-ID:
<8905162022.AA12275@kleph>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!KLEPH.AI.MIT.EDU!cphShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!KLEPH.AI.MIT.EDU!cph From: cph@KLEPH.AI.MIT.EDU (Chris Hanson) Newsgroups: gnu.emacs.bug Subject: problem with reverse i-search? Message-ID: <8905162022.AA12275@kleph> Date: 16 May 89 20:22:30 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: cph@zurich.ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19