9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Tim Newsham <newsham@lava.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Using Acme as an external Editor
Date: Mon, 27 Jul 2009 08:06:24 -1000	[thread overview]
Message-ID: <Pine.BSI.4.64.0907270800400.5249@malasada.lava.net> (raw)
In-Reply-To: <op.uxo1aqaa0p3ku8@localhost>

> Is there some idiom or method for using Acme as an external editor to some
> other program? Say I want to use it as the editor that is spawned when I do a
> CVS commit to a system; how would I do this, or can this even be done? I'm
> using plan9ports, but I don't know how much of this question relates to what.

I was playing with this exact problem recently. There's an easy way to
send a file to acme for editing -- the plumber.  There's a downside, it
doesn't wait for the editor to save or complete.  So.. you could plumb the
file and then wait for a save to happen, somehow, or you can write another
program that forces a new acme window with the contents of the file and
waits for it to either Put or Del.  I wrote a small program to do this
recently (see the thread: http://9fans.net/archive/2009/06/290) which was
a bit hacky, but worked.  I solicited some feedback on some questions and
got some good advice from Russ (http://9fans.net/archive/2009/06/292) but
havent yet gone back and applied it.

> 	Aaron W. Hsu

Tim Newsham
http://www.thenewsh.com/~newsham/



  parent reply	other threads:[~2009-07-27 18:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27  9:31 Aaron W. Hsu
2009-07-27  9:38 ` Sape Mullender
2009-07-27 10:47   ` Noah Evans
2009-07-27 10:50     ` Noah Evans
2009-07-27 11:16       ` Lorenzo Bolla
2009-07-27 11:22         ` Steve Simon
2009-07-27 18:06 ` Tim Newsham [this message]
2009-07-27 18:22   ` Russ Cox
2009-07-28  1:19     ` J.R. Mauro
2009-07-28  6:55       ` sqweek
2009-07-28 22:43         ` J.R. Mauro

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=Pine.BSI.4.64.0907270800400.5249@malasada.lava.net \
    --to=newsham@lava.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).