[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: gamegrid-add-score fails]
From: |
Jesper Harder |
Subject: |
Re: address@hidden: gamegrid-add-score fails] |
Date: |
Thu, 27 Feb 2003 02:42:07 +0100 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 |
Colin Walters <address@hidden> writes:
> On Wed, 2003-02-26 at 11:04, Oliver Scholz wrote:
>
>> It fails on my Debian GNU/Linux. "update-game-score" is setuid to the
>> user "games" here and may not write to my home directory.
>
> Ah, ok, right. Sorry for the bad patch. Your solution works then.
I now get this backtrace with the lates Emacs from CVS:
(gamegrid-add-score "foo" 10)
=>
Debugger entered--Lisp error: (error "/home/harder/.emacs.d/games/foo: no such
directory")
signal(error ("/home/harder/.emacs.d/games/foo: no such directory"))
error("%s: no such directory" "/home/harder/.emacs.d/games/foo")
basic-save-buffer-2()
basic-save-buffer-1()
basic-save-buffer()
save-buffer()
gamegrid-add-score-insecure("foo" 10 "~/.emacs.d/games")
gamegrid-add-score-with-update-game-score("foo" 10)
gamegrid-add-score("foo" 10)
eval((gamegrid-add-score "foo" 10))
eval-last-sexp-1(t)
eval-last-sexp(t)
eval-print-last-sexp()
call-interactively(eval-print-last-sexp)
Also, if you call `game-grid-add-score' with an absolute filename
(which is the way the function should be called in Emacs 21.2), it
works the first time:
(gamegrid-add-score "/tmp/bar" 11)
=> nil ;; this works.
but fails on subsequent calls:
(gamegrid-add-score "/tmp/bar" 12)
=>
Debugger entered--Lisp error: (error "Failed to update game score file")
signal(error ("Failed to update game score file"))
error("Failed to update game score file")
gamegrid-add-score-with-update-game-score-1("/tmp/bar" 12)
gamegrid-add-score-with-update-game-score("/tmp/bar" 12)
gamegrid-add-score("/tmp/bar" 12)
eval((gamegrid-add-score "/tmp/bar" 12))
eval-last-sexp-1(t)
eval-last-sexp(t)
eval-print-last-sexp()
call-interactively(eval-print-last-sexp)