bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50430: [External] : bug#50430: windmove bindings now override org-re


From: Radon Rosborough
Subject: bug#50430: [External] : bug#50430: windmove bindings now override org-read-date
Date: Mon, 6 Sep 2021 15:54:51 -0700

> The global minor mode commands you bind could just
> invoke a minibuffer key binding
How? What I'm trying to do is avoid overriding a minibuffer key binding established by another package, which I don't control.

> if you don't want the global minor mode to have
> _any_ effect in the minibuffer

No, generally the desired behavior for these use cases is that the keybinding will by default be active in the minibuffer, unless minibuffer-local-map happens to override that key, in which case minibuffer-local-map should be preferred.

> is it only about key bindings

That's the problem I face, yes. Per my above comment, just conditionally disabling the minor mode doesn't actually solve the problem. Unless you were to conditionally disable it by scanning minibuffer-local-map for a specific set of keybindings, which feels somewhat horrifying.

More generally though, it would be really nice if there were a way to specify the numeric priority of a keybinding. Currently, minor modes are unconditionally preferred over major modes and minibuffer bindings, which are unconditionally preferred over global bindings. Usually this is what you want, but when it isn't, the workarounds feel pretty hacky.


reply via email to

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