From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dieter Deyke Newsgroups: gmane.emacs.devel Subject: [ELPA] Patch to package: sokoban Date: Thu, 25 May 2017 13:38:16 +0200 Message-ID: <87y3tlupxz.fsf@deyke2> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1495723470 8715 195.159.176.226 (25 May 2017 14:44:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 May 2017 14:44:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 25 16:44:21 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDtzw-0001yZ-A2 for ged-emacs-devel@m.gmane.org; Thu, 25 May 2017 16:44:20 +0200 Original-Received: from localhost ([::1]:60374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDu00-00053j-8X for ged-emacs-devel@m.gmane.org; Thu, 25 May 2017 10:44:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDr5z-0001pG-Rj for emacs-devel@gnu.org; Thu, 25 May 2017 07:38:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDr5v-0002If-U3 for emacs-devel@gnu.org; Thu, 25 May 2017 07:38:23 -0400 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:38415) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDr5v-0002I7-NN for emacs-devel@gnu.org; Thu, 25 May 2017 07:38:19 -0400 Original-Received: by mail-wm0-x22b.google.com with SMTP id e127so100558994wmg.1 for ; Thu, 25 May 2017 04:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=U21gPOHfE5iIwAd/JPDCHZ76jVdfOezzh9OFEBg69ys=; b=bIYhRMpA30ELZVUIIGHqDSqzdpKx3iZ9dnkILfzvS8L2USPkEPly3ipnNKLj1amMjQ ZuEuvJmYxaUgmGhkf+FQRCyq/OqmgWmh601PCA5qr1swXNiRjojdAjjXVdcS/DD9+VCv mBEkZpHtuJIgJQ8/TsChowYUR772Mekfzxw8438iiQ4u5tzgfcdhxlgI9UbfgS6JpoME exfC7kRPTO7tkNIFgtT6I6SxTp2Wm+AWDkTJsTt9yNC/3moNEMLWC8nMCSKzzUao8tUe GYVZv/9J8X9oDQ21TERCcpJ/I7HKF3aVpHpczAo6Qi2Rxb/s4fdiwF7zN5zkGxmXbI3k LPGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=U21gPOHfE5iIwAd/JPDCHZ76jVdfOezzh9OFEBg69ys=; b=c83Rz3xHA3kkcjA0BNTBdnowBaKTb2ij7HXedhWoW2Q754AkIxqXu/abkBbA92CEM9 pVqgp2KFjGq8lOHQA8+iZ4c4RfQI9KGXmBamQwfmx4ig6uNWIvlH2P5DA0tbK7TpZx60 OYmAJqAcwNCGQonqEooRJhh5H2YLsfsxfbhSnjXRfvE5fT5wzPPsH7k0icaqVjCd7xgE f1Ocbmvb8CjI+tJ2HqcoF92dTF6LIXjAbmTpZDFCFa5uc8v5CalTaPhBPYhpWqut01nF Pn7jOG3SZWc53QG0dQynH9DM0zrcDlIlzu9uHrBMN4u3d56YU5c+T8FeUmEkaCLxabUL 0Phg== X-Gm-Message-State: AODbwcBgq1B+w0CLT+D6XllJh3h9VGzLHxoFYffl5GZHXyZkPstn347j yDYu7Fpmx2gwaDy/ X-Received: by 10.28.157.14 with SMTP id g14mr10053428wme.114.1495712298054; Thu, 25 May 2017 04:38:18 -0700 (PDT) Original-Received: from deyke2.fritz.box (p5B12D1A3.dip0.t-ipconnect.de. [91.18.209.163]) by smtp.gmail.com with ESMTPSA id 72sm9416021wmx.23.2017.05.25.04.38.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 May 2017 04:38:17 -0700 (PDT) Original-Received: from [127.0.0.1] (helo=deyke2.localdomain) by deyke2.fritz.box with esmtp (Exim 4.89) (envelope-from ) id 1dDr5s-0001vs-76 for emacs-devel@gnu.org; Thu, 25 May 2017 13:38:16 +0200 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22b X-Mailman-Approved-At: Thu, 25 May 2017 10:44:16 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215197 Archived-At: >From 96ca5427cd2b950008a55bb5586702d40f5c078e Mon Sep 17 00:00:00 2001 From: Dieter Deyke Date: Thu, 25 May 2017 13:27:08 +0200 Subject: [PATCH] fix off-by-1 error in sokoban-draw-score which caused on-screen score to be truncated --- packages/sokoban/sokoban.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/sokoban/sokoban.el b/packages/sokoban/sokoban.el index 6e8bee25c..ae6f845cf 100644 --- a/packages/sokoban/sokoban.el +++ b/packages/sokoban/sokoban.el @@ -1,9 +1,9 @@ ;;; sokoban.el --- Implementation of Sokoban for Emacs. -;; Copyright (C) 1998, 2013 Free Software Foundation, Inc. +;; Copyright (C) 1998, 2013, 2017 Free Software Foundation, Inc. ;; Author: Glynn Clements -;; Version: 1.4 +;; Version: 1.4.1 ;; Created: 1997-09-11 ;; Keywords: games ;; Package-Type: multi @@ -41,6 +41,8 @@ ;; Modified: 1998-06-04, added `undo' feature ;; added number of blocks done/total to score and modeline ;; Modified: 2003-06-14, update email address, remove URL +;; Modified: 2017-05-25, fix off-by-1 error in sokoban-draw-score which +;; caused on-screen score to be truncated ;; Tested with XEmacs 20.3/4/5 and Emacs 19.34 @@ -517,7 +519,7 @@ static char * player_xpm[] = { (format "Done: %d/%d" sokoban-done sokoban-targets)))) - (dotimes (y 2) + (dotimes (y 3) (let* ((string (aref strings y)) (len (length string))) (dotimes (x len) -- 2.11.0 -- Dieter Deyke mailto:dieter.deyke@gmail.com Get my Gnupg key: gpg --keyserver keys.gnupg.net --recv-keys B116EA20