Skip to content

Commit

Permalink
Describe ignore when cdr of candidate is (#27)
Browse files Browse the repository at this point in the history
ignore or ignore-event and is a string.

* helm-descbinds.el (helm-descbinds-action:describe): Do something
more useful than nothing.
  • Loading branch information
Thierry Volpiatto committed Apr 29, 2019
1 parent f418ce5 commit 4e7a7c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-descbinds.el
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ This function will be called with two arguments KEY and BINDING."
(defun helm-descbinds-action:describe (candidate)
"An action that describe selected CANDIDATE function."
(let ((name (cdr candidate)))
(when (member name '("ignore" "ignore-event"))
(setq name 'ignore))
(if (equal name "Keyboard Macro")
(describe-key (kbd (car candidate)))
(and (symbolp name)
Expand Down

0 comments on commit 4e7a7c0

Please sign in to comment.