[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] help with macro
From: |
Thomas Dickey |
Subject: |
Re: [vile] help with macro |
Date: |
Mon, 18 Aug 2014 19:58:53 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Aug 18, 2014 at 10:38:00AM -0700, Matthew White wrote:
> I've found the LoadErrorExprs macro to load the following expression into
> '[Error Expresions]'
>
> ^<standard input>:%L:%C:%T
I'd suggest something like this for the pattern - the parentheses mark off
the sub-expression that vile's looking for:
^%[^:]\+:%L:%C:%T
and preview it with
show-error-expressions
> (I've also tried simply ':%L:%C:' and that didn't work either)
>
> I've verified that the expression is actually showing up in the buffer.
> I've verified that the sterr from gofmt is making it into the buffer marked
> as error-buffer (called [gofmt errors])
>
> However, I'm getting this error when I execute my macro:
>
> '[No more errors in [gofmt errors] buffer]'
yes - there's no subexpression for the filename
> I'm guessing that the expression isn't matching the error string, but I
> can't see what I'm doing wrong.
>
> For reference the error strings look like this:
>
> <standard input>:7:1: expected expression
> /home/mtw/src/test.go:7:1:expected expression
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature