From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <003d01c1e187$b8f4a580$4bf0b487@dnrc.belllabs.com> From: "Dharani Vilwanathan" To: <9fans@cse.psu.edu> References: <20010620103808.151BA199C1@mail.cse.psu.edu> Subject: Re: [9fans] Highlighting in Acme MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Thu, 11 Apr 2002 14:35:58 -0400 Topicbox-Message-UUID: 763a10f8-eaca-11e9-9e20-41e7f4b1d025 rog, Sorry for bringing up this topic too late. I had a question on Acme highlighting and you answered it long back. I tried this option and it didnt seem to work for me with the file interface. It does work with the right button. This is what I did. I created a 3 line file say test1: % cat test1 1234567890 1234567890 1234567890 Then I opened this file in acme and wrote the following: % echo '2-#0+#5,3-#0+#4' > /mnt/acme/9/addr echo: write error: bad address syntax % echo ':2-#0+#5,3-#0+#4' > /mnt/acme/9/addr echo: write error: bad address syntax Both the writes are failing. Sweeping ":2-#0+#5,3-#0+#4" with right button pressed works, however. Am I making any mistake? Next, I noticed limbo compiler produces something like "test.b:10.5..." in test.s output. But Acme didnt recognize this addressing properly. Is it that the corresponding code is not in Acme yet? If so, when will it be available? Will it be available in both Plan 9 and Inferno versions? Actually this is an elegant addition to Acme. Addressing a text with lpos1:cpos1 and lpos2:cpos2 is appealing. This will make things clean. Thanks dharani > bell-labs.com!dharani wrote: > > If I have to highlight a portion of text, say character 4 to 8 in line 5, in > > a window in Acme, how can I do it through Acme interface? > > when you say "Acme interface" i don't know whether you mean the Acme > user interface or the Acme program (filesystem) interface. > > you've chosen a task that's possible, but not elegant from the user > interface: right button click on the text: > :5-#0+#4,5-#0+#8 > or alternatively: > :5-#0+#4;+#4 > > you can give an arbitrary sam-style address there. > given that the Limbo compiler holds file positions in line.charpos > format, i was considering adding a hack to my local acme > that would understand: > > :5.4,5.8 > > and then the compiler could spit out more detailed positions > that acme could understand (having the compiler spit > out: > > file.b:100-#0+#20,101-#0+#30: some error > > seems a bit uncomfortable). > if you want to do this through the filesystem interface, > write the address to the addr file, and write "dot=addr" to > the ctl file. > > read the manual. > > cheers, > rog. >