unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Another menu question - <cut>, <copy> and <paste>
@ 2005-06-27 20:51 Lennart Borgman
  2005-06-27 22:38 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2005-06-27 20:51 UTC (permalink / raw)


On w32 the keyboard shortcuts for cut, copy and paste are shown as in 
the subject line. I still do not remember how to find them (I happily 
use cua-mode;-).

Does this look the same way on other platforms? It is not very helpful 
to beginners. Could not the actual keyboard shortcuts be used instead?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Another menu question - <cut>, <copy> and <paste>
  2005-06-27 22:38 ` Eli Zaretskii
@ 2005-06-27 22:19   ` Lennart Borgman
  2005-06-28  4:40     ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2005-06-27 22:19 UTC (permalink / raw)
  Cc: emacs-devel

Eli Zaretskii wrote:

>>Could not the actual keyboard shortcuts be used instead?
>>    
>>
>
>You mean, C-w etc.?  They invoke different functions.
>  
>
<cut> etc are not very helpful. Most people have a pc. I just searched 
Info to see if I could find out what <cut> could be for key. I found no 
information.

Those names in the menus are not helpful to me at least. If there are 
some keyboard keys on some computers named like that and Emacs uses 
appropriate key bindings for those, why do they have to appear in the 
menus? Is not those C-w (and what more???) better candidates? Would it 
not be better for those wanting to learn Emacs?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Another menu question - <cut>, <copy> and <paste>
  2005-06-27 20:51 Another menu question - <cut>, <copy> and <paste> Lennart Borgman
@ 2005-06-27 22:38 ` Eli Zaretskii
  2005-06-27 22:19   ` Lennart Borgman
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2005-06-27 22:38 UTC (permalink / raw)
  Cc: emacs-devel

> Date: Mon, 27 Jun 2005 22:51:10 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> 
> On w32 the keyboard shortcuts for cut, copy and paste are shown as in 
> the subject line. I still do not remember how to find them (I happily 
> use cua-mode;-).

Some keyboards actually have keys labeled by those names.

> Does this look the same way on other platforms?

Every graphics display should present the same.  That is the result of
the call to menu-bar-enable-clipboard that is part of x-win.el,
w32-win.el, and mac-win.el.  They rebind Edit->Cut, Copy, and Paste to
special clipboard-* functions; those functions are not by default
bound to C-w, M-w, and C-y that I think you expected to find.

> Could not the actual keyboard shortcuts be used instead?

You mean, C-w etc.?  They invoke different functions.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Another menu question - <cut>, <copy> and <paste>
  2005-06-27 22:19   ` Lennart Borgman
@ 2005-06-28  4:40     ` Eli Zaretskii
  2005-06-29 19:56       ` Mathias Dahl
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2005-06-28  4:40 UTC (permalink / raw)
  Cc: emacs-devel

> Date: Tue, 28 Jun 2005 00:19:27 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> CC: emacs-devel@gnu.org
> 
> Those names in the menus are not helpful to me at least. If there are 
> some keyboard keys on some computers named like that and Emacs uses 
> appropriate key bindings for those, why do they have to appear in the 
> menus?

Because the code that generates the menus works like that.  I think it
takes the last key binding for the function and displays that.
Perhaps if we reverse the order of key bindings, we will get a better
result (F20).

> Is not those C-w (and what more???) better candidates?

But C-w invokes a different function.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Another menu question - <cut>, <copy> and <paste>
  2005-06-28  4:40     ` Eli Zaretskii
@ 2005-06-29 19:56       ` Mathias Dahl
  2005-06-29 21:30         ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Mathias Dahl @ 2005-06-29 19:56 UTC (permalink / raw)


Eli Zaretskii <eliz@gnu.org> writes:

> Because the code that generates the menus works like that.  I think it
> takes the last key binding for the function and displays that.
> Perhaps if we reverse the order of key bindings, we will get a better
> result (F20).
> 
> > Is not those C-w (and what more???) better candidates?
> 
> But C-w invokes a different function.

Hmm... Currently I am running Emacs 21.3 on GNU/Linux and I see C-w,
M-w and C-y for Cut, Copy and Paste in the Edit menu. This is what
Lennart wants I guess. Why is this different on w32 (if it *is*
different)?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Another menu question - <cut>, <copy> and <paste>
  2005-06-29 21:30         ` Eli Zaretskii
