Call (spray-quit) instead of (spray-mode -1)
authorsyl20bnr <sylvain.benner@gmail.com>
Sun, 10 May 2015 04:33:51 +0000 (00:33 -0400)
committersyl20bnr <sylvain.benner@gmail.com>
Sun, 10 May 2015 04:33:51 +0000 (00:33 -0400)
This make it easier to advice spray when it quits

spray.el

index 90cbdf3531e742595a40fc0ead5a7651cd222098..8fa8bce4ddfacf51be450481aabb8360936638c3 100644 (file)
--- a/spray.el
+++ b/spray.el
@@ -270,7 +270,7 @@ decreasing by one for each subsequent word."
         (t
          (widen)
          (if (eobp)
-             (spray-mode -1)
+             (spray-quit)
            (when (not (zerop spray--first-words))
              (setq spray--initial-delay spray--first-words)
              (setq spray--first-words (1- spray--first-words)))