[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/which-key d1dfddc 24/51: Refactor regexp & fix incompat
From: |
Stefan Monnier |
Subject: |
[elpa] externals/which-key d1dfddc 24/51: Refactor regexp & fix incompatibility + error |
Date: |
Tue, 8 Sep 2020 10:26:18 -0400 (EDT) |
branch: externals/which-key
commit d1dfddcd1e3eaa418daa76414109994451044cdd
Author: Henrik Lissner <accounts@v0.io>
Commit: Justin Burkett <justin@burkett.cc>
Refactor regexp & fix incompatibility + error
---
which-key.el | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/which-key.el b/which-key.el
index 2adda88..09f5041 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1671,12 +1671,17 @@ and `which-key-show-docstrings' is non-nil. If
return the docstring."
(let* ((orig-sym (intern original))
(doc (when (commandp orig-sym)
- (string-trim-left
- (documentation orig-sym)
- (concat "\\(?::"
-
"\\(?:\\(?:after\\|before\\)\\(?:-\\(?:until\\|while\\)\\)?\\|around\\|override\\|filter-\\(?:args\\|return\\)\\)"
+ (documentation orig-sym)))
+ (doc (when doc
+ (replace-regexp-in-string
+ (concat "^\\(?::"
+ (regexp-opt '("around" "override"
+ "after" "after-until" "after-while"
+ "before" "before-until" "before-while"
+ "filter-args" "filter-return"))
" advice: [^\n]+\n"
- "\\)+\n"))))
+ "\\)+\n")
+ "" doc)))
(docstring (when doc
(which-key--propertize (car (split-string doc "\n"))
'face
'which-key-docstring-face))))
- [elpa] externals/which-key 0d0af8a 19/51: Strip out advice in command docstrings, (continued)
- [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
- [elpa] externals/which-key d5a4273 35/51: Replace use of xor, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key cf44641 31/51: Replace travis badge with github workflow badge, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key d1dfddc 24/51: Refactor regexp & fix incompatibility + error,
Stefan Monnier <=
- [elpa] externals/which-key c47c72d 11/51: Cleanup whitespace in README, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key 1e3640e 18/51: Make next page hint more consistent, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key a66bf93 26/51: Try purcell's workflow action, Stefan Monnier, 2020/09/08
- [elpa] externals/which-key e48e190 46/51: Fix #257 (#258), Stefan Monnier, 2020/09/08