* Binding C-m and RETURN seperately
@ 2010-04-12 20:07 Nathaniel Flath
2010-04-12 20:18 ` Peter Dyballa
0 siblings, 1 reply; 5+ messages in thread
From: Nathaniel Flath @ 2010-04-12 20:07 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 96 bytes --]
Hello,
Is there a way to bind C-m and return to different keybindings?
Thanks,
Nathaniel Flath
[-- Attachment #2: Type: text/html, Size: 112 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Binding C-m and RETURN seperately
2010-04-12 20:07 Binding C-m and RETURN seperately Nathaniel Flath
@ 2010-04-12 20:18 ` Peter Dyballa
2010-04-12 20:34 ` Nathaniel Flath
0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2010-04-12 20:18 UTC (permalink / raw)
To: Nathaniel Flath; +Cc: help-gnu-emacs
Am 12.04.2010 um 22:07 schrieb Nathaniel Flath:
> Is there a way to bind C-m and return to different keybindings?
Yes, of course. The input events just need to be distinguishable for
GNU Emacs.
--
Greetings
Pete
Email is a wonderful thing for people whose role in life is to be on
top of things. But not for me; my role is to be on the bottom of
things. What I do takes long hours of studying and uninterruptible
concentration.
– Donald Knuth
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Binding C-m and RETURN seperately
2010-04-12 20:18 ` Peter Dyballa
@ 2010-04-12 20:34 ` Nathaniel Flath
2010-04-12 20:54 ` Eli Zaretskii
2010-04-12 21:03 ` Drew Adams
0 siblings, 2 replies; 5+ messages in thread
From: Nathaniel Flath @ 2010-04-12 20:34 UTC (permalink / raw)
To: Peter Dyballa; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 875 bytes --]
I don't quite understand what this means - I have
(global-define-key (kbd "C-m") 'execute-extended-command)
but it also binds RETURN. How do I make the input events distinguishable?
I'm not running emacs in a terminal.
Thank,s
Nathaniel Flath
On Mon, Apr 12, 2010 at 1:18 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 12.04.2010 um 22:07 schrieb Nathaniel Flath:
>
>
> Is there a way to bind C-m and return to different keybindings?
>>
>
>
> Yes, of course. The input events just need to be distinguishable for GNU
> Emacs.
>
> --
> Greetings
>
> Pete
>
> Email is a wonderful thing for people whose role in life is to be on top of
> things. But not for me; my role is to be on the bottom of things. What I do
> takes long hours of studying and uninterruptible concentration.
> – Donald Knuth
>
>
[-- Attachment #2: Type: text/html, Size: 1384 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Binding C-m and RETURN seperately
2010-04-12 20:34 ` Nathaniel Flath
@ 2010-04-12 20:54 ` Eli Zaretskii
2010-04-12 21:03 ` Drew Adams
1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2010-04-12 20:54 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Mon, 12 Apr 2010 13:34:59 -0700
> From: Nathaniel Flath <flat0103@gmail.com>
> Cc: help-gnu-emacs@gnu.org
>
> I don't quite understand what this means - I have
> (global-define-key (kbd "C-m") 'execute-extended-command)
> but it also binds RETURN. How do I make the input events distinguishable?
Use [return].
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Binding C-m and RETURN seperately
2010-04-12 20:34 ` Nathaniel Flath
2010-04-12 20:54 ` Eli Zaretskii
@ 2010-04-12 21:03 ` Drew Adams
1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2010-04-12 21:03 UTC (permalink / raw)
To: 'Nathaniel Flath', 'Peter Dyballa'; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]
If your RETURN (aka Enter) key sends a Control-M character, then you're out of
luck: they are the same thing.
If your RETURN key sends something different, that is, if Emacs can distinguish
what it sends from C-m, then you can distinguish in Emacs Lisp. You can bind
[return] instead of C-m.
Same thing with TAB and C-i, etc. You can bind [tab] or C-i or both (to
different things). But if your TAB key always sends C-i, then you cannot
distinguish the two in Emacs Lisp. AFAIK.
I don't quite understand what this means - I have
(global-define-key (kbd "C-m") 'execute-extended-command)
but it also binds RETURN. How do I make the input events distinguishable? I'm
not running emacs in a terminal.
Is there a way to bind C-m and return to different keybindings?
Yes, of course. The input events just need to be distinguishable for GNU Emacs.
[-- Attachment #2: Type: text/html, Size: 2270 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-04-12 21:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-12 20:07 Binding C-m and RETURN seperately Nathaniel Flath
2010-04-12 20:18 ` Peter Dyballa
2010-04-12 20:34 ` Nathaniel Flath
2010-04-12 20:54 ` Eli Zaretskii
2010-04-12 21:03 ` Drew Adams
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).