From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs Subject: bug#28955: 27.0.50; mouse event translation loses parameters Date: Mon, 23 Oct 2017 10:44:30 -0400 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 1508769992 29983 195.159.176.226 (23 Oct 2017 14:46:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2017 14:46:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) To: 28955@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 23 16:46:24 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1e6dzY-0004lD-4e for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Oct 2017 16:46:12 +0200 Original-Received: from localhost ([::1]:39108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6dzc-0004Rc-4e for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Oct 2017 10:46:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6dzT-0004RT-Cx for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 10:46:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6dzO-00048p-PV for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 10:46:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6dzO-00048W-LB for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 10:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e6dzO-0003tz-CQ for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 10:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Oct 2017 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28955 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150876991214909 (code B ref -1); Mon, 23 Oct 2017 14:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Oct 2017 14:45:12 +0000 Original-Received: from localhost ([127.0.0.1]:57850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6dyR-0003sG-KX for submit@debbugs.gnu.org; Mon, 23 Oct 2017 10:45:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6dyJ-0003rM-PW for submit@debbugs.gnu.org; Mon, 23 Oct 2017 10:45:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6dyB-0003dK-CW for submit@debbugs.gnu.org; Mon, 23 Oct 2017 10:44:50 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e6dyB-0003dB-91 for submit@debbugs.gnu.org; Mon, 23 Oct 2017 10:44:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6dy4-0004Ic-Sf for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 10:44:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6dy3-0003aP-NT for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 10:44:40 -0400 Original-Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:57261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6dy0-0003WW-1S; Mon, 23 Oct 2017 10:44:36 -0400 Original-Received: by mail-io0-x230.google.com with SMTP id m81so20332414ioi.13; Mon, 23 Oct 2017 07:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:user-agent:return-receipt-to:reply-to:date :message-id:mime-version; bh=0m2Kha6m3cSzqknSqHcN4+2shWlRL3iY06JACQ6KXFU=; b=NXbp8a1HJLXiKAJAG75AdRe8UD/u3Rhmm85qJFXTF3Mh95CGmcCMkMVUKmItHGZsrr 3eEZW7Ha9z1r9J5yzfwE4illnUKRTUksHwVvG6bfxRFEzYL6SY9C7+RqqN1epUdcAeW/ 9ZW6gTQ0L2ZYVuFyUOMvUZzDI+7Qxp9g4apL9EMUDpAvvE1mAGLb7h4AfWdKAU24X6ex +5yLwjIHvn7qdJO48rBMqI7r44ard1ZIisSK38HO9bREdXdqKEWezXrXXzv+qgtuzoCV E0yAdjTxGTcSFekigS6Lg4oAkZ7K855pdtPyxL1JZq4ZTLjcmDBoRTAzMOzioUWWuOQo e+GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:user-agent :return-receipt-to:reply-to:date:message-id:mime-version; bh=0m2Kha6m3cSzqknSqHcN4+2shWlRL3iY06JACQ6KXFU=; b=Rl9NcXZfQAMf4Qrv8ubrUidsCe8hNg/OI4tn/rJJrnk6udA+WeAv4mn9EU20z6kViB fPyN7s+lKUglQfAukKGZlkkFecc+zAySgrVkSNG59YpTjH4ajApcIFxQi8fkS6ABuIn+ c3w+4wLo5qmfnsZ8aJNdlVgcGtP8r+JzUV+YhduBhvpanA/TKKopRCxsJgI77Ncpi15P fXe0gmE9b2lnq+xM+WFASupguicztcnnaUvvWS9+3wEa2HgvT5aHdMJgzC+JY3KxQJ/X wG8M+FYVDaFRAH7XywxOHZd8fjgGYhTjie1cXIv13X7AQ4emmQ8RKA6WnRoNr+WDeQ8s /9MA== X-Gm-Message-State: AMCzsaW/gsuywyVm4SSLtoJYSpMBGPX+DgW0DF5VEBInxhjcQCS+Ijm+ hQ7uMmQ7gJwcv5DAv2IZWqGu9UE= X-Google-Smtp-Source: ABhQp+Qi02ixzBRf+Tm7rmR+RRgdB6qh6BDhPyziDNh3hQEu0Jfahvry33J+lFqpLkenQ5Bkq1jcmg== X-Received: by 10.107.184.138 with SMTP id i132mr18258823iof.155.1508769874515; Mon, 23 Oct 2017 07:44:34 -0700 (PDT) Original-Received: from Clr-Sam.local ([38.101.106.18]) by smtp.gmail.com with ESMTPSA id p136sm2468391itg.14.2017.10.23.07.44.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2017 07:44:32 -0700 (PDT) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138895 Archived-At: In GNU Emacs 27.0.50 (build 3, x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G29)) of 2017-10-16 built on Clr-Sam.local Repository revision: eed3a3d9e95d2c5346a23c9d92ca4e5848330183 Windowing system distributor 'Apple', version 10.3.1504 Configured using: 'configure --with-mailutils --with-ns PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig/ --without-makeinfo' Configured features: JPEG NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: C locale-coding-system: utf-8-unix 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--- Charles writes: 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 (# 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: --8<---------------cut here---------------start------------->8--- /* 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 (); } } --8<---------------cut here---------------end--------------->8--- For further details please see https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00667.html https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00678.html -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504 http://steingoldpsychology.com http://www.childpsy.net http://camera.org http://jij.org http://thereligionofpeace.com http://www.memritv.org Daddy, why doesn't this magnet pick up this floppy disk?