9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: roger peppe <rogpeppe@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Another acme question
Date: Fri, 26 Jun 2009 12:15:29 +0100	[thread overview]
Message-ID: <df49a7370906260415t7528882bje092f0c439b9fc8@mail.gmail.com> (raw)
In-Reply-To: <138575260906260323y63ae8fadid914141a4e422f77@mail.gmail.com>

2009/6/26 hugo rivera <uair00@gmail.com>:
> Hello,
> I have another problem with acme.
> Lets say I want to check the spelling in all the comments in a c file,
> so I execute:
> Edit ,x/\/\*.*\*\// > spell   (nevermind this doesn't work for more
> than one line comments)
> and nothing happens.

this seems to be a bug in spell - it ignores a final line with no linefeed.
this works ok:
Edit ,x/\/\*.*\*\// > {cat; echo} | spell

i've sometimes wondered if it'd be useful to have a variant on >
that prints the output of the command prefixed by the address
of the input (not that it would be particularly useful in this case, though,
as the words are easily searchable). i never thought of a decent
syntax for it though.



  reply	other threads:[~2009-06-26 11:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26 10:23 hugo rivera
2009-06-26 11:15 ` roger peppe [this message]
2009-06-26 11:46   ` hugo rivera
  -- strict thread matches above, loose matches on Subject: below --
2009-02-18 15:01 hugo rivera
2009-02-18 15:16 ` lucio
2009-02-18 15:22   ` ron minnich
2009-02-18 15:27     ` lucio
2009-02-18 15:22   ` hugo rivera
2009-02-18 15:17 ` ron minnich

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=df49a7370906260415t7528882bje092f0c439b9fc8@mail.gmail.com \
    --to=rogpeppe@gmail.com \
    --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).