emacs-elpa-diffs
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]