X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/5aa78963734dc6975cad8df1c8853b65a4f1b826..6340c15fb07a979b6c7bd2e8913e499091c257ff:/packages/let-alist/let-alist.el diff --git a/packages/let-alist/let-alist.el b/packages/let-alist/let-alist.el index c490a9fc1..ca7a904a0 100644 --- a/packages/let-alist/let-alist.el +++ b/packages/let-alist/let-alist.el @@ -4,7 +4,7 @@ ;; Author: Artur Malabarba ;; Maintainer: Artur Malabarba -;; 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)