From: Eshel Yaron Date: Sun, 26 Jan 2025 07:56:15 +0000 (+0100) Subject: ; (let-alist): Document double-dot escape syntax. (Bug#75852) X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~85 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=84595cbcc78b1ea44302f22b83a7d722940c6e49;p=emacs.git ; (let-alist): Document double-dot escape syntax. (Bug#75852) --- diff --git a/lisp/emacs-lisp/let-alist.el b/lisp/emacs-lisp/let-alist.el index 27ce3e5c137..15a9bb89a42 100644 --- a/lisp/emacs-lisp/let-alist.el +++ b/lisp/emacs-lisp/let-alist.el @@ -141,6 +141,12 @@ the variables of the outer one. You can, however, access alists inside the original alist by using dots inside the symbol, as displayed in the example above. +To refer to a non-`let-alist' variable starting with a dot in BODY, use +two dots instead of one. For example, in the following form `..foo' +refers to the variable `.foo' bound outside of the `let-alist': + + (let ((.foo 42)) (let-alist \\='((foo . nil)) ..foo)) + Note that there is no way to differentiate the case where a key is missing from when it is present, but its value is nil. Thus, the following form evaluates to nil: