From: Josh <josh@foxtail.org>
To: 12976@debbugs.gnu.org, jrm@ftfl.ca
Cc: 12976-done@debbugs.gnu.org
Subject: bug#12976: 24.2; C-c i is bound to custom function, but in a term buffer it gets bound to ido-insert-file
Date: Sat, 13 Jul 2013 18:14:20 -0700 [thread overview]
Message-ID: <CANdFEAFYd-6Y=9sSuO1aube6X87TDk+tNgrJbbUoHc1H-+yi+g@mail.gmail.com> (raw)
In-Reply-To: <m1mwpspms1.fsf@gmail.com>
On Thu, Jul 11, 2013 at 6:52 PM, Leo Liu <sdl.web@gmail.com> wrote:
> On 2012-11-24 11:43 +0800, Glenn Morris wrote:
>> Now `C-c i' is bound to insert-file. I guess this is because
>> term-escape-char = C-c, and term-raw-escape-map has Control-X-prefix as
>> parent keymap. I don't know what, if anything, to do about this.
>
> I consider this not a bug.
I certainly do. From (info "(elisp) Key Binding Conventions") :
* Don't define `C-c LETTER' as a key in Lisp programs. Sequences
consisting of `C-c' and a letter (either upper or lower case) are
reserved for users; they are the *only* sequences reserved for
users, so do not block them.
Changing all the Emacs major modes to respect this convention was a
lot of work; abandoning this convention would make that work go to
waste, and inconvenience users. Please comply with it.
> This is how term.el works because it has drastically different key
> bindings. Thus it gives the user C-c to invoke those critical commands
> on the C-x prefix, or you will be trapped in term-mode forever.
Several of the commands that term.el binds to C-c <letter> are
anything but critical, e.g. set-fill-column (C-c f) and
count-lines-page (C-c l). Furthermore, as for being "trapped
forever," I see no reason for C-c in particular to be appropriated for
this purpose instead of some other control character that would leave
users' bindings intact, or even moving `ctl-x-map' from C-c to C-c
C-x, though this would be more effort to implement.
> User-defined commands are secondary in this scenario.
The passage I cited refers to "all the Emacs major modes". Is there
any reason to believe that term.el should be exempt from adhering to
this convention?
next prev parent reply other threads:[~2013-07-14 1:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-24 0:32 bug#12976: 24.2; C-c i is bound to custom function, but in a term buffer it gets bound to ido-insert-file Joseph Mingrone
2012-11-24 3:43 ` Glenn Morris
2013-07-12 1:52 ` Leo Liu
2013-07-14 1:14 ` Josh [this message]
2021-12-04 4:31 ` Lars Ingebrigtsen
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='CANdFEAFYd-6Y=9sSuO1aube6X87TDk+tNgrJbbUoHc1H-+yi+g@mail.gmail.com' \
--to=josh@foxtail.org \
--cc=12976-done@debbugs.gnu.org \
--cc=12976@debbugs.gnu.org \
--cc=jrm@ftfl.ca \
/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.