diff options
| author | Spencer Baugh | 2025-08-28 15:04:39 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2025-08-30 13:59:18 +0300 |
| commit | b610f36d44dda3beb5cf2b8b65bfb0d005afed5c (patch) | |
| tree | c4246d570f0c3e7210801d677a42b4008d27d415 /etc | |
| parent | 7efaa4657a10a0ec911a8fc8228260f30f1d7b55 (diff) | |
| download | emacs-b610f36d44dda3beb5cf2b8b65bfb0d005afed5c.tar.gz emacs-b610f36d44dda3beb5cf2b8b65bfb0d005afed5c.zip | |
Document and test 'let-alist' support for indexing
* etc/NEWS: Announce 'let-alist' support for indexing.
* test/lisp/emacs-lisp/let-alist-tests.el (let-alist-numbers):
Add a test for 'let-alist's support for indexing.
* doc/lispref/lists.texi (Association Lists): Document indexing
with 'let-alist'. (Bug#66509)
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -2854,6 +2854,12 @@ function 'load-path-filter-cache-directory-files', calling 'load' will | |||
| 2854 | cache the directories it scans and their files, and the following | 2854 | cache the directories it scans and their files, and the following |
| 2855 | lookups should be faster. | 2855 | lookups should be faster. |
| 2856 | 2856 | ||
| 2857 | +++ | ||
| 2858 | ** 'let-alist' supports indexing into lists. | ||
| 2859 | The macro 'let-alist' now interprets symbols containing numbers as list | ||
| 2860 | indices. For example, '.key.0' looks up 'key' in the alist and then | ||
| 2861 | returns its first element. | ||
| 2862 | |||
| 2857 | ** Lexical binding | 2863 | ** Lexical binding |
| 2858 | 2864 | ||
| 2859 | --- | 2865 | --- |