From: Sam Steingold <sds@gnu.org>
To: emacs-devel@gnu.org
Subject: platforms with crippled mice or (error "mouse-yank-primary must be bound to an event with parameters")
Date: Fri, 20 Oct 2017 12:59:11 -0400 [thread overview]
Message-ID: <lz4lqtbvs0.fsf@gnu.org> (raw)
Hi,
Some platforms lack second mouse button (most laptops), and some lack
both 2nd and 3rd (mac).
The almighty internet (https://emacs.stackexchange.com/q/20946/795 &
https://superuser.com/q/364575/98857) suggests
(define-key key-translation-map (kbd "<s-mouse-1>") (kbd "<mouse-2>"))
Alas, when I actually do command-mouse-1, I get an error:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "mouse-yank-primary must be bound to an event with parameters")
call-interactively(mouse-yank-primary nil nil)
command-execute(mouse-yank-primary)
--8<---------------cut here---------------end--------------->8---
1. Is the `key-translation-map' the right map for this (as opposed to,
e.g., `function-key-map')? DIUC that `key-translation-map' is for the
user and `function-key-map' is for the system or packager?
2. Why am I getting the error? Am I doing something wrong? Is this a
(known) bug?
3. Shouldn't the solution for the problem be already in core? IOW, can
we detect the platform deficiency and install the alternative binding,
or maybe even install it unconditionally?
Thanks.
--
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504
http://steingoldpsychology.com http://www.childpsy.net http://honestreporting.com
http://mideasttruth.com http://thereligionofpeace.com http://www.memritv.org
Bus error -- driver executed.
next reply other threads:[~2017-10-20 16:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-20 16:59 Sam Steingold [this message]
2017-10-21 14:15 ` platforms with crippled mice or (error "mouse-yank-primary must be bound to an event with parameters") Charles A. Roelli
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=lz4lqtbvs0.fsf@gnu.org \
--to=sds@gnu.org \
--cc=emacs-devel@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.