* [9fans] p9p lib/acme.rc file error?
@ 2011-03-20 15:13 Rudolf Sykora
2011-03-20 15:18 ` Rudolf Sykora
0 siblings, 1 reply; 2+ messages in thread
From: Rudolf Sykora @ 2011-03-20 15:13 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [9fans] p9p lib/acme.rc file error?
2011-03-20 15:13 [9fans] p9p lib/acme.rc file error? Rudolf Sykora
@ 2011-03-20 15:18 ` Rudolf Sykora
0 siblings, 0 replies; 2+ messages in thread
From: Rudolf Sykora @ 2011-03-20 15:18 UTC (permalink / raw)
I am sorry, ignore it, please. I can have both variable and function
at the same time, as it seems...
Ruda
On 20 March 2011 16:13, Rudolf Sykora <rudolf.sykora at gmail.com> wrote:
> 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-20 15:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-20 15:13 [9fans] p9p lib/acme.rc file error? Rudolf Sykora
2011-03-20 15:18 ` Rudolf Sykora
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).