@ 2005-06-29 20:47           ` Lennart Borgman
  2005-06-30  4:38             ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2005-06-29 20:47 UTC (permalink / raw)
  Cc: emacs-devel, Mathias Dahl

Eli Zaretskii wrote:

>>From: Mathias Dahl <brakjoller@gmail.com>
>>Date: 29 Jun 2005 21:56:58 +0200
>>
>>Hmm... Currently I am running Emacs 21.3 on GNU/Linux and I see C-w,
>>M-w and C-y for Cut, Copy and Paste in the Edit menu.
>>    
>>
>
>Is that a graphics session or a tty session?  If the latter, the CVS
>code shows C-w etc. as well.
>
>  
>
>>Why is this different on w32 (if it *is* different)?
>>    
>>
>
>I cannot run the graphics version of Emacs on GNU/Linux where I'm
>writing this, but if you read my previous message, you will find the
>explanation of how x-win.el and other *-win.el files call a function
>that binds <cut> etc. keys to the functions run by Edit menu items.
>So this behavior ought to happen on all graphics displays for the CVS
>code at least.
>  
>
I just tested starting the non-graphic version on w32:

   emacs.exe -Q -nw

This shows C-w etc in the Edit menu, but the graphic version does not.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Another menu question - <cut>, <copy> and <paste>
  2005-06-29 19:56       ` Mathias Dahl
@ 2005-06-29 21:30         ` Eli Zaretskii
  2005-06-29 20:47           ` Lennart Borgman
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2005-06-29 21:30 UTC (permalink / raw)
  Cc: emacs-devel

> From: Mathias Dahl <brakjoller@gmail.com>
> Date: 29 Jun 2005 21:56:58 +0200
> 
> Hmm... Currently I am running Emacs 21.3 on GNU/Linux and I see C-w,
> M-w and C-y for Cut, Copy and Paste in the Edit menu.

Is that a graphics session or a tty session?  If the latter, the CVS
code shows C-w etc. as well.

> Why is this different on w32 (if it *is* different)?

I cannot run the graphics version of Emacs on GNU/Linux where I'm
writing this, but if you read my previous message, you will find the
explanation of how x-win.el and other *-win.el files call a function
that binds <cut> etc. keys to the functions run by Edit menu items.
So this behavior ought to happen on all graphics displays for the CVS
code at least.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Another menu question - <cut>, <copy> and <paste>
  2005-06-29 20:47           ` Lennart Borgman
@ 2005-06-30  4:38             ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2005-06-30  4:38 UTC (permalink / raw)
  Cc: emacs-devel, brakjoller

> Date: Wed, 29 Jun 2005 22:47:03 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> CC: Mathias Dahl <brakjoller@gmail.com>,  emacs-devel@gnu.org
> 
> I just tested starting the non-graphic version on w32:
> 
>    emacs.exe -Q -nw
> 
> This shows C-w etc in the Edit menu, but the graphic version does not.

Yes, as expected: the -nw session doesn't load w32-win.el, so the call
to menu-bar-enable-clipboard is not done.  I thought I explained that
in one of my messages in this thread.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-06-30  4:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-27 20:51 Another menu question - <cut>, <copy> and <paste> Lennart Borgman
2005-06-27 22:38 ` Eli Zaretskii
2005-06-27 22:19   ` Lennart Borgman
2005-06-28  4:40     ` Eli Zaretskii
2005-06-29 19:56       ` Mathias Dahl
2005-06-29 21:30         ` Eli Zaretskii
2005-06-29 20:47           ` Lennart Borgman
2005-06-30  4:38             ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).