aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-03-03 14:13:14 +0000
committerRichard M. Stallman2002-03-03 14:13:14 +0000
commit35ce93ebfd3e6af66658687773a00846b35ac419 (patch)
tree6a1511e7cf5d36fa6f7fbf914bac3e30d03113af
parent7eb7c54447d17dfd72981ade45ccf68a401b3f8e (diff)
downloademacs-35ce93ebfd3e6af66658687773a00846b35ac419.tar.gz
emacs-35ce93ebfd3e6af66658687773a00846b35ac419.zip
(snake-score-file): Put in home dir, not in /tmp.
-rw-r--r--lisp/play/snake.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/play/snake.el b/lisp/play/snake.el
index 2367705a68f..d99d342906b 100644
--- a/lisp/play/snake.el
+++ b/lisp/play/snake.el
@@ -82,7 +82,10 @@
82(defvar snake-score-y snake-height 82(defvar snake-score-y snake-height
83 "Y position of score.") 83 "Y position of score.")
84 84
85(defvar snake-score-file (concat temporary-file-directory "snake-scores") 85;; It is not safe to put this in /tmp.
86;; Someone could make a symlink in /tmp
87;; pointing to a file you don't want to clobber.
88(defvar snake-score-file "~/.snake-scores")
86 "File for holding high scores.") 89 "File for holding high scores.")
87 90
88;; ;;;;;;;;;;;;; display options ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 91;; ;;;;;;;;;;;;; display options ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;