From: Glenn Morris <rgm@gnu.org>
To: Sven Joachim <svenjoac@gmx.de>
Cc: 13500@debbugs.gnu.org
Subject: bug#13500: 24.2.92; tetris score grows after ending the game
Date: Sat, 19 Jan 2013 15:11:28 -0500 [thread overview]
Message-ID: <dxy5fphr0v.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87mww5cac3.fsf@turtle.gmx.de> (Sven Joachim's message of "Sat, 19 Jan 2013 19:10:52 +0100")
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))
next prev parent reply other threads:[~2013-01-19 20:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-19 18:10 bug#13500: 24.2.92; tetris score grows after ending the game Sven Joachim
2013-01-19 20:11 ` Glenn Morris [this message]
2013-01-19 21:00 ` Sven Joachim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dxy5fphr0v.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=13500@debbugs.gnu.org \
--cc=svenjoac@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.