]> git.eshelyaron.com Git - emacs.git/commitdiff
Dpn't assume symbol-name of keywords starts with colon
authorGerd Möllmann <gerd@gnu.org>
Sat, 15 Oct 2022 12:14:57 +0000 (14:14 +0200)
committerGerd Möllmann <gerd@gnu.org>
Sat, 15 Oct 2022 12:14:57 +0000 (14:14 +0200)
* lisp/emacs-lisp/cl-seq.el (cl--parsing-keywords):
Don't substring the keyword symbol name.

lisp/emacs-lisp/cl-seq.el

index 60e204eaf518bab5ee1455ccd8f9d346c3f627e7..7cff3f3ce1007af338df955a8ff6d448d662ca17 100644 (file)
@@ -58,7 +58,7 @@
                (if (eq var :if-not)
                    (setq mem `(and ,mem (setq cl-if ,mem) t)))
                (list (intern
-                      (format "cl-%s" (substring (symbol-name var) 1)))
+                      (format "cl-%s" (substring (symbol-name var) 0)))
                      (if (consp x) `(or ,mem ,(car (cdr x))) mem))))
            kwords)
      ,@(append