From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#38296: Allow Option key to be modifier for non-char key and mouse events Date: Wed, 27 Nov 2019 11:45:46 +0100 Message-ID: <188C6BFE-0314-4EBD-BCFF-8D7E4E35F78A@acm.org> References: <20191121211207.GA96045@breton.holly.idiocy.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9215"; mail-complaints-to="usenet@blaine.gmane.org" Cc: alan@idiocy.org, 38296@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 27 11:46:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZupo-0002Fr-6u for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Nov 2019 11:46:12 +0100 Original-Received: from localhost ([::1]:36840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZupn-0003Q4-1t for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Nov 2019 05:46:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36925) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZupf-0003PD-NH for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 05:46:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZupe-0000A6-IE for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 05:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZupe-00009x-D4 for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 05:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZupe-00054l-Bj for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 05:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Nov 2019 10:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38296 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 38296-submit@debbugs.gnu.org id=B38296.157485155419495 (code B ref 38296); Wed, 27 Nov 2019 10:46:02 +0000 Original-Received: (at 38296) by debbugs.gnu.org; 27 Nov 2019 10:45:54 +0000 Original-Received: from localhost ([127.0.0.1]:53479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZupW-00054N-5v for submit@debbugs.gnu.org; Wed, 27 Nov 2019 05:45:54 -0500 Original-Received: from mail221c50.megamailservers.eu ([91.136.10.231]:46678 helo=mail33c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZupT-00054C-Sm for 38296@debbugs.gnu.org; Wed, 27 Nov 2019 05:45:53 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1574851550; bh=F7JOsH/8ONn7mUrkxRrOXCgzzPpiq4epAXoM/uQ/zcs=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=eBMjz0yxr+TaPwyZtjoda2mENCypJJd+cf2MNoq27FZPf5TM6HEGg624T0ZZGtxeM Y0hmEAzdYeg4QTq4mK1vuOS4o/NiOIpbG4jqhyWRSEDWo5ZsBxskHCJnzr91SZAm6C 32Dw/QYId0XxCpstTwAJKgSZE0crroQdhcfZ2eNM= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-3d4ce655.032-75-73746f71.bbcust.telenor.se [85.230.76.61]) (authenticated bits=0) by mail33c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id xARAjlZb002927; Wed, 27 Nov 2019 10:45:49 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0210.5DDE53DE.0009, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=ccisUULM c=1 sm=1 tr=0 a=2CSmQ8xxRPzqj0RSDwU2Pw==:117 a=2CSmQ8xxRPzqj0RSDwU2Pw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=mDV3o1hIAAAA:8 a=e6dF-QS_kUisb_Gfim8A:9 a=TTmfj8GasnOmnJUR:21 a=E988qKVXeHDMEihe:21 a=CjuIK1q_8ugA:10 a=_FVE-zBwftR9WsbkzFJk:22 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: 209.51.188.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:172518 Archived-At: 27 nov. 2019 kl. 07.40 skrev Richard Stallman : > I'd like to understand what that feature does, but I can't tell from > that text. Does it come with any documentation? If so, coulod you > please show it? This text is part of the documentation of the mac-KEY-modifier variables = in the Mac port: --- The property list form can include the `:button' property for button number mapping, which becomes active when the value of `mac-emulate-three-button-mouse' is nil. The `:button' property can be either a positive integer specifying the destination of the primary button only, or a list (VALUE-FOR-PRIMARY-BUTTON VALUE-FOR-MOUSE-2 VALUE-FOR-MOUSE-3 ...) of positive integers specifying the destinations of multiple buttons in order. Note that the secondary button and the button 3 (usually the wheel button) correspond to mouse-3 and mouse-2 respectively if the value of `mac-wheel-button-is-mouse-2' is non-nil (default), and mouse-2 and mouse-3 respectively otherwise. If a button is mapped to the same number as its source, then it behaves as if the button were not mapped so the `:mouse' property becomes in effect instead. --- > Also, are you proposing we implement this for ALL platforms (that > would be clean and simple, in principle)? Or just SOME platforms? The variables generalised by the patch are specific to the NS port. = Whether something like this would be useful for other platforms isn't = anything I have contemplated, but it is not inconceivable --- it would = make keys like AltGr free to use as modifiers for mouse gestures and = non-character keys. (Like the Option key on Macs, the AltGr key is used = for entering even plain ASCII characters such as $@[]{}|\ on many = keyboards, making those keys essential for almost any task.)