9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Highlighting in Acme
Date: Wed, 20 Jun 2001 11:46:57 +0100	[thread overview]
Message-ID: <20010620103808.151BA199C1@mail.cse.psu.edu> (raw)

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.



             reply	other threads:[~2001-06-20 10:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-20 10:46 rog [this message]
2002-04-11 18:35 ` Dharani Vilwanathan
  -- strict thread matches above, loose matches on Subject: below --
2002-04-11 18:48 rob pike, esq.
2002-04-11 19:01 ` Dharani Vilwanathan
2002-04-11 19:17 ` Dan Cross
2002-04-11 18:43 rob pike, esq.
2002-04-11 18:40 rob pike, esq.
2001-06-19 18:30 [9fans] Inferno plug-in security erik quanstrom
2001-06-19 20:58 ` [9fans] Highlighting in Acme Dharani Vilwanathan

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=20010620103808.151BA199C1@mail.cse.psu.edu \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /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).