[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 77997ea 120/184: counsel.el (counsel-M-x-transformer): Han

From: Oleh Krehel
Subject: [elpa] master 77997ea 120/184: counsel.el (counsel-M-x-transformer): Handle read-only strings
Date: Wed, 16 Oct 2019 13:15:03 -0400 (EDT)

branch: master
commit 77997ea9ebd9b6ff2a65290e2731015ab4bbf268
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-M-x-transformer): Handle read-only strings
    Re #2258
    Fixes #2262
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index d84c6e2..206b01a 100644
--- a/counsel.el
+++ b/counsel.el
@@ -819,7 +819,7 @@ With prefix arg MODE a query for the symbol help mode is 
                (memq sym minor-mode-list)
                (boundp sym)
                (buffer-local-value sym (ivy-state-buffer ivy-last))))
-      (put-text-property 0 (length cmd) 'face 'counsel-active-mode cmd))
+      (setq cmd (propertize cmd 'face 'counsel-active-mode)))
     (concat cmd
             (when (and (symbolp alias) counsel-alias-expand)
               (format " (%s)" alias))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]