GNU bug report logs - #66509
29.1.50; let-alist should support numeric indexing

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Thu, 12 Oct 2023 22:04:01 UTC

Severity: wishlist

Tags: patch

Found in version 29.1.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Spencer Baugh <sbaugh <at> janestreet.com>
Subject: bug#66509: closed (Re: bug#66509: 29.1.50; let-alist should
 support numeric indexing)
Date: Sat, 30 Aug 2025 11:02:04 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#66509: 29.1.50; let-alist should support numeric indexing

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 66509 <at> debbugs.gnu.org.

-- 
66509: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66509
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: 66509-done <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#66509: 29.1.50; let-alist should support numeric indexing
Date: Sat, 30 Aug 2025 14:00:37 +0300
> From: Spencer Baugh <sbaugh <at> janestreet.com>
> Cc: stefankangas <at> gmail.com,  66509 <at> debbugs.gnu.org
> Date: Fri, 29 Aug 2025 09:19:30 -0400
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: Spencer Baugh <sbaugh <at> janestreet.com>
> >> Cc: Eli Zaretskii <eliz <at> gnu.org>,  66509 <at> debbugs.gnu.org
> >> Date: Thu, 28 Aug 2025 15:05:08 -0400
> >> 
> >> Stefan Kangas <stefankangas <at> gmail.com> writes:
> >> 
> >> > Stefan Kangas <stefankangas <at> gmail.com> writes:
> >> >
> >> >> reopen 66509
> >> >> thanks
> >> >>
> >> >>>> Pushed to master (commit ae4171efdc6).
> >> >>>>
> >> >>>> I'm therefore closing this bug report.
> >> >>
> >> >> I'm reopening this bug report, based on this request from Robert Pluim:
> >> >>
> >> >>> Would it be possible to update the elisp manual as well (and maybe add
> >> >>> an entry to NEWS)?
> >> >>
> >> >> I think that should be done also, so I'm reopening the bug to track that
> >> >> work.  Spencer, do you think you could you please address it?
> >> >>
> >> >> Bonus points for adding tests, as requested by Eli.
> >> >
> >> > Ping!
> >> 
> >> Done in attached patch.
> >
> > Thanks.
> >
> >> ++++
> >> +** 'let-alist' supports indexing into lists
> >
> > Heading lines in NEWS should end in a period.
> 
> Fixed.
> 
> >> +The macro 'let-alist' now interprets symbols containing numbers as list
> >> +indexes.  For example, '.key.0' looks up 'key' in the alist and then
> >
> > "indices", I guess?
> 
> Fixed.
> 
> > Also, I see no patch for the ELisp manual, although the "+++" mark in
> > NEWS seems to imply that the manual was updated.  But the current
> > manual doesn't seem to say anything about keys that include indices,
> > or did I miss something?
> 
> Oops, fixed.

Thanks, now installed on the master branch, and closing the bug.

[Message part 3 (message/rfc822, inline)]
From: Spencer Baugh <sbaugh <at> janestreet.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.1.50; let-alist should support numeric indexing
Date: Thu, 12 Oct 2023 18:03:22 -0400
It would be nice if let-alist supported indexing.  So if my alist
contained lists in some places, instead of writing:

(let-alist alist
  (let-alist (nth 0 .a)
    (let-alist (nth 3 .b)
       .c)))

I could instead write:

(let-alist alist
  .a.0.b.3.c)

A patch which does this to follow.



This bug report was last modified 19 days ago.

Previous Next


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