emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Binding org-insert-todo-heading to M-S-RET
Date: Sat, 12 Jan 2019 11:55:03 +0100	[thread overview]
Message-ID: <878szqywl4.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <877efbgi4i.fsf@gmail.com> ("Kévin Le Gouguec"'s message of "Fri, 11 Jan 2019 19:32:29 +0100")

Hello,

Kévin Le Gouguec <kevin.legouguec@gmail.com> writes:

> Here is a very minor gripe I have with org-mode: is there a reason why
> org-insert-todo-heading should be bound to (kbd "M-S-<return>"), rather
> than (kbd "M-S-RET")?
>
> AFAIU, using "<return>" limits the key binding to the actual "⏎"
> function key, while using "RET" makes any key chord that sends the
> "carriage return" character ("⏎" and "C-m") work transparently.
>
> I admit that Alt-Shift-Control-M sounds unwieldy, but my muscle memory
> has become so accustomed to using "C-m" instead of "<return>" that I
> would welcome a change allowing this alternative.
>
> (
>     From my understanding of (emacs)Keymaps and (emacs)Named ASCII
>     Chars, using "RET" also has the advantage that bindings can work in
>     terminals; IIUC terminals translate presses to "⏎" into the "RET"
>     control character, so Emacs never knows that "<return>" was pressed.
>
>     However in this particular case I don't believe that the argument
>     applies, since AFAIK terminals cannot transmit "S-RET" to Emacs.
>     "M-RET" works though, precisely because it uses "RET" and not
>     "<return>".
> )
>
> Thank you for your time.

Fair enough. I changed a few <return> to RET in master.

Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2019-01-12 11:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-11 18:32 Binding org-insert-todo-heading to M-S-RET Kévin Le Gouguec
2019-01-12 10:55 ` Nicolas Goaziou [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878szqywl4.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=kevin.legouguec@gmail.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).