Alt-Shift-5 (okay, technically Meta-%) is the Emacs key combo for query-replace. Unfortunately -- though, weirdly, I can't find this documented anywhere -- it also seems to be the Windows key combo for closing a window, which means that on average I can get about half an hour out of Emacs on a Windows box before I forget and kill the shell it's running in. Is there any way to change this, either globally or on a per-application basis?
migrated from serverfault.com Feb 23 '12 at 19:55
This question came from our site for professional system and network administrators.
Do you have a laptop keyboard that overloads the number keys with F1, F2 when you press an additional modifier? That may be your problem. Shift-Alt-5 does not close a window using a default installation of Windows 7.
Note that the "alt" key and function or meta are usually quite distinct, depending on the laptop.
Also check for any of the default garbage "utilities" installed by the laptop vendor that has Keyboard shortcut functionality. Dell used to bundle a Wifi utility that had a bunch of keyboard mappings that conflicted with other things.