]> code.delx.au - gnu-emacs-elpa/commitdiff
* let-alist (let-alist--deep-dot-search): Fix cons
authorArtur Malabarba <bruce.connor.am@gmail.com>
Thu, 11 Jun 2015 14:09:09 +0000 (15:09 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Thu, 11 Jun 2015 14:09:09 +0000 (15:09 +0100)
packages/let-alist/let-alist.el

index c490a9fc163ca6b1e3b1d66955e8b9e2ef3437f8..ca7a904a08766439e956b854dfaf35593f5d70d2 100644 (file)
@@ -4,7 +4,7 @@
 
 ;; Author: Artur Malabarba <bruce.connor.am@gmail.com>
 ;; Maintainer: Artur Malabarba <bruce.connor.am@gmail.com>
-;; Version: 1.0.3
+;; Version: 1.0.4
 ;; Keywords: extensions lisp
 ;; Prefix: let-alist
 ;; Separator: -
@@ -72,12 +72,12 @@ symbol, and each cdr is the same symbol without the `.'."
         ;; Return the cons cell inside a list, so it can be appended
         ;; with other results in the clause below.
         (list (cons data (intern (replace-match "" nil nil name)))))))
-   ((not (listp data)) nil)
-   (t (apply #'append
-        (mapcar #'let-alist--deep-dot-search data)))))
+   ((not (consp data)) nil)
+   (t (append (let-alist--deep-dot-search (car data))
+              (let-alist--deep-dot-search (cdr data))))))
 
 (defun let-alist--access-sexp (symbol variable)
-  "Return a sexp used to acess SYMBOL inside VARIABLE."
+  "Return a sexp used to access SYMBOL inside VARIABLE."
   (let* ((clean (let-alist--remove-dot symbol))
          (name (symbol-name clean)))
     (if (string-match "\\`\\." name)