- Subject: Re: An isearch command that wraps?
 
- From: Paul Boekholt <p.boekholt@xxxxxxxxx>
 
- Date: Sun, 14 Nov 2004 12:34:06 +0100
 
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).
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.
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>
--------------------------
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]