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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/buttercup ed649d7 125/340: Merge pull request #76 from Dam


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup ed649d7 125/340: Merge pull request #76 from DamienCassou/make-buttercup--with-cleanup-public
Date: Thu, 16 Dec 2021 14:59:18 -0500 (EST)

branch: elpa/buttercup
commit ed649d722aeb20683705a2378438833efd96e271
Merge: 54696b0 d5c9a19
Author: Jorgen Schäfer <Jorgen.Schaefer@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #76 from DamienCassou/make-buttercup--with-cleanup-public
    
    Make --with-cleanup public so spies can be used without specs
---
 buttercup.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/buttercup.el b/buttercup.el
index 5c6c55a..fb8564d 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -564,7 +564,7 @@ KEYWORD can have one of the following values:
 
 (defvar buttercup--cleanup-functions nil)
 
-(defmacro buttercup--with-cleanup (&rest body)
+(defmacro buttercup-with-cleanup (&rest body)
   `(let ((buttercup--cleanup-functions nil))
      (unwind-protect (progn ,@body)
        (dolist (fun buttercup--cleanup-functions)
@@ -765,7 +765,7 @@ Do not change the global value.")
 
 (defun buttercup--run-spec (spec)
   (funcall buttercup-reporter 'spec-started spec)
-  (buttercup--with-cleanup
+  (buttercup-with-cleanup
    (dolist (f buttercup--before-each)
      (buttercup--update-with-funcall spec f))
    (buttercup--update-with-funcall spec (buttercup-spec-function spec))



reply via email to

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