X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/f4fcb10303e21d4a0526e070f7951b789c781b9f..fb77502f695331501fb32e686424c3aec3c7b1a3:/lisp/let-alist.el diff --git a/lisp/let-alist.el b/lisp/let-alist.el index 80b72d37ac..ca7a904a08 100644 --- a/lisp/let-alist.el +++ b/lisp/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,9 +72,9 @@ 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 access SYMBOL inside VARIABLE."