diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/play/gamegrid.el | 14 |
2 files changed, 11 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 671bd6bdf3f..eff5eadb614 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-02-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * play/gamegrid.el (gamegrid-add-score-with-update-game-score): | ||
| 4 | Fix directory creation in fallback case. | ||
| 5 | |||
| 1 | 2013-02-04 Thierry Volpiatto <thierry.volpiatto@gmail.com> | 6 | 2013-02-04 Thierry Volpiatto <thierry.volpiatto@gmail.com> |
| 2 | 7 | ||
| 3 | * vc/vc.el (vc-next-action): Fix inf-loop (bug#13610). | 8 | * vc/vc.el (vc-next-action): Fix inf-loop (bug#13610). |
diff --git a/lisp/play/gamegrid.el b/lisp/play/gamegrid.el index eefe1e22599..91192517f7c 100644 --- a/lisp/play/gamegrid.el +++ b/lisp/play/gamegrid.el | |||
| @@ -505,15 +505,13 @@ FILE is created there." | |||
| 505 | (make-directory gamegrid-user-score-file-directory t)) | 505 | (make-directory gamegrid-user-score-file-directory t)) |
| 506 | (gamegrid-add-score-insecure file score | 506 | (gamegrid-add-score-insecure file score |
| 507 | gamegrid-user-score-file-directory)) | 507 | gamegrid-user-score-file-directory)) |
| 508 | (t (let ((f (expand-file-name | 508 | (t |
| 509 | gamegrid-user-score-file-directory))) | 509 | (unless (file-exists-p |
| 510 | (when (file-writable-p f) | 510 | (directory-file-name gamegrid-user-score-file-directory)) |
| 511 | (unless (eq (car-safe (file-attributes f)) | 511 | (make-directory gamegrid-user-score-file-directory t)) |
| 512 | t) | 512 | (let ((f (expand-file-name file gamegrid-user-score-file-directory))) |
| 513 | (make-directory f)) | ||
| 514 | (setq f (expand-file-name file f)) | ||
| 515 | (unless (file-exists-p f) | 513 | (unless (file-exists-p f) |
| 516 | (write-region "" nil f nil 'silent nil 'excl))) | 514 | (write-region "" nil f nil 'silent nil 'excl)) |
| 517 | (gamegrid-add-score-with-update-game-score-1 file f score)))))) | 515 | (gamegrid-add-score-with-update-game-score-1 file f score)))))) |
| 518 | 516 | ||
| 519 | (defun gamegrid-add-score-with-update-game-score-1 (file target score) | 517 | (defun gamegrid-add-score-with-update-game-score-1 (file target score) |