From mboxrd@z Thu Jan 1 00:00:00 1970 From: rudolf.sykora@gmail.com (Rudolf Sykora) Date: Sun, 20 Mar 2011 16:18:50 +0100 Subject: [9fans] p9p lib/acme.rc file error? In-Reply-To: References: Message-ID: Topicbox-Message-UUID: bd9f2170-ead6-11e9-9d60-3106f5b1d025 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 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 >