Skip to content
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

Help for prefix is undefined (C-c C-h) #26

Open
shunlog opened this issue Jan 30, 2024 · 0 comments
Open

Help for prefix is undefined (C-c C-h) #26

shunlog opened this issue Jan 30, 2024 · 0 comments

Comments

@shunlog
Copy link

shunlog commented Jan 30, 2024

From the Emacs manual:

C-h or F1 mean “help” in various other contexts as well. For instance, you can type them after a prefix key to view a list of the keys that can follow the prefix key. (You can also use ? in this context. A few prefix keys don’t support C-h or ? in this way, because they define other meanings for those inputs, but they all support F1.)

However, typing , c , h doesn't work, and instead the message is displayed Devil: C-c C-h is undefined.
None of these work:

  • , c , h
  • , c C-h
  • , c <f1>
  • , x , h (so probably any prefix launched with Devil)
fbrosda added a commit to fbrosda/devil that referenced this issue Nov 24, 2024
This adds some special cases to `devil--find-command` based on the last
completely translated key press. If it is

1. C-g, then run `keyboard-quit` instead of doing any further lookups
2. C-h, then run `devil-describe-prefix-bindings`, which first translates the
key sequence and then calls `describe-bindings` with it.

`devil-describe-prefix-bindings` might also be assigned to
`prefix-help-command`.

In both cases the last key can either be entered via devil (e.g. ', h') or
directly (e.g. 'C-h).

Fixes susam#12
Fixes susam#26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant