branch: elpa/ws-butler
commit 5aa9a2c37e22b22a26f72ff4d64cb2598d8483f6
Author: Sean Whitton <spwhit...@spwhitton.name>
Commit: Sean Whitton <spwhit...@spwhitton.name>

    ws-butler-with-save: Use bound-and-true-p
---
 ws-butler.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ws-butler.el b/ws-butler.el
index 6d06e8d12d..08445c54a7 100644
--- a/ws-butler.el
+++ b/ws-butler.el
@@ -98,8 +98,7 @@ trimmed.  The default is to trim everywhere."
   "Like `save-excursion' and `save-restriction', but only once.
 If within the scope of another use of this macro, just evaluate FORMS."
   (declare (debug (body)))
-  `(if (and (boundp 'ws-butler-saved)
-            ws-butler-saved)
+  `(if (bound-and-true-p ws-butler-saved)
        (progn
          ,@forms)
      (let ((ws-butler-saved t))

Reply via email to