9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] acme bug
@ 2004-10-19 20:35 Richard C Bilson
  2004-10-20 13:43 ` rog
  0 siblings, 1 reply; 6+ messages in thread
From: Richard C Bilson @ 2004-10-19 20:35 UTC (permalink / raw)
  To: 9fans

Consider the 3-line range

xxx
special
yyy

after applying the sam-command

x g/special/ {
i
#top
.
a
#bottom
.
}

In sam, I get the result

xxx
#top
special
#bottom
yyy

which is what I expect.  If I try the same in acme, however, extra
blank lines are displayed.  What's worse is that acme's internal data
structure seems to be corrupted; if I Put and then Get, the file is cut
off after the second line.

Note: I've observed this only on the Unix acme, and I'm not currently
able to test on Plan 9.


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [9fans] acme bug
@ 2003-02-28 22:08 Micah Stetson
  2003-02-28 19:24 ` Russ Cox
  0 siblings, 1 reply; 6+ messages in thread
From: Micah Stetson @ 2003-02-28 22:08 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

This is absolutely consistent on my system:
1. Open acme.bug (attached) or any file with three or more CRLF terminated
    lines
2. Button 2 on 'Edit ,x/
/d' (that's ,x/<CR>/d if your mailer messes it up)
3. A +Errors window opens with this message: elogapply: can't happen 4 4 3

I updated from sources this morning.  I'm not sure how long this
behavior has been there, I just noticed it yesterday looking at some
DOS text files.  I should probably have hunted down the problem, but I
figured it would be so obvious to somebody here that I would just be
wasting time.

Thanks,

Micah

[-- Attachment #2.1: Type: text/plain, Size: 308 bytes --]

The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

	Content-Disposition: attachment; filename=acme.bug
	Content-Type: text/plain; charset="US-ASCII"
	Content-Transfer-Encoding: 7bit

[-- Attachment #2.2: acme.bug.suspect --]
[-- Type: application/octet-stream, Size: 4 bytes --]




^ permalink raw reply	[flat|nested] 6+ messages in thread
* [9fans] acme bug
@ 2000-12-24 22:34 rob pike
  0 siblings, 0 replies; 6+ messages in thread
From: rob pike @ 2000-12-24 22:34 UTC (permalink / raw)
  To: 9fans

Russ found a stupid bug in the new Acme edit feature, a failure to
convert some Sam code properly.  The bug is that Acme crashes
instead of just complaining in certain ordinary circumstances.
The fix is trivial: change calls to error into calls to editerror.
This diff might not be exactly right for the released source, but
it'll be close enough to figure out what to do:


acme% diff -n /n/dump/2000/1224/sys/src/cmd/acme/ecmd.c ecmd.c
/n/dump/2000/1224/sys/src/cmd/acme/ecmd.c:570 c ecmd.c:570
< 		error("no name specified for 'w' command");
---
> 		editerror("no name specified for 'w' command");
/n/dump/2000/1224/sys/src/cmd/acme/ecmd.c:956 c ecmd.c:956
< 				error("address");
---
> 				editerror("address");
/n/dump/2000/1224/sys/src/cmd/acme/ecmd.c:965 c ecmd.c:965
< 				error("address");
---
> 				editerror("address");



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-11-09 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-19 20:35 [9fans] acme bug Richard C Bilson
2004-10-20 13:43 ` rog
2004-11-09 21:36   ` Rob Pike
  -- strict thread matches above, loose matches on Subject: below --
2003-02-28 22:08 Micah Stetson
2003-02-28 19:24 ` Russ Cox
2000-12-24 22:34 rob pike

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).