[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41438: [PATCH] Allow windmove keys to be bound without prefix or mod
From: |
Juri Linkov |
Subject: |
bug#41438: [PATCH] Allow windmove keys to be bound without prefix or modifiers |
Date: |
Sun, 09 Aug 2020 02:54:17 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> But there are a few general issues I noticed:
>
> 1. windmove-display-{same-window,new-{frame,tab}} can disturb regular
> input when the modifier is set to shift or none. Possible solutions
> could be to prohibit using these modifiers or to add a prefix key and
> generate a warning when eg. "S-t" or "t" would be rebound.
Perhaps displaying a warning should be sufficient.
> 2. The new function windmove--unbind works with the global-map, so when
> someone sets a prefix to none, and then changes it to something else,
> the arrow keys are left undefined. I could either see this being
> fixed by using a separate map or by somehow memorising what the
> previous key was (eg. by using the property list of the windmove
> command's symbol).
I'm not sure whether such complication is necessary. Usually
users will try to customize the option and then restart Emacs.