From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Do we need to bind to both RET and <return> variants?
Date: Wed, 23 Jan 2019 17:33:39 -0500 [thread overview]
Message-ID: <jwv1s532egt.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: CAFyQvY2f219++9v67nD8qq6Ss6=rW804+Ed_QwoOvUenOhQLiw@mail.gmail.com
> For the return key (for Emacs GUI) and the C-m variant RET (in nowindow
> mode, terminal) to both work, should we be binding to both RET and <return>
> variants?
No, if you don't care about the difference, then bind only RET (which
will also apply to `return` because `return` is remapped to RET if
there's no binding specifically for it).
Same with TAB vs `tab`.
It's important to follow this convention, otherwise you mess up every
other package which does follow the convention (since your `return`
binding will then take precedence even if it's in a low-precedence map).
Stefan
next prev parent reply other threads:[~2019-01-23 22:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-23 21:09 Do we need to bind to both RET and <return> variants? Kaushal Modi
2019-01-23 22:33 ` Stefan Monnier [this message]
2019-01-23 23:11 ` Kaushal Modi
2019-01-24 1:51 ` Stefan Monnier
2019-01-24 3:15 ` Kaushal Modi
2019-01-24 4:27 ` Stefan Monnier
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=jwv1s532egt.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/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.