[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/which-key 8f2427a 43/51: Fix which-key--propertize-desc
From: |
Stefan Monnier |
Subject: |
[elpa] externals/which-key 8f2427a 43/51: Fix which-key--propertize-description use make-text-button return value (#249) |
Date: |
Tue, 8 Sep 2020 10:26:21 -0400 (EDT) |
branch: externals/which-key
commit 8f2427a69bc0388ddfb14a10eaf71e589f3b0913
Author: N V <44036031+progfolio@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Fix which-key--propertize-description use make-text-button return value
(#249)
As of:
https://github.com/emacs-mirror/emacs/commit/7ac79872aed63110c0d26c1e62e1838d6101c9bd
make-text-button no longer modifies a string when it is passed as the
first argument. which-key--propertize-description relied on the mutation
of the string argument. Using the return value of make-text-button will
return the propertized string with both the new and old behavior.
Fixes #248
---
which-key.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/which-key.el b/which-key.el
index 8c88b44..475772f 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1663,8 +1663,7 @@ ORIGINAL-DESCRIPTION is the description given by
(max (floor (* (frame-width) 0.8))))
(if (> (length str) max)
(concat (substring str 0 max) "...")
- str))))))
- desc)))
+ str)))))))))
(defun which-key--extract-key (key-str)
"Pull the last key (or key range) out of KEY-STR."
- [elpa] externals/which-key 8b49ae9 42/51: Fix last commit, (continued)
- [elpa] externals/which-key 8b49ae9 42/51: Fix last commit, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key b11227b 23/51: Strip out advice in command docstrings, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 9ff54ff 37/51: Fix short windows being resized, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 9550707 40/51: Merge remote-tracking branch 'hlissner/patch-1', Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 3642c11 45/51: Speed up which-key--maybe-replace, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key da1abb4 27/51: Fix previous commit, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 2b10b8e 50/51: Remove use of focus-{in, out}-hook, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 9d1de2f 20/51: Refactor regexp & fix incompatibility + error, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key c4b7aae 32/51: Revive Cask file, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key f9d8d49 39/51: Fix prefix argument for which-key-show-major-mode (#239), Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 8f2427a 43/51: Fix which-key--propertize-description use make-text-button return value (#249),
Stefan Monnier <=
- [elpa] externals/which-key 90d10a8 33/51: Fix sorting of keys and add test, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 42a2505 14/51: Rework implementation of manual updating, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 0d0af8a 19/51: Strip out advice in command docstrings, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 190310d 30/51: Disable travis and cask, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key a135e6f 34/51: Change name of workflow, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key fcc509f 25/51: Update travis versions, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 6e4b4c5 36/51: Simplify last commit, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key ce25fb2 44/51: Add basic PR template, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 7b068f3 38/51: Fix case sorting in alpha sort functions, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 3401440 28/51: Fix workflow, Stefan Monnier, 2020/09/08