[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master fce520f 08/39: Improve which-key--format-and-replace
From: |
Justin Burkett |
Subject: |
[elpa] master fce520f 08/39: Improve which-key--format-and-replace |
Date: |
Thu, 21 Jun 2018 15:48:13 -0400 (EDT) |
branch: master
commit fce520f8af727bd33861f8d0f7655c01ea84ad85
Author: Justin Burkett <address@hidden>
Commit: Justin Burkett <address@hidden>
Improve which-key--format-and-replace
Do a better job with nil descriptions
---
which-key.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/which-key.el b/which-key.el
index 827261d..89c0468 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1632,9 +1632,11 @@ alists. Returns a list (key separator description)."
(hl-face (which-key--highlight-face orig-desc))
(key-binding (which-key--maybe-replace (cons keys orig-desc)))
(final-desc (which-key--propertize-description
- (cdr key-binding) group local hl-face orig-desc))
- (final-desc (which-key--maybe-add-docstring final-desc orig-desc))
- (final-desc (which-key--truncate-description final-desc)))
+ (cdr key-binding) group local hl-face orig-desc)))
+ (when final-desc
+ (setq final-desc
+ (which-key--truncate-description
+ (which-key--maybe-add-docstring final-desc orig-desc))))
(when (consp key-binding)
(push
(list (which-key--propertize-key
- [elpa] master updated (81c4a3d -> fb09d75), Justin Burkett, 2018/06/21
- [elpa] master 1dd91df 01/39: Implement #182, Justin Burkett, 2018/06/21
- [elpa] master 1219622 02/39: Remove debugging message, Justin Burkett, 2018/06/21
- [elpa] master c71fbbb 03/39: Add option to show docstrings in which-key buffer, Justin Burkett, 2018/06/21
- [elpa] master fce520f 08/39: Improve which-key--format-and-replace,
Justin Burkett <=
- [elpa] master caa18b2 12/39: Fix descriptions of keys involving meta when showing keymaps, Justin Burkett, 2018/06/21
- [elpa] master e5db4b6 07/39: Handle null description in which-key--propertize-description, Justin Burkett, 2018/06/21
- [elpa] master 0aae4c8 04/39: Improve which-key-show-docstrings option, Justin Burkett, 2018/06/21
- [elpa] master 6a4d2c2 09/39: Extract which-key--ignore-keys-regexp and which-key-show-keymap-1, Justin Burkett, 2018/06/21
- [elpa] master ca991b0 11/39: Autoload the show keymap functions, Justin Burkett, 2018/06/21
- [elpa] master fd714bc 13/39: Fix docstring of which-key--get-keymap-bindings, Justin Burkett, 2018/06/21
- [elpa] master b5f7063 15/39: Detect menu-items in which-key--get-keymap-bindings, Justin Burkett, 2018/06/21
- [elpa] master 5493d22 05/39: Fix description truncation when showing docstrings, Justin Burkett, 2018/06/21
- [elpa] master 2e53187 14/39: Fix typo in previous commit, Justin Burkett, 2018/06/21
- [elpa] master 7da9f8c 16/39: Fix which-key--show-keymap when no bidnings found, Justin Burkett, 2018/06/21