9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rudolf.sykora@gmail.com (Rudolf Sykora)
Subject: [9fans] p9p lib/acme.rc file error?
Date: Sun, 20 Mar 2011 16:13:59 +0100	[thread overview]
Message-ID: <AANLkTikku4tkyUE23J_5ykkdE2kKJrUT4+H3spS4ZhiL@mail.gmail.com> (raw)

Hello,

trying to use acmeedit I got from sb here I encountered this in
$PLAN9/lib/acme.rc file:
fn newwindow {
	winctl=`{9p read acme/new/ctl}
	winid=$winctl(1)
	winctl noscroll
}

fn winctl {	
	echo $* | 9p write acme/$winid/ctl
}
... many more lines

I believe the newwindow funcion is wrong. After its 1st line winctl is
a *variable* with many fields. And I try to call it on the 3rd line.
I'd expect sth. like
fn newwindow {
	winc=`{9p read acme/new/ctl}
	winid=$winc(1)
	winctl noscroll
}
was meant. Is it so?

Thank you!
Ruda



             reply	other threads:[~2011-03-20 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-20 15:13 Rudolf Sykora [this message]
2011-03-20 15:18 ` Rudolf Sykora

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=AANLkTikku4tkyUE23J_5ykkdE2kKJrUT4+H3spS4ZhiL@mail.gmail.com \
    --to=rudolf.sykora@gmail.com \
    /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).