From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] a small change to acme
Date: Fri, 23 Feb 2001 14:59:47 +0000 [thread overview]
Message-ID: <20010223135439.8D63F199DC@mail.cse.psu.edu> (raw)
no wrap/inst involved - i just updated the file concerned (in my
private copy of acme). if you make the change in /sys/src/cmd/acme,
you should be aware that subsequent installs will detect that it's
changed, will warn you, and won't update the file.
i guess it should probably be a proper update, but i haven't got the
time now.
basically, edit /sys/src/cmd/acme/ecmd.c. change the printposn
function to look like this:
printposn(Text *t, int charsonly)
{
long l1, l2;
if (t != nil && t->file != nil && t->file->name != nil)
warning(nil, "%.*S:", t->file->nname, t->file->name);
if(!charsonly){
l1 = 1+nlcount(t, 0, addr.r.q0);
l2 = l1+nlcount(t, addr.r.q0, addr.r.q1);
/* check if addr ends with '\n' */
if(addr.r.q1>0 && addr.r.q1>addr.r.q0 && textreadc(t, addr.r.q1-1)=='\n')
--l2;
warning(nil, "%lud", l1);
if(l2 != l1)
warning(nil, ",%lud", l2);
warning(nil, "\n");
return;
}
warning(nil, "#%d", addr.r.q0);
if(addr.r.q1 != addr.r.q0)
warning(nil, ",#%d", addr.r.q1);
warning(nil, "\n");
}
this change makes the acme Edit = commands print fully qualified acme
addresses, which seems to make more sense... (it also means that you
can use them to mark a current position in the file, etc)
cheers,
rog.
next reply other threads:[~2001-02-23 14:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-23 14:59 rog [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-02-23 19:17 William Staniewicz
2001-01-11 15:42 rog
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=20010223135439.8D63F199DC@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).