9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] acme: 2-1chord on Edit in a 'win window' tag doesn't work
Date: Wed, 10 Jun 2009 10:26:15 -0700	[thread overview]
Message-ID: <dd6fe68a0906101026l6df7582fib60ded363b24080f@mail.gmail.com> (raw)
In-Reply-To: <a560a5d00906100808l2df8eb03p921564115ef8750f@mail.gmail.com>

> In some acme window I have a command, e.g simply s/f/g/, I select it
> with a mouse and 2-1 chord it on the Edit command in a tag line of a
> window in which there is win running and also some text (for us e.g.
> abcdefgh) is selected. Nothing happens. Only when the s/f/g/ is copied
> in the tag line and the whole (together with the Edit) is 2-selected,
> the command is executed, i.e. abcdefgh -> abcdeggh.
>
> This only happens for a win window, ordinary text window is ok as well
> as a directory window.

This is a design bug in acme.
Acme sends events like this to external programs to handle,
and if the program can't handle it, it sends the event back.
Unfortunately, the "send it back" protocol is more limited
and doesn't include a way to echo back the fact that this
was an argument from a different window.  So after this
game of telephone, acme thinks you just 2-clicked Edit,
not 2-1 clicked.

Russ


  reply	other threads:[~2009-06-10 17:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-10 15:08 Rudolf Sykora
2009-06-10 17:26 ` Russ Cox [this message]
2009-06-11 19:14   ` Rudolf Sykora

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=dd6fe68a0906101026l6df7582fib60ded363b24080f@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /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).