From debbugs-submit-bounces@debbugs.gnu.org Mon May 11 23:18:53 2015 Received: (at submit) by debbugs.gnu.org; 12 May 2015 03:18:53 +0000 Received: from localhost ([127.0.0.1]:41425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys0ia-0004X8-61 for submit@debbugs.gnu.org; Mon, 11 May 2015 23:18:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40499) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys0TS-0004AP-6e for submit@debbugs.gnu.org; Mon, 11 May 2015 23:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys0TL-0006SF-Th for submit@debbugs.gnu.org; Mon, 11 May 2015 23:03:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys0TL-0006Rw-RI for submit@debbugs.gnu.org; Mon, 11 May 2015 23:03:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys0TL-0001It-1E for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 23:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys0TK-0006R9-4s for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 23:03:06 -0400 Received: from mail-ie0-x22a.google.com ([2607:f8b0:4001:c03::22a]:36317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys0TJ-0006R1-W4 for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 23:03:06 -0400 Received: by iecmd7 with SMTP id md7so47822625iec.3 for ; Mon, 11 May 2015 20:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=4g0zQai4Qbnc0qDeDVTiWLZR7ScNYa3id6KP0oY6Uv4=; b=suOcJ7jWXYFhCRn2gpneG1kj7vaLVD+iThpuZwNtfXUTvmUTW8ArxqSmj2QBiXN48y GrI5DXKTgR3gtjj6zL3CmPdVyXZ3U23817GgB2nmWFC15PpjiUNzvJpj9543mDUST0zO /wPeiBaJaDrI7HZaqVdddGD7WCug/ly8qQbc2XiMaGMwjRACIP/HNGqpfjimMIUlsd6/ /oF4/qr8t3aSPIyE0D6NS+TIbmukO4BMDXzmQM4EX1z7PAU8uIBpR1P2gkUuGAWAhpnp 9BggZTNx5MzyVwjTaUBAz5DV3+H8EBPBj2GQisrkyGwTj39bYF9pjkXksSZ/AaM3p/w6 Z/eg== X-Received: by 10.50.4.66 with SMTP id i2mr5855126igi.40.1431399785449; Mon, 11 May 2015 20:03:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.135.213 with HTTP; Mon, 11 May 2015 20:02:45 -0700 (PDT) In-Reply-To: References: From: Lu Wang Date: Tue, 12 May 2015 11:02:45 +0800 Message-ID: Subject: Fwd: Minor bug in dunnet To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11c2a6f6be67080515d9bbde X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 11 May 2015 23:18:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11c2a6f6be67080515d9bbde Content-Type: text/plain; charset=UTF-8 Hello, (Sorry I have posted this email to -devel by mistake) It seems to me that in dunnet, the line that extracts the current time is offset by 1. You may try to eval: (substring (current-time-string) 11 19) and (substring (current-time-string) 12 20) While I believe that the game must have once worked with earlier versions of emacs, I'm not sure if (substring) or (current-time-string) has been changed since then. Please find the patch below. Thanks! regards, - Lu Wang ///// diff --git a/lisp/play/dunnet.el b/lisp/play/dunnet.el index 2f4536c..2d1a58f 100644 --- a/dunnet.el +++ b/dunnet.el @@ -3099,7 +3099,7 @@ File not found"))) (defun dun-dos-boot-msg () (sleep-for 3) (dun-mprinc "Current time is ") - (dun-mprincl (substring (current-time-string) 12 20)) + (dun-mprincl (substring (current-time-string) 11 19)) (dun-mprinc "Enter new time: ") (dun-read-line) (if (not dun-batch-mode) --001a11c2a6f6be67080515d9bbde Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

=C2=A0 (Sorry I have posted this email to -devel by mi= stake)

=C2=A0 It seems to me that in dunnet, the line that ext= racts the current time is offset by 1.=C2=A0 You may try to eval:

(s= ubstring (current-time-string) 11 19)
and
(substring (cur= rent-time-string) 12 20)


=C2=A0 While I b= elieve that the game must have once worked with earlier versions of emacs, = I'm not sure if (substring) or (current-time-string) has been changed s= ince then.


=C2=A0 Please find the patch below.

=C2=A0 Thanks!

=C2=A0 regards,
=
=C2=A0 - Lu Wang

/////
diff --git a/lisp/play/dun= net.el b/lisp/play/dunnet.el
index 2f4536c..2d1a58f 100644
--- a/dunn= et.el
+++ b/dunnet.el
@@ -3099,7 +3099,7 @@ File not found")))=C2=A0(defun dun-dos-boot-msg ()
=C2=A0=C2=A0 (sleep-for 3)
=C2=A0= =C2=A0 (dun-mprinc "Current time is ")
-=C2=A0 (dun-mprincl (s= ubstring (current-time-string) 12 20))
+=C2=A0 (dun-mprincl (substring (= current-time-string) 11 19))
=C2=A0=C2=A0 (dun-mprinc "Enter new ti= me: ")
=C2=A0=C2=A0 (dun-read-line)
=C2=A0=C2=A0 (if (not dun-ba= tch-mode)


--001a11c2a6f6be67080515d9bbde-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 02:47:07 2015 Received: (at 20554-done) by debbugs.gnu.org; 12 May 2015 06:47:07 +0000 Received: from localhost ([127.0.0.1]:41481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys3y7-0002K4-1S for submit@debbugs.gnu.org; Tue, 12 May 2015 02:47:07 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:45732 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys3y4-0002Ie-Op for 20554-done@debbugs.gnu.org; Tue, 12 May 2015 02:47:05 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Ys3y4-0003uM-1t; Tue, 12 May 2015 02:47:04 -0400 From: Glenn Morris To: 20554-done@debbugs.gnu.org Subject: Re: bug#20554: Fwd: Minor bug in dunnet References: X-Spook: UFO Becker kibo Plame Dateline InfoSec South Africa X-Ran: hw3L5lH[z"~'09lYTG*weh+auV_b3OKVZfo$Ee2U+}jX\}1(QQMxBB&[&x;nZ!AWu5]6kS X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 12 May 2015 02:47:03 -0400 In-Reply-To: (Lu Wang's message of "Tue, 12 May 2015 11:02:45 +0800") Message-ID: <213832jnrs.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20554-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Version: 25.1 Thanks; fixed. From unknown Mon Aug 18 15:39:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Jun 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator