all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* platforms with crippled mice or (error "mouse-yank-primary must be bound to an event with parameters")
@ 2017-10-20 16:59 Sam Steingold
  2017-10-21 14:15 ` Charles A. Roelli
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Steingold @ 2017-10-20 16:59 UTC (permalink / raw)
  To: emacs-devel

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.




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

end of thread, other threads:[~2017-10-21 14:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.