From ce4561c617536fdbbb5f6b16d600c266cb2cdbe8 Mon Sep 17 00:00:00 2001 From: justbur Date: Sun, 12 Jul 2015 21:58:26 -0400 Subject: [PATCH] Add docstring for propertize-description --- which-key.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/which-key.el b/which-key.el index 330b31ed1c7..8d1f0391d36 100644 --- a/which-key.el +++ b/which-key.el @@ -610,6 +610,10 @@ corresponding `which-key-special-key-face'." key-w-face)))) (defun which-key/propertize-description (description) + "Add face to DESCRIPTION where the face chosen depends on +whether the description represents a group or a command. Also +make some minor adjustments to the description string, like +removing a \"group:\" prefix." (let* ((desc description) (group-prfx (string-match-p "^group:" desc)) (group (or group-prfx