Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the [email protected] mailing list.
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
mpuz occasionally locks up. That is a nuisance.
Something like
(require 'mpuz)
(dotimes (i 50000) (mpuz-random-puzzle))
almost never terminates because of a bug in selecting the appropriate
numbers. I am checking in the following fix:
--- mpuz.el 28 Jan 2007 00:19:46 +0100 1.35
+++ mpuz.el 04 Feb 2007 18:10:05 +0100
@@ -262,8 +262,9 @@
(fillarray mpuz-board nil) ; erase the board
;; A,B,C,D & E, are the five rows of our multiplication.
;; Choose random values, discarding cases with leading zeros in C or D.
- (let* ((A (+ 112 (random 888)))
- (min (1+ (/ 1000 A)))
+ (let* ((A (if mpuz-allow-double-multiplicator (+ 112 (random 888))
+ (+ 125 (random 875))))
+ (min (1+ (/ 999 A)))
(B1 (+ min (random (- 10 min))))
B2 C D E)
(while (if (= B1 (setq B2 (+ min (random (- 10 min)))))
In GNU Emacs 22.0.93.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
of 2007-01-28 on lola
X server distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure '--prefix=/usr/local/emacs-21' '--with-gtk'
'--without-toolkit-scroll-bars''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
shell-dirtrack-mode: t
TeX-PDF-mode: t
desktop-save-mode: t
minibuffer-electric-default-mode: t
iswitchb-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-decoding-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t
Recent input:
p u z <tab> <backspace> z l e ) <return> <escape> :
( d o t i m e s SPC i SPC <backspace> <backspace> (
i SPC 5 0 0 0 0 ) SPC ( m p u z - r a n d o m - p u
z z l e ) ) <return> C-M-x <escape> : <up> <return>
<escape> : <up> <return> M-x b u g - e m a <tab> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> r e p o r t - b u g <return> <backspace>
<backspace> <backspace> e m <tab> <return>
Recent messages:
Saving /home/dak/.newsrc.eld...
Saving file /home/dak/.newsrc.eld...
Wrote /home/dak/.newsrc.eld
Saving /home/dak/.newsrc.eld...done
Mark saved where search started
nil
Quit
mpuz-random-puzzle
nil [2 times]
Loading emacsbug...done
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug