[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/assess 190eab03d7 74/95: Fix debug declation in -with-t
From: |
ELPA Syncer |
Subject: |
[elpa] externals/assess 190eab03d7 74/95: Fix debug declation in -with-temp-buffers |
Date: |
Tue, 19 Jul 2022 15:57:35 -0400 (EDT) |
branch: externals/assess
commit 190eab03d7e5e9f574be65ae726703d51f227f4a
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Fix debug declation in -with-temp-buffers
As the macro uses `with-current-buffer' inside the let form that it
generates, its interface differs from that of let. The new debug
declaration supports this different behaviour. Update documentation
to reflect.
Addresses #10
---
assess.el | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/assess.el b/assess.el
index bee76dfb11..2876e3fefc 100644
--- a/assess.el
+++ b/assess.el
@@ -209,14 +209,19 @@
(defmacro assess-with-temp-buffers (varlist &rest body)
"Bind variables in varlist to temp buffers, then eval BODY.
-VARLIST is of the same form as a `let' binding. Each element is a
-symbol or a list (symbol valueforms). Each symbol is bound to a
-buffer generated with `generate-new-buffer'. VALUEFORMS are
-evaluated with the buffer current. Any buffers created inside
-this form (and not just by this form!) are unconditionally killed
-at the end of the form."
+VARLIST is (nearly) of the same form as a `let' binding. Each
+element is a symbol or a list (symbol valueforms). Each symbol is
+bound to a buffer generated with `generate-new-buffer'.
+VALUEFORMS are evaluated with the buffer current. Any buffers
+created inside this form (and not just by this form!) are
+unconditionally killed at the end of the form.
+
+Unlike `let' there can be multiple valueforms which are,
+effectively, placed within an impicit `progn'."
(declare (indent 1)
- (debug let))
+ (debug
+ ((&rest (symbolp &rest form))
+ body)))
(let ((let-form
(-map
#'assess--temp-buffer-let-form
- [elpa] externals/assess f1edef3220 52/95: Move call implementation to closure, (continued)
- [elpa] externals/assess f1edef3220 52/95: Move call implementation to closure, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 0781fd79c4 88/95: Prepare for 0.5 release, ELPA Syncer, 2022/07/19
- [elpa] externals/assess d809f70748 53/95: Documentation for `assess-call--capture-lambda`, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 4b941ebd35 57/95: Added -pkg.el file to .gitignore, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 36093a2c6b 61/95: Fix keybinding for edmacro. Add test., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 46834f9423 54/95: Add ability to capture calls to hooks, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 74d8de749c 64/95: assess-with-temp-buffers now uses let*, ELPA Syncer, 2022/07/19
- [elpa] externals/assess fca80753d7 66/95: Kill even modified file associated buffers, ELPA Syncer, 2022/07/19
- [elpa] externals/assess df2532f2ec 56/95: Add autoload cookies, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 979c26b3b7 73/95: Add assess-with-filesystem, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 190eab03d7 74/95: Fix debug declation in -with-temp-buffers,
ELPA Syncer <=
- [elpa] externals/assess 1c34f2bc14 79/95: Fix error symbol declaration, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 1b1ac33709 87/95: Fix travis build, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 29950d8964 90/95: Merge pull request #18 from DamienCassou/typos, ELPA Syncer, 2022/07/19
- [elpa] externals/assess cb2c0361a7 91/95: Add expected failure, ELPA Syncer, 2022/07/19
- [elpa] externals/assess be539d6447 92/95: Update test framework, drop early 24, ELPA Syncer, 2022/07/19
- [elpa] externals/assess cd394f309f 49/95: Add documentation for assess-call, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 38084cff73 60/95: v0.3 release, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 4a5eee8ba9 62/95: Fix version number, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 29e80b7540 65/95: Ensure capture function returns correct value, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 9374be7b98 72/95: Add initial lentic support to assess-discover, ELPA Syncer, 2022/07/19