From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel 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 Organization: disorganization Message-ID: Reply-To: sds@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1508518830 6726 195.159.176.226 (20 Oct 2017 17:00:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2017 17:00:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 20 19:00:25 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5aeb-00088A-VG for ged-emacs-devel@m.gmane.org; Fri, 20 Oct 2017 19:00:14 +0200 Original-Received: from localhost ([::1]:54896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5aeh-0006mK-Rj for ged-emacs-devel@m.gmane.org; Fri, 20 Oct 2017 13:00:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5aeA-0006m4-6G for emacs-devel@gnu.org; Fri, 20 Oct 2017 12:59:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5ae6-0002DV-Nt for emacs-devel@gnu.org; Fri, 20 Oct 2017 12:59:46 -0400 Original-Received: from [195.159.176.226] (port=46379 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5ae6-0002Cv-Gf for emacs-devel@gnu.org; Fri, 20 Oct 2017 12:59:42 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1e5ado-0002mk-43 for emacs-devel@gnu.org; Fri, 20 Oct 2017 18:59:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@blaine.gmane.org X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Cancel-Lock: sha1:P0GLc020k0d/NFBAzbi2Smip9+I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219653 Archived-At: 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 "") (kbd "")) 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.