GNU bug report logs - #27617
26.0.50; cl--random-state initialized to old-style vector

Previous Next

Package: emacs;

Reported by: Christopher Wellons <wellons <at> nullprogram.com>

Date: Sat, 8 Jul 2017 13:40:02 UTC

Severity: normal

Found in version 26.0.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 27617 <at> debbugs.gnu.org (full text, mbox):

From: Christopher Wellons <wellons <at> nullprogram.com>
To: 27617 <at> debbugs.gnu.org
Subject: [PATCH] Fix cl--random-state initialization.
Date: Mon, 10 Jul 2017 14:56:46 -0400
Here's a trivial patch that fixes this bug.

---
  lisp/emacs-lisp/cl-lib.el | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index 936c852526c..ea47a0562ee 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -294,7 +294,7 @@ cl--random-time
      v))
  
  (defvar cl--random-state
-  (vector 'cl--random-state-tag -1 30 (cl--random-time)))
+  (record 'cl--random-state -1 30 (cl--random-time)))
  
  (defconst cl-most-positive-float nil
    "The largest value that a Lisp float can hold.
-- 
2.11.0





This bug report was last modified 7 years and 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.