From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: right click menu for cut, copy, paste Date: Mon, 11 Nov 2013 21:53:49 -0800 (PST) Message-ID: <2c786717-4f4e-41a1-b368-f0365b69a8ff@default> References: <83vc002hpu.fsf@gnu.org> <83r4ao2fkq.fsf@gnu.org> <2c42ebb8-5c1a-4774-a9b2-bbb81de2cb6a@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1384235669 9022 80.91.229.3 (12 Nov 2013 05:54:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Nov 2013 05:54:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Samuel Wales Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 12 06:54:33 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vg6vl-00076P-OM for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Nov 2013 06:54:29 +0100 Original-Received: from localhost ([::1]:40971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg6vk-0001Aw-SJ for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Nov 2013 00:54:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg6vT-00019z-MO for help-gnu-emacs@gnu.org; Tue, 12 Nov 2013 00:54:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vg6vM-0005Bx-6O for help-gnu-emacs@gnu.org; Tue, 12 Nov 2013 00:54:11 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:43489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vg6vC-0005Ba-Uj; Tue, 12 Nov 2013 00:53:55 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rAC5rpaU022451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 Nov 2013 05:53:52 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rAC5rpqN013964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Nov 2013 05:53:51 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rAC5rpUr015845; Tue, 12 Nov 2013 05:53:51 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94464 Archived-At: > > http://www.emacswiki.org/emacs/mouse3.el > > And yes, it works without the keyboard, out of the box. > > I recall trying this. I think it doesn't do what I specified in my > first post? I want a single right click to activate a menu with > those items on it. If it's customizable to do that, I was not able > to do so. No, you are right that it does not have the same menu items. I read your request too quickly, sorry. For that menu you will need to roll your own, but it is pretty simple to do. There are plenty of examples of mouse-3 menus that you can use for guidance. Here are a few from my code: `diredp-mouse-3-menu' in `dired+.el', `bmkp-bmenu-mouse-3-menu' in `bookmark+-bmu.el', `Buffer-menu-mouse-3-menu' in `buff-menu+.el', `icicle-Completions-mouse-3-menu' in `icicles-mcmd.el', `palette-popup-menu' in `palette.el'. Those are just from my code. There are lots more out there. Maybe have a look at `bmkp-bmenu-mouse-3-menu' or `palette-popup-map' - each is pretty straightforward. http://www.emacswiki.org/emacs-en/download/bookmark%2b-bmu.el http://www.emacswiki.org/emacs-en/download/palette.el