]> git.eshelyaron.com Git - emacs.git/commitdiff
; (let-alist): Document double-dot escape syntax.
authorEshel Yaron <me@eshelyaron.com>
Sun, 26 Jan 2025 07:56:15 +0000 (08:56 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 26 Jan 2025 07:56:15 +0000 (08:56 +0100)
lisp/emacs-lisp/let-alist.el

index 239a4ad69eb396d4142fac92876e1f2b0e8bbdee..b79c2e51de93103ed379534a41207b2d4281c5a7 100644 (file)
@@ -146,6 +146,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: