* right click menu for cut, copy, paste
@ 2013-11-10 19:02 Samuel Wales
2013-11-10 19:13 ` Eli Zaretskii
0 siblings, 1 reply; 13+ messages in thread
From: Samuel Wales @ 2013-11-10 19:02 UTC (permalink / raw
To: help-gnu-emacs
I never use the mouse the way the editor wants me to. I use
org-mouse a lot, but not the normal stuff.
Instead, I want a global right-click menu that has these
menu items:
- cut
- copy
- paste
- delete
- save some buffers
- save-buffers-kill-terminal
- normal menu (I have menubar turned off)
- normal right click action
Thanks.
Samuel
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-10 19:02 right click menu for cut, copy, paste Samuel Wales
@ 2013-11-10 19:13 ` Eli Zaretskii
2013-11-10 19:38 ` Samuel Wales
0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2013-11-10 19:13 UTC (permalink / raw
To: help-gnu-emacs
> Date: Sun, 10 Nov 2013 12:02:07 -0700
> From: Samuel Wales <samologist@gmail.com>
>
> Instead, I want a global right-click menu that has these
> menu items:
>
> - cut
> - copy
> - paste
> - delete
> - save some buffers
> - save-buffers-kill-terminal
> - normal menu (I have menubar turned off)
> - normal right click action
If you turn off menu-bar-mode, then C-mouse-3 (i.e. hold Ctrl and
click the right button) anywhere in the text area will pop up a menu
that has all the top-level menu-bar items; from there you can get to
all of those you mention above, and then some.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-10 19:13 ` Eli Zaretskii
@ 2013-11-10 19:38 ` Samuel Wales
2013-11-10 19:59 ` Eli Zaretskii
0 siblings, 1 reply; 13+ messages in thread
From: Samuel Wales @ 2013-11-10 19:38 UTC (permalink / raw
To: Eli Zaretskii; +Cc: help-gnu-emacs
I need it to work without the keyboard. I did C-h c C-mouse3, but it
doesn't tell me where it is bound so that I can rebind it.
Thanks.
On 11/10/13, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Sun, 10 Nov 2013 12:02:07 -0700
>> From: Samuel Wales <samologist@gmail.com>
>>
>> Instead, I want a global right-click menu that has these
>> menu items:
>>
>> - cut
>> - copy
>> - paste
>> - delete
>> - save some buffers
>> - save-buffers-kill-terminal
>> - normal menu (I have menubar turned off)
>> - normal right click action
>
> If you turn off menu-bar-mode, then C-mouse-3 (i.e. hold Ctrl and
> click the right button) anywhere in the text area will pop up a menu
> that has all the top-level menu-bar items; from there you can get to
> all of those you mention above, and then some.
>
>
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-10 19:38 ` Samuel Wales
@ 2013-11-10 19:59 ` Eli Zaretskii
2013-11-10 20:43 ` G. Martin Butz
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Eli Zaretskii @ 2013-11-10 19:59 UTC (permalink / raw
To: help-gnu-emacs
> Date: Sun, 10 Nov 2013 12:38:57 -0700
> From: Samuel Wales <samologist@gmail.com>
> Cc: help-gnu-emacs@gnu.org
>
> I need it to work without the keyboard. I did C-h c C-mouse3, but it
> doesn't tell me where it is bound so that I can rebind it.
It's a nameless function whose definition is in mouse.el (search for
C-down-mouse-3). You can copy the definition and bind it to anything
you want.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-10 19:59 ` Eli Zaretskii
@ 2013-11-10 20:43 ` G. Martin Butz
2013-11-10 20:53 ` Eli Zaretskii
2013-11-10 21:35 ` Drew Adams
2013-11-12 4:46 ` Samuel Wales
2 siblings, 1 reply; 13+ messages in thread
From: G. Martin Butz @ 2013-11-10 20:43 UTC (permalink / raw
To: Eli Zaretskii; +Cc: help-gnu-emacs
Hi Eli,
Are you looking for this?
-- quote --
Instead of using the mouse, you can also invoke the first menu bar item
by pressing <F10> (to run the command menu-bar-open). You can then
navigate the menus with the arrow keys. To activate a selected menu
item, press <RET>; to cancel menu navigation, press <ESC>.
-- /quote --
http://www.gnu.org/software/emacs/manual/html_node/emacs/Menu-Bar.html
Regards
Martin
Am 10.11.2013 20:59, schrieb Eli Zaretskii:
>> Date: Sun, 10 Nov 2013 12:38:57 -0700
>> From: Samuel Wales <samologist@gmail.com>
>> Cc: help-gnu-emacs@gnu.org
>>
>> I need it to work without the keyboard. I did C-h c C-mouse3, but it
>> doesn't tell me where it is bound so that I can rebind it.
>
> It's a nameless function whose definition is in mouse.el (search for
> C-down-mouse-3). You can copy the definition and bind it to anything
> you want.
>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| G. Martin Butz, mb@mkblog.org, 0421 98749324, www.mkblog.org |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-10 20:43 ` G. Martin Butz
@ 2013-11-10 20:53 ` Eli Zaretskii
2013-11-10 22:54 ` G. Martin Butz
0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2013-11-10 20:53 UTC (permalink / raw
To: help-gnu-emacs
> Date: Sun, 10 Nov 2013 21:43:14 +0100
> From: "G. Martin Butz" <mb@mkblog.org>
> CC: help-gnu-emacs@gnu.org
>
> Hi Eli,
>
> Are you looking for this?
>
> -- quote --
> Instead of using the mouse, you can also invoke the first menu bar item
> by pressing <F10> (to run the command menu-bar-open). You can then
> navigate the menus with the arrow keys. To activate a selected menu
> item, press <RET>; to cancel menu navigation, press <ESC>.
> -- /quote --
>
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Menu-Bar.html
I'm not looking for anything; Samuel does.
F10 doesn't work with all toolkits, and Samuel asked for a right-click
menu.
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: right click menu for cut, copy, paste
2013-11-10 19:59 ` Eli Zaretskii
2013-11-10 20:43 ` G. Martin Butz
@ 2013-11-10 21:35 ` Drew Adams
2013-11-12 4:47 ` Samuel Wales
2013-11-12 4:46 ` Samuel Wales
2 siblings, 1 reply; 13+ messages in thread
From: Drew Adams @ 2013-11-10 21:35 UTC (permalink / raw
To: Eli Zaretskii, help-gnu-emacs
> > I need it to work without the keyboard. I did C-h c C-mouse3, but
> > it doesn't tell me where it is bound so that I can rebind it.
>
> It's a nameless function whose definition is in mouse.el (search for
> C-down-mouse-3). You can copy the definition and bind it to
> anything you want.
And something even better is here:
http://www.emacswiki.org/emacs/Mouse3
http://www.emacswiki.org/emacs/mouse3.el
And yes, it works without the keyboard, out of the box.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-10 20:53 ` Eli Zaretskii
@ 2013-11-10 22:54 ` G. Martin Butz
2013-11-12 4:46 ` Samuel Wales
0 siblings, 1 reply; 13+ messages in thread
From: G. Martin Butz @ 2013-11-10 22:54 UTC (permalink / raw
To: help-gnu-emacs
Am 10.11.2013 21:53, schrieb Eli Zaretskii:
>> Date: Sun, 10 Nov 2013 21:43:14 +0100
>> From: "G. Martin Butz" <mb@mkblog.org>
>> CC: help-gnu-emacs@gnu.org
>>
>> Hi Eli,
>>
>> Are you looking for this?
>>
>> -- quote --
>> Instead of using the mouse, you can also invoke the first menu bar item
>> by pressing <F10> (to run the command menu-bar-open). You can then
>> navigate the menus with the arrow keys. To activate a selected menu
>> item, press <RET>; to cancel menu navigation, press <ESC>.
>> -- /quote --
>>
>> http://www.gnu.org/software/emacs/manual/html_node/emacs/Menu-Bar.html
>
> I'm not looking for anything; Samuel does.
>
> F10 doesn't work with all toolkits, and Samuel asked for a right-click
> menu.
Sorry, have not read exactly. And sure, F10 might not work, but
menu-bar-open can be bind to mouse and
(global-set-key (kbd "<mouse-3>") 'menu-bar-open)
works for me.
Martin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| G. Martin Butz, mb@mkblog.org, 0421 98749324, www.mkblog.org |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-10 19:59 ` Eli Zaretskii
2013-11-10 20:43 ` G. Martin Butz
2013-11-10 21:35 ` Drew Adams
@ 2013-11-12 4:46 ` Samuel Wales
2013-11-12 16:06 ` Eli Zaretskii
2 siblings, 1 reply; 13+ messages in thread
From: Samuel Wales @ 2013-11-12 4:46 UTC (permalink / raw
To: Eli Zaretskii; +Cc: help-gnu-emacs
I tried that and it works in some modes, but in Org, it produces
wrong-type-argument listp. I need it global so that I can copy paste
etc. in Org also.
Thank you for looking it up.
Samuel
On 11/10/13, Eli Zaretskii <eliz@gnu.org> wrote:
> It's a nameless function whose definition is in mouse.el (search for
> C-down-mouse-3). You can copy the definition and bind it to anything
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-10 22:54 ` G. Martin Butz
@ 2013-11-12 4:46 ` Samuel Wales
0 siblings, 0 replies; 13+ messages in thread
From: Samuel Wales @ 2013-11-12 4:46 UTC (permalink / raw
To: G. Martin Butz; +Cc: help-gnu-emacs
For me this errors in Org and brings up a keyboard menu in other modes.
On 11/10/13, G. Martin Butz <mb@mkblog.org> wrote:
> (global-set-key (kbd "<mouse-3>") 'menu-bar-open)
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-10 21:35 ` Drew Adams
@ 2013-11-12 4:47 ` Samuel Wales
2013-11-12 5:53 ` Drew Adams
0 siblings, 1 reply; 13+ messages in thread
From: Samuel Wales @ 2013-11-12 4:47 UTC (permalink / raw
To: Drew Adams; +Cc: help-gnu-emacs
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.
On 11/10/13, Drew Adams <drew.adams@oracle.com> wrote:
> And something even better is here:
>
> http://www.emacswiki.org/emacs/Mouse3
>
> http://www.emacswiki.org/emacs/mouse3.el
>
> And yes, it works without the keyboard, out of the box.
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: right click menu for cut, copy, paste
2013-11-12 4:47 ` Samuel Wales
@ 2013-11-12 5:53 ` Drew Adams
0 siblings, 0 replies; 13+ messages in thread
From: Drew Adams @ 2013-11-12 5:53 UTC (permalink / raw
To: Samuel Wales; +Cc: help-gnu-emacs
> > 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: right click menu for cut, copy, paste
2013-11-12 4:46 ` Samuel Wales
@ 2013-11-12 16:06 ` Eli Zaretskii
0 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2013-11-12 16:06 UTC (permalink / raw
To: help-gnu-emacs
> Date: Mon, 11 Nov 2013 21:46:35 -0700
> From: Samuel Wales <samologist@gmail.com>
> Cc: help-gnu-emacs@gnu.org
>
> I tried that and it works in some modes, but in Org, it produces
> wrong-type-argument listp.
Not on my system. Perhaps you are using some old version of Emacs,
where there was a bug in this function.
If not, please consider reporting a bug with the details, including a
recipe starting from "emacs -Q".
Thanks.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2013-11-12 16:06 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-10 19:02 right click menu for cut, copy, paste Samuel Wales
2013-11-10 19:13 ` Eli Zaretskii
2013-11-10 19:38 ` Samuel Wales
2013-11-10 19:59 ` Eli Zaretskii
2013-11-10 20:43 ` G. Martin Butz
2013-11-10 20:53 ` Eli Zaretskii
2013-11-10 22:54 ` G. Martin Butz
2013-11-12 4:46 ` Samuel Wales
2013-11-10 21:35 ` Drew Adams
2013-11-12 4:47 ` Samuel Wales
2013-11-12 5:53 ` Drew Adams
2013-11-12 4:46 ` Samuel Wales
2013-11-12 16:06 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.