GNU bug report logs - #23244
24.4; let-alist does not handle vectors

Previous Next

Package: emacs;

Reported by: Ola Nilsson <ola.nilsson <at> gmail.com>

Date: Fri, 8 Apr 2016 15:24:02 UTC

Severity: normal

Tags: fixed

Found in version 24.4

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Ola Nilsson <ola.nilsson <at> gmail.com>
Cc: 23244 <at> debbugs.gnu.org
Subject: bug#23244: 24.4; let-alist does not handle vectors
Date: Sun, 28 Jul 2019 23:29:51 +0200
Ola Nilsson <ola.nilsson <at> gmail.com> writes:

> This construct does not work (gives error "(void-variable \.a)"):
>
> (let-alist '((a . 1) (b . 2))
>   `[,(+ .a .b)])
>
> while this construct returns the expected [3]
>
> (let-alist '((a . 1) (b . 2))
>   (+ .a .b)
>   `[,(+ .a .b)])
>
> The problem seems to be that let-alist--deep-dot-search skips vectors.

(I'm going through old Emacs bug reports that haven't received any
response.)

Yup.  I think this is now fixed on the Emacs trunk.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 295 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.