summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-macs.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-06-27 10:57:02 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-06-27 10:59:08 -0700
commitefc262f5f8a16d25c0db4e80fa52e693897fa41f (patch)
tree6a78ad9a601676202619bbf50eccff61f2936e83 /lisp/emacs-lisp/cl-macs.el
parent5e3fde03b45877d3e30f859a14c10043e637aa63 (diff)
downloademacs-efc262f5f8a16d25c0db4e80fa52e693897fa41f.tar.gz
emacs-efc262f5f8a16d25c0db4e80fa52e693897fa41f.tar.bz2
emacs-efc262f5f8a16d25c0db4e80fa52e693897fa41f.zip
Initialize cl--gensym-counter to 0
Previously it was initialized to a random value, which made it harder to reproduce earlier Emacs runs. The need for a random value went away when Emacs introduced and used the #: syntax for uninterned symbols (Bug#20862). * doc/misc/cl.texi (Creating Symbols, Common Lisp Compatibility): Document that cl--gensym-counter now starts with 0. * lisp/emacs-lisp/cl-lib.el (cl--gensym-counter): Remove. (cl--random-time): Move to near only remaining use. * lisp/emacs-lisp/cl-macs.el (cl--gensym-counter): Initialize to 0.
Diffstat (limited to 'lisp/emacs-lisp/cl-macs.el')
-rw-r--r--lisp/emacs-lisp/cl-macs.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 636c5433a97..5bcf0882791 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -161,7 +161,7 @@ whether X is known at compile time, macroexpand it completely in
;;; Symbols.
-(defvar cl--gensym-counter)
+(defvar cl--gensym-counter 0)
;;;###autoload
(defun cl-gensym (&optional prefix)
"Generate a new uninterned symbol.