summaryrefslogtreecommitdiff
path: root/lisp/play
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2009-10-06 11:15:01 +0000
committerJuanma Barranquero <lekktu@gmail.com>2009-10-06 11:15:01 +0000
commitbde79dc0588421062674c97a8c75e529aff4c762 (patch)
tree15ec3a0129988228f9469de541cda00e829abc29 /lisp/play
parent353f2607c292d0b0f28e10e1b362188928c40542 (diff)
downloademacs-bde79dc0588421062674c97a8c75e529aff4c762.tar.gz
* play/animate.el (animate-string): For good effect, make sure
`indent-tabs-mode' and `show-trailing-whitespace' are nil. * play/animate.el (animate-sequence, animate-birthday-present): * misc.el (butterfly): Don't set `indent-tabs-mode'.
Diffstat (limited to 'lisp/play')
-rw-r--r--lisp/play/animate.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/play/animate.el b/lisp/play/animate.el
index cd4183ba66e..d31fa0f7eb7 100644
--- a/lisp/play/animate.el
+++ b/lisp/play/animate.el
@@ -105,7 +105,11 @@ in the current window."
(or hpos
;; HPOS unspecified, so compute
;; it so as to center the string.
- (max 0 (/ (- (window-width) (length string)) 2))))))
+ (max 0 (/ (- (window-width) (length string)) 2)))))
+ (show-trailing-whitespace nil)
+ ;; Make sure indentation does not use tabs.
+ ;; They would confuse things.
+ (indent-tabs-mode nil))
(dotimes (i animate-n-steps)
;; Bind buffer-undo-list so it will be unchanged when we are done.
;; (We're going to undo all our changes anyway.)
@@ -145,7 +149,6 @@ Strings will be separated from each other by SPACE lines."
(switch-to-buffer (get-buffer-create "*Animation*"))
(erase-buffer)
(sit-for 0)
- (setq indent-tabs-mode nil)
(while list-of-strings
(animate-string (car list-of-strings) vpos)
(setq vpos (+ vpos space 1))
@@ -162,9 +165,6 @@ You can specify the one's name by NAME; the default value is \"Sarah\"."
(erase-buffer)
;; Display the empty buffer.
(sit-for 0)
- ;; Make sure indentation does not use tabs.
- ;; They would confuse things.
- (setq indent-tabs-mode nil)
(animate-string "Happy Birthday," 6)
(animate-string (format "%s" name) 7)