Wilfred / helpful

A better Emacs *help* buffer
1.11k stars 62 forks source link

Helpful doesn't handle anonymous keyboard macros defined in keymaps #246

Open casouri opened 4 years ago

casouri commented 4 years ago
(global-set-key (kbd "s-.") (kbd "M-.))

maps s-. to M-.. Now if you call helpful-key and type s-., helpful reports an error. Seems that helpful assumes the stuff key-binding reports must be a symbol. This is what describe-key returns:

s-. runs the command [134217774] (found in global-map), which is a
keyboard macro.

It is bound to s-..

Macro: M-.

Keyboard macro.

[back]
casouri commented 4 years ago

This and #228 could use some similar fix: detect them early and report an uninformative help. I'll look into it once I found some time.