-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stomps all over the local keymap if outline-minor-mode is enabled (or disabled) #36
Comments
Excellent points. I'll look at fixing this soon. |
Could you see if this is fixed in the latest master? |
No, the current master is commit 05aab5c and we can see that nothing has changed: Lines 1917 to 1932 in 05aab5c
|
ah, thanks for showing me. |
Ouch, this is really bad. It just bit me by breaking |
(add-hook 'outline-minor-mode-hook 'mediawiki-outline-magic-keys)
is really bad.mediawiki-outline-magic-keys
callslocal-set-key
for a bunch of key sequences. That's usually the major mode keymap, which is shared amongst all buffers in that mode whether or notoutline-minor-mode
(let alonemediawiki-mode
) is enabled in any given buffer, and which persists for future buffers using that major mode as well.And because the global
outline-minor-mode-hook
was used, this clobbering happens again in future, even if you'd re-bound the keys manually, until you figure out what was causing it.And this all happens from simply loading mediawiki.el.
I suggest creating a new buffer-local minor mode for the desired key bindings, and then only enabling that mode in the specific buffers where you want it.
The text was updated successfully, but these errors were encountered: