From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] acme + plumber question
Date: Fri, 5 Oct 2012 09:04:55 -0400 [thread overview]
Message-ID: <c93703a07e40452787147e62b3525945@brasstown.quanstro.net> (raw)
In-Reply-To: <12158316.NY6jp8kkEc@coil>
On Fri Oct 5 08:45:47 EDT 2012, dexen.devries@gmail.com wrote:
> On Friday 05 of October 2012 07:49:57 erik quanstrom wrote:
> > does it not work to write a plumb rule that parses the whole line? then
> > it would possible to double-click at the edges of the line to select the
> > whole line.
>
> ok, got it working. the important bit is regcompnl() vs. regcomp().
>
>
> simple problems are simple:
>
> $PLAN9/src/cmd/plumb $ 9 diff -c -n rules.c-orig rules.c
> X-rules.c:363 c rules.c:363
> < r->regex = regcomp(r->qarg);
> ---
> > r->regex = regcompnl(r->qarg);
you'll probablly rather put a literal newline in your rule.
you probablly don't want any surprises in other rules that
expect . not to match \n. ☺
- erik
next prev parent reply other threads:[~2012-10-05 13:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-05 10:23 dexen deVries
2012-10-05 11:49 ` erik quanstrom
2012-10-05 12:31 ` dexen deVries
2012-10-05 12:44 ` dexen deVries
2012-10-05 13:04 ` erik quanstrom [this message]
2012-10-05 13:08 ` dexen deVries
2012-10-05 14:25 ` erik quanstrom
2012-10-05 14:34 ` erik quanstrom
2012-10-05 14:48 ` dexen deVries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c93703a07e40452787147e62b3525945@brasstown.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).