COMMIT
SUPERSEDES <u0epediy.fsf(a)smtprelay.t-online.de>
This has been reviewed by Glynn.
Adrian
packages ChangeLog patch:
Diff command: cvs -q diff -U 0
Files affected: xemacs-packages/games/ChangeLog
Index: xemacs-packages/games/ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/games/ChangeLog,v
retrieving revision 1.16
diff -u -U0 -r1.16 ChangeLog
--- xemacs-packages/games/ChangeLog 7 Nov 2005 21:44:41 -0000 1.16
+++ xemacs-packages/games/ChangeLog 12 Nov 2005 00:27:12 -0000
@@ -0,0 +1,9 @@
+2005-11-12 Adrian Aichner <adrian(a)xemacs.org>
+
+ * Makefile (MAINTAINER): Update email address.
+ * gamegrid.el: Ditto.
+ * tetris.el: Ditto.
+ * gamegrid.el (gamegrid-add-score): Fix loss of scores with
+ non-octal digits.
+ * tetris.el (tetris-score-file): Default to user-init-directory.
+
@@ -8,7 +16,0 @@
-
-2005-11-06 Adrian Aichner <adrian(a)xemacs.org>
-
- * gamegrid.el (gamegrid-add-score): Fix loss of scores with
- non-octal digits.
- * tetris.el (tetris-score-file): Default to (temp-directory), not
- "/tmp".
packages source patch:
Diff command: cvs -f -z3 -q diff -u -w -N
Files affected: xemacs-packages/games/tetris.el xemacs-packages/games/gamegrid.el
xemacs-packages/games/Makefile
Index: xemacs-packages/games/Makefile
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/games/Makefile,v
retrieving revision 1.24
diff -u -w -r1.24 Makefile
--- xemacs-packages/games/Makefile 7 Nov 2005 21:44:41 -0000 1.24
+++ xemacs-packages/games/Makefile 12 Nov 2005 00:21:28 -0000
@@ -21,7 +21,7 @@
VERSION = 1.16
AUTHOR_VERSION = 1.04
-MAINTAINER = Glynn Clements <glynn.clements(a)virgin.net>
+MAINTAINER = Glynn Clements <glynn(a)gclements.plus.com>
PACKAGE = xemacs-base
PACKAGE = games
PKG_TYPE = regular
Index: xemacs-packages/games/gamegrid.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/games/gamegrid.el,v
retrieving revision 1.5
diff -u -w -r1.5 gamegrid.el
--- xemacs-packages/games/gamegrid.el 14 Jun 2003 18:48:26 -0000 1.5
+++ xemacs-packages/games/gamegrid.el 12 Nov 2005 00:21:28 -0000
@@ -2,7 +2,7 @@
;; Copyright (C) 1998 Free Software Foundation, Inc.
-;; Author: Glynn Clements <glynn.clements(a)virgin.net>
+;; Author: Glynn Clements <glynn(a)gclements.plus.com>
;; Version: 1.03
;; Created: 1997-08-13
;; Keywords: games
@@ -429,7 +429,13 @@
((boundp 'user-mail-address)
user-mail-address)
(t ""))))
- (sort-numeric-fields 1 (point-min) (point-max))
+ ;; Prefixing numbers 0's will make `sort-numeric-fields' sort with
+ ;; sort-numeric-base of 8.
+ ;; One workaround is to use `sort-regexp-fields-numerically',
+ ;; on the number, excluding leading 0's.
+ (sort-regexp-fields-numerically
+ nil
+ "^[0]*\\([1-9][0-9]+\\)\\>.+$" "\\1" (point-min) (point-max))
(reverse-region (point-min) (point-max))
(goto-line (1+ gamegrid-score-file-length))
(delete-region (point) (point-max))
Index: xemacs-packages/games/tetris.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/games/tetris.el,v
retrieving revision 1.4
diff -u -w -r1.4 tetris.el
--- xemacs-packages/games/tetris.el 14 Jun 2003 18:48:27 -0000 1.4
+++ xemacs-packages/games/tetris.el 12 Nov 2005 00:21:28 -0000
@@ -2,7 +2,7 @@
;; Copyright (C) 1998 Free Software Foundation, Inc.
-;; Author: Glynn Clements <glynn.clements(a)virgin.net>
+;; Author: Glynn Clements <glynn(a)gclements.plus.com>
;; Version: 2.03
;; Created: 1997-08-13
;; Keywords: games
@@ -136,7 +136,8 @@
(defvar tetris-score-y (+ tetris-next-y 6)
"Y position of score")
-(defvar tetris-score-file "/tmp/tetris-scores"
+(defvar tetris-score-file
+ (expand-file-name "tetris-scores" user-init-directory)
;; anybody with a well-connected server want to host this?
;(defvar tetris-score-file "/anonymous@ftp.pgt.com:/pub/cgw/tetris-scores"
"File for holding high scores")
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/