emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/ace-window f786679 04/92: Allow non-printing keys like


From: Stefan Monnier
Subject: [elpa] externals/ace-window f786679 04/92: Allow non-printing keys like in avy
Date: Wed, 17 Mar 2021 18:39:10 -0400 (EDT)

branch: externals/ace-window
commit f786679f89ebba8764aefc646c81645dcc479621
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>

    Allow non-printing keys like in avy
    
    Adapt so that the feature of https://github.com/abo-abo/avy/pull/77 can
    be used here, too.
---
 ace-window.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ace-window.el b/ace-window.el
index 15ed357..03803d4 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -200,9 +200,9 @@ LEAF is (PT . WND)."
               (concat
                (cl-case aw-leading-char-style
                  (char
-                  (apply #'string (last path)))
+                  (string (avy--key-to-char (car (last path)))))
                  (path
-                  (apply #'string (reverse path)))
+                 (mapconcat #'avy--key-to-char (reverse path) ""))
                  (t
                   (error "Bad `aw-leading-char-style': %S"
                          aw-leading-char-style)))



reply via email to

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