[Top][All Lists]

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

[elpa] master 19ff7cf 270/399: counsel.el (counsel-register-action): Twe

From: Oleh Krehel
Subject: [elpa] master 19ff7cf 270/399: counsel.el (counsel-register-action): Tweak error
Date: Sat, 20 Jul 2019 14:57:38 -0400 (EDT)

branch: master
commit 19ff7cfc8dacc06b85d16e55099b3e75bd1ebabe
Author: Basil L. Contovounesios <address@hidden>
Commit: Basil L. Contovounesios <address@hidden>

    counsel.el (counsel-register-action): Tweak error
    Register names can be characters such as ?\C-n, so pretty-print them
    as register-preview-function would.
    Re: #2056
 counsel.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 3bb2b7c..660a749 100644
--- a/counsel.el
+++ b/counsel.el
@@ -3926,7 +3926,8 @@ matching the register's value description against a 
regexp in
     (if action
         (funcall action val)
-      (error "No action was found for register %c" val))))
+      (error "No action was found for register %s"
+             (single-key-description val)))))
 (defun counsel-register ()

reply via email to

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