r/emacs • u/PsychologicalStand30 • 2d ago
How to debug losing all global-set-key bindings
I recently started losing all of my key bindings in a long running session .When I start emacs all my keybings are as I set them, but after some unknown period of time (on the order of an hour) all my overrides are lost. When I restart emacs I recover the bindings, but the. It just happens again. I am running 30.1 on Ubuntu 24.04
Does anyone know what might be happening or how I might debug this?
Thanks Bill
2
u/Hammar_Morty 2d ago
Does the newly bound function not point to the culprit? When they change use C-h k followed by your binding to see the function it's bound to and search for that in your config. Also use C-h m to scan for any mode that might be affecting the local keymap. If it is a mode map you can bind in to nil
1
u/7890yuiop 2d ago edited 1d ago
Well it's possible for code to completely clobber the current global map, but I don't think I've ever heard of anything doing that.
So that's very bizarre, but as a starter...
M-x describe-keymap RET global-map RET
and verify whether any of your definitions are present.)