local-unset-key, used interactively
M-x ..., are not working as expected, namely to bind or unbind a key for a specific buffer.
Case in point: I am editing a LaTeX (.tex) file in AucTeX's LaTeX major mode. LaTeX mode binds
C-TAB (same as
TeX-complete-symbol. However, flyspell minor mode is enabled (and is otherwise useful), but for some very lame reason this minor mode binds the (rather useless)
flyspell-auto-correct-word command to not just one, but two different keys, namely
For the life of me, I cannot figure out how to bind
TeX-complete-symbol restoring AucTeX's intended functionality, except by disabling flyspell minor mode. When called interactively from my .tex buffer,
local-set-key fails to actually set the key to
TeX-complete-symbol, the original mapping to
flyspell-auto-correct-word remains in place. I also tried
local-unset-symbol, but the darned flyspell mapping remains in place. After convincing myself that what I'm doing should be changing the binding (but doesn't), I decided to post here. I am stumped. Nothing I seem to do using
local/global-set/unset-key is working to change default mappings. Nothing! It just seems that the active bindings are carved in stone.
I've restarted emacs a half-dozen times troubleshooting this. Needless to say, no change.
My .emacs does nothing fancy. I cannot imagine that my customization could have anything to do with this abhorrent behavior. What's up, emacs?! Non-customization?!!!
Version data follows below:
GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30. AUCTeX-version is a variable defined in ‘tex-site.el’. Its value is "12.1.1"
C-M-i runs the command flyspell-auto-correct-word (found in flyspell-mode-map), which is an interactive compiled Lisp function in ‘flyspell.el’. It is bound to C-., C-M-i.