branch: externals/jinx
commit 81d0a092b3ca4c5036af45c9411ebbe66eb123ea
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Fix wrong-type-argument (Fix #175)
---
 jinx.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/jinx.el b/jinx.el
index 76604e43ef..b9b61998aa 100644
--- a/jinx.el
+++ b/jinx.el
@@ -738,7 +738,8 @@ The word will be associated with GROUP and get a prefix 
key."
       (setq list (jinx--add-suggestion list ht w "Suggestions from session")))
     (cl-loop for (key . fun) in jinx--save-keys
              for actions = (funcall fun nil key word) do
-             (unless (consp (car actions)) (setq actions (list actions)))
+             (when (and actions (not (consp (car actions))))
+               (setq actions (list actions)))
              (cl-loop for (k w a) in actions do
                       (push (propertize
                              (concat (propertize (if (stringp k) k 
(char-to-string k))

Reply via email to