From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: master ae4171efdc6: Support numeric indexing in let-alist Date: Thu, 19 Sep 2024 10:13:44 +0200 Message-ID: <87ikushxhj.fsf@gmail.com> References: <172671096567.32154.15554421537956820251@vcs2.savannah.gnu.org> <20240919015606.13874C410F1@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19616"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Spencer Baugh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 19 10:14:09 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1srCIj-0004wV-30 for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Sep 2024 10:14:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srCIT-0002Kq-Kp; Thu, 19 Sep 2024 04:13:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srCIR-0002KS-6q for emacs-devel@gnu.org; Thu, 19 Sep 2024 04:13:51 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srCIP-0005rO-F3 for emacs-devel@gnu.org; Thu, 19 Sep 2024 04:13:50 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-42cbc22e1c4so4043885e9.2 for ; Thu, 19 Sep 2024 01:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726733627; x=1727338427; darn=gnu.org; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=J3NmshjNYMLJ8OKFPojjwz+brHOu/G9hAe2gz3k13Ng=; b=hA2jc5LsgYnVfyXjNMPmOPl6KZIkM/sURuk4xY7ECU1uRQb74KT+YPo23sY1Y7zDnw cWvJvlqrJ4iw3aScOABQZKJz4eSbJbMQgPy1szfNqZY0O68VeYUYi9ojgGEyJD4t0S7H taE04qhjHC91KakLAMk5ozPeiZnrDli1VYfI+slfoyItmqrjDpEQ/wmhsZxxxN2NMOAE ycEZXA/ZrsNjz+Gt4KkHzXgSAI328x4ciHYWyvo2CL+KlWDQ43bjzFiSoLN2iwCO8mf+ IdnzMuyEBSUhk5ziqTQo+Z0R1qewbVIyjTM5RDnp4ac3LpUmSmB4VpaSN4LZKGAbVJ0H 8I3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726733627; x=1727338427; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J3NmshjNYMLJ8OKFPojjwz+brHOu/G9hAe2gz3k13Ng=; b=Dh4TCLJCcvPQmJdN1b1hLcwu4jH5oOUnkaFJqYEpdCuJVSN67PZRXxevohSEBtY77u I5jZ+mSO2cegOAfPtL2qFp/cwCMPujUKjkmTJd2cLmW/tS3xUKjdVExzpwaCyYf1Zlzi FixK+kqA2VaTIRw2IW7AFONohocYYxRJ1Be9rw1/E7GBOAc82ac5OWne00KddcTqxrQ4 HY6GOsEpbTcnYy+Ouwyz+fmV+gQ1YwaXY/slzcmdLq3XH3StEpu2Sfel3nnQfnlpe749 ZmlQKcHMzMkt9jYyCv9w78OTFCbm9nVq/VjvmgHP6YT2F0+zLQaOJfMk+rqBgi0xkAP6 K3PA== X-Gm-Message-State: AOJu0Yx2tY5wsmSarK9BqJMlaBdCenUNU8HHTUGew+g0svxdZWDCK0lh P70l2roZNa5ow3kIH7dHKTFOEVViKgCdPhrwyDEz/u32j6MuWc2Y3IeXYA== X-Google-Smtp-Source: AGHT+IGNADIoq4ILC9n3T8geGnEBFSYbEzX35haCwL/iyywXsVAM7Y/N54ncjVhM4LnEplByJtMC/Q== X-Received: by 2002:a05:600c:3b07:b0:426:6876:83bb with SMTP id 5b1f17b1804b1-42d9082b91bmr152881315e9.17.1726733627221; Thu, 19 Sep 2024 01:13:47 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb51:a069:79f4:e159:b9b3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7541d4ddsm15320325e9.11.2024.09.19.01.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2024 01:13:46 -0700 (PDT) In-Reply-To: <20240919015606.13874C410F1@vcs2.savannah.gnu.org> (Stefan Kangas's message of "Wed, 18 Sep 2024 21:56:05 -0400 (EDT)") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323759 Archived-At: >>>>> On Wed, 18 Sep 2024 21:56:05 -0400 (EDT), Stefan Kangas said: Stefan> branch: master Stefan> commit ae4171efdc60dfa53aa404e5926f5165dbf98d59 Stefan> Author: Spencer Baugh Stefan> Commit: Stefan Kangas Stefan> Support numeric indexing in let-alist Stefan> let-alist is very useful. But sometimes an alist contains a list in Stefan> the middle, which contains yet more alists. Previously, this was Stefan> somewhat painful to deal with, and required something like: Stefan> (let-alist alist Stefan> (let-alist (nth 0 .a) Stefan> (let-alist (nth 3 .b) Stefan> .c))) Stefan> Now, the following works: Stefan> (let-alist alist Stefan> .a.0.b.3.c) Stefan> * lisp/emacs-lisp/let-alist.el (let-alist--access-sexp): Properly Stefan> parse numbers to handle lists. (Bug#66509) Stefan> (let-alist--list-to-sexp): Use nth to handle numbers. Stefan> (let-alist): Update docs. Would it be possible to update the elisp manual as well (and maybe add an entry to NEWS)? Robert --