From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Patch for emacs/basic.texi
Date: Wed, 16 Sep 2020 09:40:26 -0400 [thread overview]
Message-ID: <jwv7dstu9tv.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1kIPdi-0000nC-69@fencepost.gnu.org> (Richard Stallman's message of "Wed, 16 Sep 2020 01:05:54 -0400")
> + On a graphics terminal, the easiest way to invoke @code{undo} is
> +with @kbd{C-/}; that doesn't need the shift key.
This is true for the US keyboard layout but is not true in general, so
it should be appropriately qualified.
> On a text terminal, +@kbd{C-/} does not exist, but usually you can
> type @kbd{C-_} without +the shift key and it will work anyway.
Similarly, I can imagine some terminals where C-/ works, as well as
keyboards where "_" doesn't require a shift key, or terminals where "C-_
without the shift key" won't send a byte-sequence that ends up bound to
`undo`.
E.g. I just tried `C-h k C--` in a "plain old xterm" here with a US keyboard
and Emacs told me:
C-- (translated from M-[ 2 7 ; 5 ; 4 5 ~) runs the command
negative-argument (found in global-map), which is an interactive
compiled Lisp function in ‘simple.el’.
[...]
OTOH, `C-h k C-/` in this same terminal gave me:
\^_ runs the command undo (found in global-map), which is an
interactive compiled Lisp function in ‘simple.el’.
[...]
Could it be that you misremembered what was the "trick" behind having
both `C-/` and `C-_` keybindings (it's not `C--` but `C-/` that gets
mapped to C-_)?
Stefan
next prev parent reply other threads:[~2020-09-16 13:40 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-16 5:05 Patch for emacs/basic.texi Richard Stallman
2020-09-16 5:14 ` Alfred M. Szmidt
2020-09-16 14:17 ` Eli Zaretskii
2020-09-16 15:11 ` Alfred M. Szmidt
2020-09-16 6:00 ` Thibaut Verron
2020-09-16 6:20 ` Kévin Le Gouguec
2020-09-16 6:53 ` Andreas Schwab
2020-09-16 9:19 ` Antoine Kalmbach
2020-09-16 15:43 ` Kévin Le Gouguec
2020-09-16 16:59 ` Drew Adams
2020-09-16 18:26 ` Repeating commands (was: Patch for emacs/basic.texi) Kévin Le Gouguec
2020-09-16 12:40 ` Patch for emacs/basic.texi Stefan Kangas
2020-09-17 3:53 ` Richard Stallman
2020-09-18 4:04 ` Richard Stallman
2020-09-18 6:09 ` Thibaut Verron
2020-09-18 6:35 ` Mathias Dahl
2020-09-16 13:40 ` Stefan Monnier [this message]
2020-09-17 3:57 ` Richard Stallman
2020-09-18 7:53 ` Eli Zaretskii
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=jwv7dstu9tv.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rms@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.