From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hw Newsgroups: gmane.emacs.help Subject: Re: query: remapping a mouse press Date: Mon, 27 Aug 2018 17:35:03 +0200 Organization: my virtual residence Message-ID: <87bm9ng6vs.fsf@himinbjorg.adminart.net> References: <87lg8wg5qi.fsf@nyu.edu> <875zzx2e49.fsf@himinbjorg.adminart.net> <8736v0vntf.fsf@nyu.edu> <87lg8szu3c.fsf@himinbjorg.adminart.net> <87va7wu684.fsf@nyu.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535384235 3390 195.159.176.226 (27 Aug 2018 15:37:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2018 15:37:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 27 17:37:11 2018 Return-path: Envelope-to: geh-help-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 1fuJZl-0000i5-QP for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2018 17:37:09 +0200 Original-Received: from localhost ([::1]:33977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuJbr-0003Fj-J9 for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2018 11:39:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuJaK-0002jx-5g for help-gnu-emacs@gnu.org; Mon, 27 Aug 2018 11:37:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuJaJ-0006F7-5v for help-gnu-emacs@gnu.org; Mon, 27 Aug 2018 11:37:44 -0400 Original-Received: from mo6-p01-ob.smtp.rzone.de ([2a01:238:20a:202:5301::5]:34114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fuJaI-0006Ef-LM for help-gnu-emacs@gnu.org; Mon, 27 Aug 2018 11:37:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1535384261; s=strato-dkim-0002; d=adminart.net; h=Sender:References:Message-ID:Date:In-Reply-To:Subject:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=eeDliK8G8G4eK2EKO/F2yU2n/EJDpZVUYXzYvY5JhH8=; b=pNin1WzVH+JNnhg0cQgaRH6SC/0SJcx0QqmDdFZiglONLGSwUxuxdr3tC9Er92810f OEZ+WZCszJJIvd+qAfsVPBI+v+bikoeYlLA+IUHaXEAk5xGCY0bPE9LLXG3cPTxjNNGe OWgmP0LnD4z9BSLOfjezVnKssbcAEX6xXtX9689AZVoLktlVRN4otM2a43VZgO9XPFEP pwKogWesyYBQJyEeszfHnfckVbmYQU9c4KhP0SdS0kJJdO+AN84wsHB4siWRw6eI7Awx KlaClh8IqAsMIbUC/XQmji/QeipujxEcf6GK2sfzsAG5tCQ2PvSc4W9V9BQj6Ig143tp JPRw== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+AVdIIwXjneEe9k=" X-RZG-CLASS-ID: mo00 Original-Received: from lee by himinbjorg.adminart.net with local (Exim 4.90_1) (envelope-from ) id 1fuJaG-0001d7-7e for help-gnu-emacs@gnu.org; Mon, 27 Aug 2018 17:37:40 +0200 In-Reply-To: <87va7wu684.fsf@nyu.edu> (allan gottlieb's message of "Sun, 26 Aug 2018 18:13:15 -0400") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5301::5 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117773 Archived-At: allan gottlieb writes: > On Sun, Aug 26 2018, hw wrote: > >> allan gottlieb writes: >> >>> On Sun, Aug 26 2018, hw wrote: >>> >>>> allan gottlieb writes: >>>> > [...] >>> I believe that this use of xinput I accomplish with xmodmap. >> >> How did you do that? > [...] > > I used xev to find our which "logic buttons" is generated by each of the > mouse's "physical buttons". Then I used xmodmap to change the logical > buttons (this is easy with xmodmap), but probable that was not necessary. Oh, I mean what did you put into xmodmap to change mouse buttons? I thought it only deals with keys. > [...] >>> How do I tell emacs to do something (say end-of-buffer) when button 13 >>> is pressed? >> >> Does Emacs receive the event? You can test with (describe-key). I >> could probably use something like this: >> >> (global-set-key (kbd "") 'end-of-buffer) > > Bingo! (It worked better with just mouse-1 not down-mouse-1) > >> That might work if Emacs gets . If it doesn't know that >> many buttons and you're not running out of button numbers, perhaps you >> can re-map the buttons with xinput so they have lower button mumbers >> Emacs can understand. > > That remapping is what I use xmodmap for (see above). But it is > necessary emacs is delighted with > > (global-set-key (kbd "") 'beginning-of-buffer) > > Now I have to decide what to do with all the logitech physical buttons! Cool, now you get to make the really difficult decisions ;)