Article View: gnu.emacs.help
Article #188807Problem customizing right mouse button
From: Steve Sandke
Date: Thu, 11 Jul 1991 16:47
Date: Thu, 11 Jul 1991 16:47
46 lines
2058 bytes
2058 bytes
Hardware: Sun SparcStation 1+ OS: SunOS 4.0.3/4.1.1 Version: 18.57.6 I was trying to customize the right mouse button to do a certain function, but it wasn't successful. Could you help me with this problem? We have version 18.57.6 of emacs with some modifications put in by someone called "ange" -- I looked at the modified lisp/x-mouse.el to get this name. These modifications allow us to select and highlight text. 1. Now, I want to customize the right mouse button for my Sparc workstation to to x-cut-text, instead of ange-x-paste-text-at-text-cursor. 2. I added these lines to my .emacs.el file (defconst x-button-right (char-to-string 0)) (defconst x-button-middle (char-to-string 1)) (define-key mouse-map x-button-right 'x-cut-text) (define-key mouse-map x-button-middle 'x-paste-text) byte-compile it, and ran emacs. 3. The result was this. The middle mouse button did x-paste-text, but the right mouse button was still doing ange-x-paste-text- at-text-cursor. 4. However, when I executed (define-key mouse-map x-button-right 'x-cut-text) in an emacs buffer, the right button did get customised. It seems as though between execution of the .emacs.elc and the displaying of the *scratch* buffer, the right mouse was somehow set back to ange-x-paste-text-at-text-cursor . Does anyone know what's going on? Please email responses - I don't read this group regularly. -- ------------------- Steve Sandke steve@orchid.tymnet.com
Technical Details
Message-ID:
<545@tymix.Tymnet.COM>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!olivea!tymix!gabriela!steveShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,308cc137286ae213,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-07-11 14:13:40 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!olivea!tymix!gabriela!steve From: steve@gabriela.Tymnet.COM (Steve Sandke) Newsgroups: gnu.emacs.help Subject: Problem customizing right mouse button Message-ID: <545@tymix.Tymnet.COM> Date: 11 Jul 91 16:47:24 GMT Sender: usenet@tymix.Tymnet.COM Organization: BT North America, San Jose, CA Lines: 46 Nntp-Posting-Host: gabriela