- Subject: Re: An isearch command that wraps?
- From: Lloyd Zusman <ljz@xxxxxxxxxx>
- Date: Sun, 14 Nov 2004 10:09:14 -0500
At Sun, 14 Nov 2004 12:34:06 +0100,
Paul Boekholt wrote:
>
> On Sat, Nov 13, 2004 at 09:49:44PM -0500, Lloyd Zusman wrote:
> > Has anyone written an isearch command that wraps, sort of like the
> > isearch does in Gnu Emacs?
> Mine does not (Emacs 21.2).
??? I've been using Gnu Emacs since the late 1980's -- since version
17.x or 18.x -- and in all versions since then, including 21.2, isearch
has worked in the way that I described in my original message. I have
no elisp code that modifies the standard isearch behavior.
And don't just take my word for it; note this text from the Gnu Emacs
"info" page on incremental searching:
If a search is failing and you ask to repeat it by typing another
`C-s', it starts again from the beginning of the buffer. Repeating a
failing reverse search with `C-r' starts again from the end. This is
called "wrapping around", and `Wrapped' appears in the search prompt
once this has happened. If you keep on going past the original
starting point of the search, it changes to `Overwrapped', which means
that you are revisiting matches that you have already seen.
In my original message, the outline I posted for what I'd like jed's
isearch to do is exactly this.
If you go into Gnu Emacs and try the precise scenario that I outlined in
my original message, you will see that Gnu Emacs' isearch indeed
functions in this manner.
> What Emacs does do that JED does not, is set a mark at the start of the
> search and show a message "mark saved where search started". So I can
> search forward with C-s, go back to the starting point with C-x C-x and
> then search backward with C-r.
As described above, Gnu Emacs (XEmacs, also, by the way) does more than
this.
> You can do that in JED:
> --- isearch.sl Mon Jun 14 16:14:09 2004
> +++ isearch.sl Sun Nov 14 12:23:28 2004
> @@ -96,7 +96,7 @@
> % and zeros on the stack should match the value of m.
> % These 0s and 1s are used when unwinding the search stack
> % Since a mark was pushed and not attached to a character, push 0
> -
> + push_mark ();
> push_mark ();
> 0;
> m = 1;
>
> The drawback is that the marks are never popped - JED's marks are pushed
> on a stack, Emacs has a mark stack too but doesn't keep reminding you
> there is a mark with an "m" in the modeline. See also message
> <200410110520.i9B5Ktit018662@xxxxxxxxxxxxxx>
Thanks for this. However, doing C-x C-x after a failed isearch isn't
the feature that I'm looking for.
As for looking up that previous message: the list archives seem to be
inaccessible, and therefore, I cannot search for that reference. I
mentioned in a follow-up to my original message that the
www.ruptured-duck.com host (where the jed-users archive lives, according
to the jed documentation on jedsoft) is not responding to http queries.
Can you or someone point me to another source for the
<200410110520.i9B5Ktit018662@xxxxxxxxxxxxxx> message, or perhaps another
location for the list archives besides "ruptured-duck"?
Thanks.
--
Lloyd Zusman
ljz@xxxxxxxxxx
God bless you.
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2004 date index]
[2004 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]