|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#20554: closed (Fwd: Minor bug in dunnet) |
Date: | Tue, 12 May 2015 06:48:02 +0000 |
Your message dated Tue, 12 May 2015 02:47:03 -0400 with message-id <address@hidden> and subject line Re: bug#20554: Fwd: Minor bug in dunnet has caused the debbugs.gnu.org bug report #20554, regarding Fwd: Minor bug in dunnet to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 20554: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20554 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: Fwd: Minor bug in dunnet Date: Tue, 12 May 2015 11:02:45 +0800 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)
--- End Message ---
--- Begin Message ---Subject: Re: bug#20554: Fwd: Minor bug in dunnet Date: Tue, 12 May 2015 02:47:03 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Version: 25.1 Thanks; fixed.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |