I forgot what a key is bound to, so I decided to run

C-h k <my key binding>

But after pressing C-h k, I've remembered about that key binding and decided to quit. So I pressed C-g. Instead of quitting that command, describe-key described about C-g. I tried various other quit functions but they didn't work. I am wondering how to quit describe-key?

  • 5
    Assuming there were a keybind for quitting describe-key , how would you describe that keybind with Emacs?
    – wasamasa
    Jun 28 '15 at 14:28
  • As stated, the question makes little sense - I'm voting to close it as unclear. But my guess is that you have another, real question behind this one - if so, please edit your question to state it clearly. What are you really trying to do, and in what way does C-h k not seem to help you do it?
    – Drew
    Jun 28 '15 at 14:42

You cannot quit the describe-key command. The reason is simple: it cannot know whether you changed your mind about requiring a description of a key or whether you want a description of the key C-g. So it assumes it's the latter, because otherwise it would be impossible to get a description of that key.

You will just have to live with the *Help* buffer being displayed in some window. Usually you should be able to make the window/buffer go away by pressing C-x o and then q. Or you could just use C-h c (describe-key-briefly) instead. That doesn't create a window.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.