unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame?
@ 2020-12-30  8:37 novim via Users list for the GNU Emacs text editor
  2020-12-30 11:12 ` Omar Polo
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: novim via Users list for the GNU Emacs text editor @ 2020-12-30  8:37 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

AFAIK, it is needed only in terminals, but it has not purpose on GUI. I don't think there are many people who, for example, press C-m instead of RET.

Wouldn't it make more sense to define these in input-decode-map only if emacs runs in a terminal and on GUI letting the user freely rebind them?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame?
  2020-12-30  8:37 What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame? novim via Users list for the GNU Emacs text editor
@ 2020-12-30 11:12 ` Omar Polo
  2020-12-30 12:23   ` novim
  2020-12-30 17:19   ` Eric S Fraga
  2020-12-30 12:25 ` Kévin Le Gouguec
  2020-12-31  0:37 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2 siblings, 2 replies; 7+ messages in thread
From: Omar Polo @ 2020-12-30 11:12 UTC (permalink / raw)
  To: novim, novim; +Cc: help-gnu-emacs


novim via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes:

> AFAIK, it is needed only in terminals, but it has not purpose on GUI. I don't think there are many people who, for example, press C-m instead of RET.
>
> Wouldn't it make more sense to define these in input-decode-map only if emacs runs in a terminal and on GUI letting the user freely rebind them?

I don't think I ever used C-m, but I do sometime use C-i instead of
TAB.  Many window manager and desktop environment binds alt-tab, the same
default binding for completion-at-point.  I suppose there are people who
use M-C-i instead of "alt-tab" at least for that.

(Also, even if you have tab-always-indent set to 'complete, you may
still need M-C-i for instance in yasnippet, given how it hijacks TAB)

my two cents

P.S.: it would be cool to have a setting to explicitly say "I don't care
about tty-compatible keybindings".  But, OTOH, I've just discovered
input-decode-map thanks to this thread so I may play with it.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame?
  2020-12-30 11:12 ` Omar Polo
@ 2020-12-30 12:23   ` novim
  2020-12-30 17:19   ` Eric S Fraga
  1 sibling, 0 replies; 7+ messages in thread
From: novim @ 2020-12-30 12:23 UTC (permalink / raw)
  To: Omar Polo; +Cc: help-gnu-emacs@gnu.org





On Wednesday, December 30, 2020 12:12 PM, Omar Polo <op@omarpolo.com> wrote:

>
> (Also, even if you have tab-always-indent set to 'complete, you may
> still need M-C-i for instance in yasnippet, given how it hijacks TAB)

On GUI you can bind M-C-i. I don't think input-decode-map is needed for that.

> P.S.: it would be cool to have a setting to explicitly say "I don't care
> about tty-compatible keybindings".

And option like this could be nice, so GUI only users can set it.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame?
  2020-12-30  8:37 What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame? novim via Users list for the GNU Emacs text editor
  2020-12-30 11:12 ` Omar Polo
@ 2020-12-30 12:25 ` Kévin Le Gouguec
  2020-12-31  0:37 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2 siblings, 0 replies; 7+ messages in thread
From: Kévin Le Gouguec @ 2020-12-30 12:25 UTC (permalink / raw)
  To: novim via Users list for the GNU Emacs text editor; +Cc: novim

novim via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> AFAIK, it is needed only in terminals, but it has not purpose on
> GUI.

IIUC (but I might be wrong) it's not so much that it's "needed"; it's
that Emacs just cannot distinguish between them, since (some?) terminals
translate function keys (e.g. <return>, <tab>) into characters (\r, \t
respectively).

>      I don't think there are many people who, for example, press C-m
> instead of RET.

I do, FWIW.  On AZERTY, 'm' lies comfortably under the right pinky, so
C-m is essentially a no-op for my right hand.

With <capslock> rebound to <control>, <return> (two keys away from 'm')
requires more wrist movement than <control> (0 key away from 'q'):

[CAPS][q][s][d][_f_][g][h][_j_][k][l][m][ù][*][RETURN]

I know I'm probably the odd one out though.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame?
  2020-12-30 11:12 ` Omar Polo
  2020-12-30 12:23   ` novim
@ 2020-12-30 17:19   ` Eric S Fraga
  2020-12-30 18:10     ` Omar Polo
  1 sibling, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2020-12-30 17:19 UTC (permalink / raw)
  To: help-gnu-emacs

On Wednesday, 30 Dec 2020 at 12:12, Omar Polo wrote:
> I don't think I ever used C-m

I use C-m often when part of a sequence of keys, e.g. "C-c C-m f" when
attaching a file in message mode.  It's easier than letting go of the
ctrl key and hitting return.

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.4.4 on Debian bullseye/sid




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame?
  2020-12-30 17:19   ` Eric S Fraga
@ 2020-12-30 18:10     ` Omar Polo
  0 siblings, 0 replies; 7+ messages in thread
From: Omar Polo @ 2020-12-30 18:10 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: help-gnu-emacs


Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On Wednesday, 30 Dec 2020 at 12:12, Omar Polo wrote:
>> I don't think I ever used C-m
>
> I use C-m often when part of a sequence of keys, e.g. "C-c C-m f" when
> attaching a file in message mode.  It's easier than letting go of the
> ctrl key and hitting return.

oh, now that I think about it, I also do that!  C-c <ret> f is awkward.
It's one of those key sequence impressed in my muscle memory.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame?
  2020-12-30  8:37 What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame? novim via Users list for the GNU Emacs text editor
  2020-12-30 11:12 ` Omar Polo
  2020-12-30 12:25 ` Kévin Le Gouguec
@ 2020-12-31  0:37 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2 siblings, 0 replies; 7+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-31  0:37 UTC (permalink / raw)
  To: help-gnu-emacs

novim via Users list for the GNU Emacs text editor wrote:

> AFAIK, it is needed only in terminals, but it has not
> purpose on GUI. I don't think there are many people who, for
> example, press C-m instead of RET.

https://dataswamp.org/~incal/emacs-init/console-keys.el
https://dataswamp.org/~incal/tty-emacs-keys.txt

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-12-31  0:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-30  8:37 What is the point of binding C-m to RET, C-i to TAB etc on a GUI frame? novim via Users list for the GNU Emacs text editor
2020-12-30 11:12 ` Omar Polo
2020-12-30 12:23   ` novim
2020-12-30 17:19   ` Eric S Fraga
2020-12-30 18:10     ` Omar Polo
2020-12-30 12:25 ` Kévin Le Gouguec
2020-12-31  0:37 ` Emanuel Berg via Users list for the GNU Emacs text editor

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).