emacs-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]