X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=spray.el;h=c0d78085f2b36b214ec45e92481e1e3eda92189f;hb=128c54ad6c001fd85d19acaaa95af183873d7160;hp=7dbd65a583e8ae361729e6e03d2b3cafa2419eee;hpb=c52fc16e72693d5acf9df0aa6a26827862a1fe14;p=spray diff --git a/spray.el b/spray.el index 7dbd65a..c0d7808 100644 --- a/spray.el +++ b/spray.el @@ -247,11 +247,11 @@ decreasing by one for each subsequent word." (len (+ (skip-chars-forward "^\s\t\n—") (skip-chars-forward "—"))) (end (point)) (accent (+ beg (cl-case len - ((1) 1) - ((2 3 4 5) 2) - ((6 7 8 9) 3) - ((10 11 12 13) 4) - (t 5))))) + ((1) 1) + ((2 3 4 5) 2) + ((6 7 8 9) 3) + ((10 11 12 13) 4) + (t 5))))) ;; this fairly obfuscated, using magic numbers to store state ;; it would be nice to sometime patch this so it is more readable. ;; for greater than 9 length, we display for twice as long @@ -274,9 +274,7 @@ decreasing by one for each subsequent word." (cond ((not (zerop spray--initial-delay)) (setq spray--initial-delay (1- spray--initial-delay))) ((not (zerop spray--delay)) - (setq spray--delay (1- spray--delay)) - (when (= spray--delay 2) - (narrow-to-region (point) (point)))) + (setq spray--delay (1- spray--delay))) (t (widen) (if (eobp)