]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix for gamegrid-add-score-with-update-game-score-1.
authorStephen Berman <stephen.berman@gmx.net>
Sat, 17 Nov 2012 07:00:35 +0000 (15:00 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 17 Nov 2012 07:00:35 +0000 (15:00 +0800)
* lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score-1):
Don't signal an error with a score that is too low to add to the list
of top scores.

Fixes: debbugs:12779
lisp/ChangeLog
lisp/play/gamegrid.el

index 72192bc79e5b84ca8d5718891d4c645759c402f0..8ac744bb98030de0b188e53aad2d0d3a7ce318b4 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-17  Stephen Berman  <stephen.berman@gmx.net>
+
+       * play/gamegrid.el (gamegrid-add-score-with-update-game-score-1):
+       Don't signal an error with a score that is too low to add to the
+       list of top scores. (Bug#12779)
+
 2012-11-17  Chong Yidong  <cyd@gnu.org>
 
        * help-mode.el (help-xref-interned): End on point-min (Bug#12737).
index f3e277e338cde89604ce3b0b926ce30423ec557b..a3ea4af465109d7e08f96c7a69a2e964b937d0a8 100644 (file)
@@ -560,7 +560,7 @@ FILE is created there."
         (goto-char (point-min))
         (search-forward (concat (int-to-string score)
                                " " (user-login-name) " "
-                               marker-string))
+                               marker-string) nil t)
         (beginning-of-line)))))
 
 (defun gamegrid-add-score-insecure (file score &optional directory)