GNU bug report logs -
#13500
24.2.92; tetris score grows after ending the game
Previous Next
Reported by: Sven Joachim <svenjoac <at> gmx.de>
Date: Sat, 19 Jan 2013 18:12:02 UTC
Severity: normal
Tags: moreinfo, unreproducible
Found in version 24.2.92
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Sven Joachim wrote:
> Start tetris with M-x tetris and keep pressing SPC until the playing
> area is filled. Now Emacs writes the score to
> ~/.emacs.d/games/tetris-scores, but not only once but several times per
> second, increasing the score each time as if the game is still going on
> (press C-g to stop that).
I can't reproduce this, though I did find an (old) bug in
gamegrid-add-score-with-update-game-score.
The fact that your scores get written to ~/.emacs.d/games means that
/usr/local/libexec/emacs/24.2.92/arch/update-game-score
is not setuid. If I set it non-setuid, and do
rm- rf ~/.emacs.d/games/
then Emacs fails to write score files due to a
gamegrid-add-score-with-update-game-score bug. If I fix that bug (see
below), or mkdir ~/.emacs.d/games first, then it works fine.
What happens if you rm ~/.emacs.d/games/tetris-scores?
*** lisp/play/gamegrid.el 2013-01-01 09:11:05 +0000
--- lisp/play/gamegrid.el 2013-01-19 20:02:52 +0000
***************
*** 507,513 ****
gamegrid-user-score-file-directory))
(t (let ((f (expand-file-name
gamegrid-user-score-file-directory)))
! (when (file-writable-p f)
(unless (eq (car-safe (file-attributes f))
t)
(make-directory f))
--- 507,513 ----
gamegrid-user-score-file-directory))
(t (let ((f (expand-file-name
gamegrid-user-score-file-directory)))
! (when (file-writable-p (directory-file-name f))
(unless (eq (car-safe (file-attributes f))
t)
(make-directory f))
This bug report was last modified 11 years and 111 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.