all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Minor bug in dunnet
@ 2015-05-11 16:48 Lu Wang
  2015-05-12  3:02 ` bug#20554: Fwd: " Lu Wang
  2015-05-12 14:11 ` Aurélien Aptel
  0 siblings, 2 replies; 5+ messages in thread
From: Lu Wang @ 2015-05-11 16:48 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]

Hello,

  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)

[-- Attachment #2: Type: text/html, Size: 1175 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#20554: Fwd: Minor bug in dunnet
  2015-05-11 16:48 Minor bug in dunnet Lu Wang
@ 2015-05-12  3:02 ` Lu Wang
  2015-05-12  6:47   ` Glenn Morris
  2015-05-12 14:11 ` Aurélien Aptel
  1 sibling, 1 reply; 5+ messages in thread
From: Lu Wang @ 2015-05-12  3:02 UTC (permalink / raw)
  To: 20554

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

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)

[-- Attachment #2: Type: text/html, Size: 1308 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#20554: Fwd: Minor bug in dunnet
  2015-05-12  3:02 ` bug#20554: Fwd: " Lu Wang
@ 2015-05-12  6:47   ` Glenn Morris
  0 siblings, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2015-05-12  6:47 UTC (permalink / raw)
  To: 20554-done

Version: 25.1

Thanks; fixed.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Minor bug in dunnet
  2015-05-11 16:48 Minor bug in dunnet Lu Wang
  2015-05-12  3:02 ` bug#20554: Fwd: " Lu Wang
@ 2015-05-12 14:11 ` Aurélien Aptel
  2015-05-12 14:15   ` Lu Wang
  1 sibling, 1 reply; 5+ messages in thread
From: Aurélien Aptel @ 2015-05-12 14:11 UTC (permalink / raw)
  To: Lu Wang; +Cc: Emacs development discussions

This should go in the emacs bugtracker, debbugs.

http://debbugs.gnu.org/
http://debbugs.gnu.org/cgi/pkgreport.cgi?package=emacs



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Minor bug in dunnet
  2015-05-12 14:11 ` Aurélien Aptel
@ 2015-05-12 14:15   ` Lu Wang
  0 siblings, 0 replies; 5+ messages in thread
From: Lu Wang @ 2015-05-12 14:15 UTC (permalink / raw)
  To: Aurélien Aptel; +Cc: Emacs development discussions

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

Sorry for the mistake.
Yes I have sent it to the correct list, and it has been fixed.

regards,
- Lu
 2015-5-12 下午10:11于 "Aurélien Aptel" <aurelien.aptel+emacs@gmail.com>写道:

> This should go in the emacs bugtracker, debbugs.
>
> http://debbugs.gnu.org/
> http://debbugs.gnu.org/cgi/pkgreport.cgi?package=emacs
>

[-- Attachment #2: Type: text/html, Size: 769 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-12 14:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-11 16:48 Minor bug in dunnet Lu Wang
2015-05-12  3:02 ` bug#20554: Fwd: " Lu Wang
2015-05-12  6:47   ` Glenn Morris
2015-05-12 14:11 ` Aurélien Aptel
2015-05-12 14:15   ` Lu Wang

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.