[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about LocateLineMatching
From: |
Jamie Wilkinson |
Subject: |
Re: Question about LocateLineMatching |
Date: |
Thu, 18 Mar 2004 18:19:07 +1100 |
User-agent: |
Mutt/1.5.5.1+cvs20040105i |
This one time, at band camp, Brendan Strejcek wrote:
>When I use LocateLineMatching, I always ensure there is something
>there to find. For example, a common task for me when I edit files is
>maintaining a left-hand-side/right-hand-side pair (that is, setting a
>variable and making sure that the line is unique). I have some m4 macros
>which make heavy use of LocateLineMatching and allows me to use the
>self-invented SetVariableToValue(LHS,RHS) construct in my edits. This
>allows me to deal with most config files (other than ini style).
That sounds very familiar :-)
>Also note that you can use CatchAbort and ResetSearch to recover from
>editfiles aborts.
I have had a lot of problems recently with "ResetSearch 1" not actually
resetting the search to the start of the file. Have you seen this
behaviour?
--
jaq@spacepants.org http://spacepants.org/jaq.gpg