From: Kepa via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Kepa via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: M-RET ok, C-RET wrong?
Date: Sat, 24 Aug 2024 12:06:23 +0200 [thread overview]
Message-ID: <172449399038.8.10250207197770460646.414391253@slmails.com> (raw)
> 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!
next reply other threads:[~2024-08-24 10:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-24 10:06 Kepa via Users list for the GNU Emacs text editor [this message]
2024-08-24 10:16 ` M-RET ok, C-RET wrong? Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2024-08-24 10:22 Kepa via Users list for the GNU Emacs text editor
2024-08-24 12:43 ` Eli Zaretskii
2024-08-24 4:51 Kepa via Users list for the GNU Emacs text editor
2024-08-24 6:21 ` Eli Zaretskii
2024-08-24 7:16 ` Arash Esbati
2024-08-24 7:33 ` Eli Zaretskii
2024-08-24 7:56 ` Arash Esbati
2024-08-24 9:30 ` Eli Zaretskii
2024-08-23 22:27 Kepa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=172449399038.8.10250207197770460646.414391253@slmails.com \
--to=help-gnu-emacs@gnu.org \
--cc=gnu.cognition199@slmails.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.