From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rolf Ade Newsgroups: gmane.emacs.bugs Subject: bug#36867: 26.2; gamegrid-add-scrore miss lower-is-better flag Date: Wed, 31 Jul 2019 02:13:18 +0200 Message-ID: <87a7cvukm9.fsf@pointsman.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="163549"; mail-complaints-to="usenet@blaine.gmane.org" To: 36867@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 31 02:14:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hscG2-000gO7-7b for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Jul 2019 02:14:18 +0200 Original-Received: from localhost ([::1]:36916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hscG0-00006A-Jo for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jul 2019 20:14:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35095) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hscFq-00005g-Hl for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 20:14:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hscFn-0004jB-Vb for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 20:14:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42574) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hscFm-0004i9-CQ for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 20:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hscFm-0002Ue-6C for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 20:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rolf Ade Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jul 2019 00:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36867 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15645320149542 (code B ref -1); Wed, 31 Jul 2019 00:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Jul 2019 00:13:34 +0000 Original-Received: from localhost ([127.0.0.1]:51395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hscFI-0002To-3B for submit@debbugs.gnu.org; Tue, 30 Jul 2019 20:13:34 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hscFF-0002Tg-KQ for submit@debbugs.gnu.org; Tue, 30 Jul 2019 20:13:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32987) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hscFE-0008S7-KV for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 20:13:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hscFC-0003yZ-4H for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 20:13:27 -0400 Original-Received: from mxout5.interscholz.de ([2a01:1e8:8:141::72]:37340) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hscFB-0003v7-AD for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2019 20:13:26 -0400 Original-Received: from localhost (mxout5 [127.0.0.1]) by mxout5.interscholz.de (Postfix) with ESMTP id 7B7B525D89 for ; Wed, 31 Jul 2019 02:13:13 +0200 (CEST) X-Virus-Scanned: interscholz amavisd-new at mxout5.interscholz.de Original-Received: from server.web01.interscholz.net (server.web01.interscholz.net [85.236.196.138]) by mxout5.interscholz.de (Postfix) with ESMTP id AB0EB25CC3 for ; Wed, 31 Jul 2019 02:13:11 +0200 (CEST) Original-Received: from pointsman2 (p5B317A9C.dip0.t-ipconnect.de [91.49.122.156]) by server.web01.interscholz.net (Postfix) with ESMTPSA id 729B1340371; Wed, 31 Jul 2019 02:13:18 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164143 Archived-At: The function gamegrid-add-scrore is handy for games developer; they get a high-score management system with one call. That includes a threshold for the number of entries in the high-score file. A consequence of that is, that an entry has be removed from the list if a new, better one must be inserted. In this situation, gamegrid-add-scrore currently always removes the "lowest" result. This is good and well for "more is better" games. But is wrong for "faster is better" games. An example: https://github.com/calancha/Minesweeper This feature omission is on lisp level. The in the emacs sources included tool update-game-score (which is used by gamegrid, if it is available) support reverse opperation.