help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M-RET ok, C-RET wrong?


From: Kepa
Subject: Re: M-RET ok, C-RET wrong?
Date: Sat, 24 Aug 2024 12:06:23 +0200

From:     Eli Zaretskii
Subject:     Re: M-RET ok, C-RET wrong?
Date:     Sat, 24 Aug 2024 12:30:13 +0300

> From: Arash Esbati <arash@gnu.org>
> Cc: help-gnu-emacs@gnu.org
> Date: Sat, 24 Aug 2024 09:56:57 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Arash Esbati <arash@gnu.org>
> >> Date: Sat, 24 Aug 2024 09:16:04 +0200
> >>
> >> Eli Zaretskii <eliz@gnu.org> writes:
> >>
> >> > I think that's because RET is actually C-m, and you cannot have two
> >> > Ctrl modifiers on the same key.
> >>
> >> (key-valid-p "C-RET") => t
> >
> > Ha!
> >
> >> @Kepa: What do you get with:
> >>
> >> (keymap-set dired-mode-map "C-RET" 'dired-w32explore)
> >
> > I'm not Kepa, but I get the same result.  Although I actually tried
> >
> >    (keymap-set global-map "C-RET" 'dired)
>
> I can confirm this with your recipe as well.  So this is a deficiency in
> `key-valid-p'?

I guess so.  Patches welcome to fix that.

A couple of additional details, in case they are helpful:

1. Keyboards usually have two RET keys: one near the letters and one on the numpad. I receive two different messages when using each of them:

    C-<return> is undefined (letters)
    C-<enter> is undefined (numpad)

2. C-RET works in org-mode, where the following keybinding exists (I believe by default):
    Key Bindings: org-mode-map C-<return>

Best regards!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]