* [9fans] Re: hack for acme @ 2003-03-05 7:00 peter a. cejchan 2003-03-05 12:04 ` paurea 2003-03-05 19:25 ` Fco.J.Ballesteros 0 siblings, 2 replies; 6+ messages in thread From: peter a. cejchan @ 2003-03-05 7:00 UTC (permalink / raw) To: 9fans; +Cc: paurea [-- Attachment #1: Type: text/plain, Size: 389 bytes --] I have some other (newer?) version of acme.c, so I guessed the lines to correct/add. However, after 3-1 on a dir, acme died with the following: acme: text.load couldn't find destination for message acme 1233: suicide: sys: trap: fault read addr =.... I would be grateful for a whole acme tarball. The idea sounds great -- I don't feel I need 3-1 just for no-op thanks, ++pac [-- Attachment #2: Type: text/html, Size: 900 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* [9fans] Re: hack for acme 2003-03-05 7:00 [9fans] Re: hack for acme peter a. cejchan @ 2003-03-05 12:04 ` paurea 2003-03-05 19:25 ` Fco.J.Ballesteros 1 sibling, 0 replies; 6+ messages in thread From: paurea @ 2003-03-05 12:04 UTC (permalink / raw) To: 9fans There was a bug in the diff I sent to the list. Sorry for that. Here is a (hopely bugless) one. diff /n/dump/2003/0227/sys/src/cmd/acme/acme.c acme/acme.c 424c424 < uint q0, q1; --- > uint q0, q1, keepw; 431a432 > 540,541c541,544 < if(textselect3(t, &q0, &q1)) < look3(t, q0, q1, FALSE); --- > if(keepw=textselect3(t, &q0, &q1)){ > keepw=(keepw==4); // is it chord 31? > look3(t, q0, q1, FALSE, keepw); > } diff /n/dump/2003/0227/sys/src/cmd/acme/exec.c acme/exec.c 128a129 > 202a204 > 203a206 > return; diff /n/dump/2003/0227/sys/src/cmd/acme/fns.h acme/fns.h 59c59 < void look3(Text*, uint, uint, int); --- > void look3(Text*, uint, uint, int, uint); diff /n/dump/2003/0227/sys/src/cmd/acme/look.c acme/look.c 15c15 < Window* openfile(Text*, Expand*); --- > Window* openfile(Text*, Expand*, uint keepw); 20c20 < look3(Text *t, uint q0, uint q1, int external) --- > look3(Text *t, uint q0, uint q1, int external, uint keepw) 31a32 > 136c137 < openfile(t, &e); --- > openfile(t, &e, keepw); 170a172,175 > > > > 196c201 < openfile(nil, &e); --- > openfile(nil, &e, FALSE); 671c676 < openfile(Text *t, Expand *e) --- > openfile(Text *t, Expand *e, uint keepw) 677a683 > Rectangle rect; 693c699,707 < w = makenewwindow(t); --- > if(keepw){ > w=t->w; > if(w == nil) > return nil; > } > else{ > w = makenewwindow(t); > } > 695c709,713 < winsetname(w, e->name, e->nname); --- > > winsetname(w, e->name, e->nname); > if(keepw&&t->w->isdir){ > t->file->nc=0; > } 696a715,722 > > if(keepw&&t->w->isdir){ > rect=t->all; > rect.min.x += Scrollwid+Scrollgap+Margin+Border; > textredraw(t,rect,t->reffont->f,screen,-1); > rowresize(&row, screen->clipr); > flushimage(display, 1); > } 763c789 < openfile(et, &e); --- > openfile(et, &e, FALSE); diff /n/dump/2003/0227/sys/src/cmd/acme/text.c acme/text.c 13a14,15 > > 189a192 > 191a195 > 1047,1048c1051,1057 < h = (textselect23(t, q0, q1, but3col, 1|2) == 0); < return h; --- > h = textselect23(t, q0, q1, but3col, 2); > if(h & 4) > return 4; // chord31 > if(h==0) > return 1; > else > return 0; diff /n/dump/2003/0227/sys/src/cmd/acme/xfid.c acme/xfid.c 809c809 < look3(t, q0, q1, TRUE); --- > look3(t, q0, q1, TRUE, FALSE); ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Re: hack for acme 2003-03-05 7:00 [9fans] Re: hack for acme peter a. cejchan 2003-03-05 12:04 ` paurea @ 2003-03-05 19:25 ` Fco.J.Ballesteros 2003-03-06 3:51 ` Sam 1 sibling, 1 reply; 6+ messages in thread From: Fco.J.Ballesteros @ 2003-03-05 19:25 UTC (permalink / raw) To: 9fans [-- Attachment #1: Type: text/plain, Size: 307 bytes --] I've just done a diff wrt sources. The files in acme that are different wrt /n/sources/plan9/sys/src/cmd/acme can be found at /n/sources/nemo/sys/src/cmd/acme. A pull from the replica found there should retrieve those files. hth PS: I'd suggest you either pull or copy the plan9 acme files first. [-- Attachment #2: Type: message/rfc822, Size: 3329 bytes --] [-- Attachment #2.1.1: Type: text/plain, Size: 389 bytes --] I have some other (newer?) version of acme.c, so I guessed the lines to correct/add. However, after 3-1 on a dir, acme died with the following: acme: text.load couldn't find destination for message acme 1233: suicide: sys: trap: fault read addr =.... I would be grateful for a whole acme tarball. The idea sounds great -- I don't feel I need 3-1 just for no-op thanks, ++pac [-- Attachment #2.1.2: Type: text/html, Size: 900 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Re: hack for acme 2003-03-05 19:25 ` Fco.J.Ballesteros @ 2003-03-06 3:51 ` Sam 2003-03-06 10:08 ` paurea 0 siblings, 1 reply; 6+ messages in thread From: Sam @ 2003-03-06 3:51 UTC (permalink / raw) To: 9fans I've just tried this and I must say it's rather addictive. I instantly want my state maintained for the ability to go back up a directory :-/, though. Maybe with a mouse gesture. Speaking of tangent thoughts, has anyone given serious mindshare to how to integrate mouse gestures into rio? I have to note for humour's sake that the name for this on my system is hacme which cracks me up every time I type it. Cheers, Sam ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Re: hack for acme 2003-03-06 3:51 ` Sam @ 2003-03-06 10:08 ` paurea 2003-03-06 10:22 ` paurea 0 siblings, 1 reply; 6+ messages in thread From: paurea @ 2003-03-06 10:08 UTC (permalink / raw) To: 9fans > Speaking of tangent thoughts, has > anyone given serious mindshare to how > to integrate mouse gestures into rio? I thought about it sometime ago, but haven't done anything about it yet. My first choice would be to use the graffiti keyboard somehow to read the mouse position when a button is pressed (my choice would be button 1 and a function key) and feed chars to a program which feeds orders for rio. If I have some time in the future I may do it. Gorka ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Re: hack for acme 2003-03-06 10:08 ` paurea @ 2003-03-06 10:22 ` paurea 0 siblings, 0 replies; 6+ messages in thread From: paurea @ 2003-03-06 10:22 UTC (permalink / raw) To: 9fans > yet. My first choice would be to use the graffiti keyboard somehow to I mean scribble(2). Gorka ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-03-06 10:22 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-03-05 7:00 [9fans] Re: hack for acme peter a. cejchan 2003-03-05 12:04 ` paurea 2003-03-05 19:25 ` Fco.J.Ballesteros 2003-03-06 3:51 ` Sam 2003-03-06 10:08 ` paurea 2003-03-06 10:22 ` paurea
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).