[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "whether the global keymap C-x 4 will be replaced by a command,"
From: |
Stefan Monnier |
Subject: |
Re: "whether the global keymap C-x 4 will be replaced by a command," |
Date: |
Sun, 19 Jul 2020 23:09:57 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> In `other-frame-window` this is done via `ofw-transient-map`.
> `C-x 4` could fall back to `ofw-transient-map` when `C-x 4` is
> followed by an unbound key that has a binding in `ofw-transient-map`.
> Otherwise, when there is no binding in the `C-x 4` keymap,
> and no binding in `ofw-transient-map` then the key sequence
> could be followed by a global binding.
I don't understand how that's different from how `ofw-transient-map` is
used in `other-frame-window`.
> But such fallback currently is impossible to implement because
> `[remap t]` doesn't work in `ctl-x-4-map`. Tried with:
>
> (define-key ctl-x-4-map [remap t] 'other-window-prefix)
`other-frame-window` uses `set-transient-map`, not [remap t] (which
indeed is basically unusable, at least not without introducing weird
corner cases).
And of course, it would still suffer from the same problem of how to
make `C-x k` return the command bound to `C-x 4 C-f` or to `C-x e e e`.
Stefan
- Re: "whether the global keymap C-x 4 will be replaced by a command,", (continued)
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Richard Stallman, 2020/07/17
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Sean Whitton, 2020/07/18
- RE: "whether the global keymap C-x 4 will be replaced by a command,", Drew Adams, 2020/07/18
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Richard Stallman, 2020/07/18
- RE: "whether the global keymap C-x 4 will be replaced by a command,", Drew Adams, 2020/07/19
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Richard Stallman, 2020/07/17
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Juri Linkov, 2020/07/18
- RE: "whether the global keymap C-x 4 will be replaced by a command,", Drew Adams, 2020/07/18
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Stefan Monnier, 2020/07/18
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Juri Linkov, 2020/07/19
- Re: "whether the global keymap C-x 4 will be replaced by a command,",
Stefan Monnier <=
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Juri Linkov, 2020/07/20
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Richard Stallman, 2020/07/19
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Stefan Monnier, 2020/07/19
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Richard Stallman, 2020/07/14
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Barry Fishman, 2020/07/19
- RE: "whether the global keymap C-x 4 will be replaced by a command,", Drew Adams, 2020/07/19
- Re: "whether the global keymap C-x 4 will be replaced by a command,", Barry Fishman, 2020/07/19
- RE: "whether the global keymap C-x 4 will be replaced by a command,", Drew Adams, 2020/07/19