Call (spray-quit) instead of (spray-mode -1)
[spray] / 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)))