--- Begin Message ---
Subject: |
[PATCH] docs: mention the keymap to add keybindings to for term-mode |
Date: |
Thu, 14 Mar 2024 02:39:23 +0300 |
User-agent: |
Evolution 3.50.4 |
I've spent quite some time today trying to somehow override keybindings
for term-mode. While time was spent mostly due to some local mistakes,
one problem I also noticed is that term-mode has `term-mode-map` —
pretty much like any other major mode foo typically have `foo-mode-
map`. However, adding keybindings into it has no effect whatsoever.
Instead term-mode has an additional `term-raw-map`, which is the actual
location where one has to put custom bindings.
It is completely non-intuitive (and I also for some reason didn't get
the answer on emacs.stackexchange for the same problem when I was
trying to google it), so let's document that nuisance.
1.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#69786: [PATCH] docs: mention the keymap to add keybindings to for term-mode |
Date: |
Sat, 16 Mar 2024 13:31:20 +0200 |
> From: Konstantin Kharlamov <Hi-Angel@yandex.ru>
> Cc: 69786@debbugs.gnu.org
> Date: Sat, 16 Mar 2024 13:36:20 +0300
>
> On Thu, 2024-03-14 at 13:09 +0200, Eli Zaretskii wrote:
> >
> > > Okay then, I'll add docs to the `term-mode` if you think it might
> > > be
> > > useful for someone and (re: the other email) to `term-mode-map` and
> > > `term-raw-map` variables 😊
> >
> > Thanks.
>
> Done, please see if it's okay now.
Thanks, installed on the emacs-29 branch, and closing the bug.
Please in the future try to remember mentioning the bug number (if
known) in the commit log message, and also quote symbols `like this'
or 'like this', but not `like this`.
> While at it, could you please remind me how to use `C-x 4 a` to get a
> log of changes to be copied to the commit? I'm trying to use it but
> always seem to get random results: sometimes I get "COMMIT_MSG" file,
> other times I get a `* lisp/term.el (term-mode-map):` line even though
> the `term.el` has also `term-mode` and `term-raw-map` modified… I
> presume I might need some special setup for this to work, right? Like,
> Idk, having the changes in the git-stash or something like that…? I
> dunno, I'm just making things up.
You need to have point in the body of the function/variable when you
type "C-x 4 a". I think that's the cause of the problems you
describe.
--- End Message ---