From: charles@aurox.ch (Charles A. Roelli)
To: sds@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: platforms with crippled mice or (error "mouse-yank-primary must be bound to an event with parameters")
Date: Sat, 21 Oct 2017 16:15:31 +0200 [thread overview]
Message-ID: <m2d15gbn98.fsf@aurox.ch> (raw)
In-Reply-To: <lz4lqtbvs0.fsf@gnu.org> (message from Sam Steingold on Fri, 20 Oct 2017 12:59:11 -0400)
Looks like a bug. When you add the key translation and type
s-mouse-1, the mouse click event ends up losing its location
information.
For example, the following:
(s-mouse-1 (#<window 3 on *scratch*> 227 (116 . 92) 143676325 nil 227 (16 . 5) nil (116 . 12) (7 . 16)))
gets turned into just:
mouse-2
which leads to the error about the missing parameters.
It happens in this part of keyboard.c:
/* Does mock_input indicate that we are re-reading a key sequence? */
if (t < mock_input)
{
key = keybuf[t];
add_command_key (key);
if (current_kboard->immediate_echo)
{
/* Set immediate_echo to false so as to force echo_now to
redisplay (it will set immediate_echo right back to true). */
current_kboard->immediate_echo = false;
echo_now ();
}
}
Note also the comments later on in keyboard.c, which imply that
function key expansion is not yet able to generate or handle mouse
events properly.
> Beyond that, only function key expansion could
> create more than two keys, but that should never
> generate mouse events, so it's okay to zero
> mock_input in that case too.
> FIXME: The above paragraph seems just plain
> wrong, if you consider things like
> xterm-mouse-mode. -stef
prev parent reply other threads:[~2017-10-21 14:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-20 16:59 platforms with crippled mice or (error "mouse-yank-primary must be bound to an event with parameters") Sam Steingold
2017-10-21 14:15 ` Charles A. Roelli [this message]
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=m2d15gbn98.fsf@aurox.ch \
--to=charles@aurox.ch \
--cc=emacs-devel@gnu.org \
--cc=sds@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.