[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm a37d50c597 1/6: Highlight only commands in M-x
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm a37d50c597 1/6: Highlight only commands in M-x |
Date: |
Wed, 23 Aug 2023 03:59:46 -0400 (EDT) |
branch: elpa/helm
commit a37d50c5973ea13384f2da74f3bb61fae74f969d
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Highlight only commands in M-x
---
helm-command.el | 39 +++++++++++++++++++++------------------
1 file changed, 21 insertions(+), 18 deletions(-)
diff --git a/helm-command.el b/helm-command.el
index c5bb1bf34e..622c3c693a 100644
--- a/helm-command.el
+++ b/helm-command.el
@@ -152,25 +152,28 @@ algorithm."
unless (and (null ignore-props) (or (get sym 'helm-only) (get sym
'no-helm-mx)))
collect
(cons (cond ((and (string-match "^M-x" key) local-key)
- (format "%s%s%s %s"
- disp
- (if doc (make-string (+ 1 (- max-len (length
cand))) ? ) "")
- (if doc (propertize doc 'face
'helm-M-x-short-doc) "")
- (propertize
- " " 'display
- (propertize local-key 'face
'helm-M-x-key))))
+ (propertize (format "%s%s%s %s"
+ disp
+ (if doc (make-string (+ 1 (-
max-len (length cand))) ? ) "")
+ (if doc (propertize doc 'face
'helm-M-x-short-doc) "")
+ (propertize
+ " " 'display
+ (propertize local-key 'face
'helm-M-x-key)))
+ 'match-part disp))
((string-match "^M-x" key)
- (format "%s%s%s"
- disp
- (if doc (make-string (+ 1 (- max-len (length
cand))) ? ) "")
- (if doc (propertize doc 'face
'helm-M-x-short-doc) "")))
- (t (format "%s%s%s %s"
- disp
- (if doc (make-string (+ 1 (- max-len
(length cand))) ? ) "")
- (if doc (propertize doc 'face
'helm-M-x-short-doc) "")
- (propertize
- " " 'display
- (propertize key 'face 'helm-M-x-key)))))
+ (propertize (format "%s%s%s"
+ disp
+ (if doc (make-string (+ 1 (-
max-len (length cand))) ? ) "")
+ (if doc (propertize doc 'face
'helm-M-x-short-doc) ""))
+ 'match-part disp))
+ (t (propertize (format "%s%s%s %s"
+ disp
+ (if doc (make-string (+ 1 (-
max-len (length cand))) ? ) "")
+ (if doc (propertize doc 'face
'helm-M-x-short-doc) "")
+ (propertize
+ " " 'display
+ (propertize key 'face
'helm-M-x-key)))
+ 'match-part disp)))
cand)
into ls
finally return
- [nongnu] elpa/helm updated (d838d9c4a2 -> 3fd54e79d5), ELPA Syncer, 2023/08/23
- [nongnu] elpa/helm a37d50c597 1/6: Highlight only commands in M-x,
ELPA Syncer <=
- [nongnu] elpa/helm 5b5960fe49 2/6: Docstring only, ELPA Syncer, 2023/08/23
- [nongnu] elpa/helm 3fd54e79d5 6/6: Comments only, ELPA Syncer, 2023/08/23
- [nongnu] elpa/helm e483fbc8f2 5/6: Declare split-string-shell-command, ELPA Syncer, 2023/08/23
- [nongnu] elpa/helm 443b82b135 4/6: Declare minibuffer-follows-selected-frame, ELPA Syncer, 2023/08/23
- [nongnu] elpa/helm 526f728d6b 3/6: Fix issues with package compat for Emacs-27 and, ELPA Syncer, 2023/08/23