Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

How can I flip the page with the C-h prefix? #175

Closed
yuzumx opened this issue Oct 17, 2017 · 9 comments
Closed

How can I flip the page with the C-h prefix? #175

yuzumx opened this issue Oct 17, 2017 · 9 comments

Comments

@yuzumx
Copy link

yuzumx commented Oct 17, 2017

Hello, and sorry for taking your time and my poor English.

My C-h prefix is shown as two pages under which-key.

But when I type C-h after C-h to flip the page, Emacs entered help-for-help.

So how can I filp? I do not want to change the default key binding.

Thank you.

@yuzumx yuzumx changed the title How do I flip the page with the C-h prefix? How can I flip the page with the C-h prefix? Oct 17, 2017
@justbur
Copy link
Owner

justbur commented Oct 17, 2017

The key bindings were changed at some point. The default is to go to the next page with C-h C-n or C-h n, the previous page with C-h C-p or C-h p, etc. See which-key-C-h-map. You're free to customize that keymap if you want different bindings.

@yuzumx
Copy link
Author

yuzumx commented Oct 27, 2017

Thank you.

@yuzumx yuzumx closed this as completed Oct 27, 2017
@yuzumx
Copy link
Author

yuzumx commented Jan 22, 2018

@justbur Although I am sorry, but I have to reopen this issue.

My question is: "When I press C-h, how do I turn pages?"

1

You can see there are two pages

Then I pressed C-h:
2

So how do I see the second page? Can only change binding?

Thank you.

@yuzumx yuzumx reopened this Jan 22, 2018
@justbur
Copy link
Owner

justbur commented Jan 30, 2018

You pressed C-h C-h. You need to press C-h n or C-h C-n to go to the next page.

@yuzumx
Copy link
Author

yuzumx commented Jan 30, 2018

When I pressed C-h n or C-h C-n:
1
The 25.3 version will also show the same page.

@justbur
Copy link
Owner

justbur commented Jan 31, 2018

What are your which-key settings?

@yuzumx
Copy link
Author

yuzumx commented Jan 31, 2018

(which-key-mode)
(with-eval-after-load 'which-key
  (diminish 'which-key-mode)
  (which-key-setup-side-window-bottom))

which-key is installed from Melpa

@justbur
Copy link
Owner

justbur commented Jan 31, 2018

Oh, I see what the problem is. Turning the page won't work if C-h is a bound key. This is on purpose, so that paging doesn't make any keys inaccessible.

The key sequence C-h C-h is bound to a command, which is why you are getting this behavior. If you want to turn the page after C-h you need to unset C-h C-h like this

(global-unset-key (kbd "C-h C-h"))

@yuzumx
Copy link
Author

yuzumx commented Jan 31, 2018

Thanks. It works

@yuzumx yuzumx closed this as completed Jan 31, 2018
justbur added a commit that referenced this issue Jun 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants