9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] a small Acme annoyance
  2012-12-12 12:53 [9fans] a small Acme annoyance dexen deVries
@ 2012-12-11 23:00 ` lucio
  2012-12-12 14:01   ` yy
  0 siblings, 1 reply; 4+ messages in thread
From: lucio @ 2012-12-11 23:00 UTC (permalink / raw)
  To: 9fans

> a mis-click which touches only the vertical pipe in window tag and no other
> text causes selection to be removed. seems Acme executes a null command and
> replaces selection with the null result. any reason for the behavior?

Sounds unavoidable. That's where Undo helps a lot, I suppose.

What would you prefer?

++L




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

* [9fans] a small Acme annoyance
@ 2012-12-12 12:53 dexen deVries
  2012-12-11 23:00 ` lucio
  0 siblings, 1 reply; 4+ messages in thread
From: dexen deVries @ 2012-12-12 12:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

a mis-click which touches only the vertical pipe in window tag and no other 
text causes selection to be removed. seems Acme executes a null command and 
replaces selection with the null result. any reason for the behavior?

using p9p tip.


cheers,
-- 
dexen deVries

[[[↓][→]]]


Reality is just a convenient measure of complexity.
                -- Alvy Ray Smith



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

* Re: [9fans] a small Acme annoyance
  2012-12-11 23:00 ` lucio
@ 2012-12-12 14:01   ` yy
  2012-12-12 18:13     ` dexen deVries
  0 siblings, 1 reply; 4+ messages in thread
From: yy @ 2012-12-12 14:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

On 12 December 2012 00:00, <lucio@proxima.alt.za> wrote:

> Sounds unavoidable.


If it really annoys you, avoiding it is actually quite easy.

Some time ago I wrote a small patch [1] to interpret the pipe symbol as
Edit when it is all the selected text (ie. when it is not followed by a
command). This is quite convenient to use the 1-2 chord with Edit commands.
You could either apply this patch or a modified version.

[1] http://9fans.net/archive/2009/08/571


--
- yiyus || JGL .

[-- Attachment #2: Type: text/html, Size: 1098 bytes --]

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

* Re: [9fans] a small Acme annoyance
  2012-12-12 14:01   ` yy
@ 2012-12-12 18:13     ` dexen deVries
  0 siblings, 0 replies; 4+ messages in thread
From: dexen deVries @ 2012-12-12 18:13 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wednesday 12 of December 2012 15:01:56 yy wrote:
> [1] http://9fans.net/archive/2009/08/571

neat, thanks. a small tweak to make current GCC happy:


diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c
index ae6668c..36ad25a 100644
--- a/src/cmd/acme/exec.c
+++ b/src/cmd/acme/exec.c
@@ -95,0 +96 @@ static Rune LZerox[] = { 'Z', 'e', 'r', 'o', 'x', 0 };
+static Rune LPipe[] = { '|', 0 };
@@ -126,0 +128 @@ Exectab exectab[] = {
+       { LPipe,                edit,           FALSE,  XXX,            XXX             
},
@@ -183 +185,3 @@ execute(Text *t, uint aq0, uint aq1, int external, Text 
*argt)
-       e = lookup(r, q1-q0);
+       e = nil;
+       if(runestrncmp(r, LPipe, 1) != 0 || q1-q0 == 1)
+               e = lookup(r, q1-q0);



-- 
dexen deVries

[[[↓][→]]]


Reality is just a convenient measure of complexity.
                -- Alvy Ray Smith



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

end of thread, other threads:[~2012-12-12 18:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-12 12:53 [9fans] a small Acme annoyance dexen deVries
2012-12-11 23:00 ` lucio
2012-12-12 14:01   ` yy
2012-12-12 18:13     ` dexen deVries

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