emacs-diffs
[Top][All Lists]
Advanced

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

master 5a5651a: Fix up recent kbd simplification


From: Lars Ingebrigtsen
Subject: master 5a5651a: Fix up recent kbd simplification
Date: Sun, 17 Oct 2021 06:57:03 -0400 (EDT)

branch: master
commit 5a5651a2f927b7758dfdf36953073f1f1a9920f9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix up recent kbd simplification
    
    * lisp/subr.el (kbd): Fix breakage with X-<foo> from previous change.
---
 lisp/subr.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lisp/subr.el b/lisp/subr.el
index a9669ab..6bd3b69 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1068,12 +1068,14 @@ and should normally not be needed."
                                     (nreverse lres)
                                     lres))))
       (if (and (not need-vector)
-               (not (memq nil (mapcar (lambda (ch) (<= 0 ch 127))
-                                      (append res nil)))))
+               (not (memq nil (mapcar (lambda (ch)
+                                        (and (numberp ch)
+                                             (<= 0 ch 127)))
+                                      res))))
           (concat (mapcar (lambda (ch)
                             (if (= (logand ch ?\M-\^@) 0)
                                 ch (+ ch 128)))
-                          (append res nil)))
+                          res))
         res))))
 
 (defun undefined ()



reply via email to

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