Loading ...
Sorry, an error occurred while loading the content.

RE: [PATCH] new flags for the search() function

Expand Messages
  • Zdenek Sekera
    ... Hmmm, we agree (see my previous email) :-) ... Agreed again (see my previous email), what a day! :-):-)
    Message 1 of 13 , Dec 1, 2005
    • 0 Attachment
      > -----Original Message-----
      > From: Bram@... [mailto:Bram@...]
      > Sent: 30 November 2005 20:30
      > To: Benji Fisher
      > Cc: vim-dev@...
      > Subject: Re: [PATCH] new flags for the search() function
      >
      >
      > Benji Fisher wrote:
      >
      > > I may not be able to satisfy both of you when it comes to
      > > documentation! My current suggestion includes a shorter, less
      > > comprehensive, more interesting example:
      >
      > The example looks fine to me. But I'm not sure if the explanation is
      > clear, e.g., what "keyword at the current cursor position" means
      > exactly. Perhaps a few snippets of example text will help.
      >

      Hmmm, we agree (see my previous email) :-)

      > > I have updated the patch to add Yet Another Flag: 'c'
      > tells the
      > > function (search() or searchpair()) to return the column
      > number of the
      > > match instead of the line number. (Give an error message
      > if combined
      > > with 'p' or 'm'.)
      >
      > Alternative: add a new function that returns a list with both the line
      > and column number. Otherwise you would need to search twice to get
      > both.
      >
      > :let [lnum, col] = search???()
      >

      Agreed again (see my previous email), what a day! :-):-)

      ---Zdenek
    Your message has been successfully submitted and would be delivered to recipients shortly.