jed-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: next_word/prev_word


On 25.04.04, Dave Kuhlman wrote:
> I'd like to write a script that enables me to put the cursor on a
> word (or variable name), then press a key, and have it search for
> the next (or previous) occurance of that word.  Some questions:
> 
> 1. Is it there already?  Or, is it implemented somewhere?

Not that I know of. However, you will find building blocks in 
http://jedmodes.sf.net/mode/txtutils/

autoload("get_word", "txtutils");

% for me, next_word implies the neighbour, not the next occurence of the
% same word...
define fsearch_current_word() 
{
   () = fsearch(get_word());
}   
    
define bsearch_current_word()
{ 
   () = bsearch(get_word());
}       


Günter

-- 
G.Milde at web.de

--------------------------
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]