aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1993-07-18 19:56:35 +0000
committerRoland McGrath1993-07-18 19:56:35 +0000
commitf58c6f70237e5106a1ca9b16cb50ab50afde31c8 (patch)
tree0115223ea1f58f72cec5facad3f1513b9356db52
parent6817eab40505c7a9dc545eeba4b833b4868f4b41 (diff)
downloademacs-f58c6f70237e5106a1ca9b16cb50ab50afde31c8.tar.gz
emacs-f58c6f70237e5106a1ca9b16cb50ab50afde31c8.zip
(cookie, cookie-insert, cookie-snarf, shuffle-vector): Autoload these.
-rw-r--r--lisp/play/cookie1.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/play/cookie1.el b/lisp/play/cookie1.el
index aa767ed8f4e..ee5521aa3b4 100644
--- a/lisp/play/cookie1.el
+++ b/lisp/play/cookie1.el
@@ -63,6 +63,7 @@
63(defvar cookie-cache (make-vector 511 0) 63(defvar cookie-cache (make-vector 511 0)
64 "Cache of cookie files that have already been snarfed.") 64 "Cache of cookie files that have already been snarfed.")
65 65
66;;;###autoload
66(defun cookie (phrase-file startmsg endmsg) 67(defun cookie (phrase-file startmsg endmsg)
67 "Return a random phrase from PHRASE-FILE. When the phrase file 68 "Return a random phrase from PHRASE-FILE. When the phrase file
68is read in, display STARTMSG at beginning of load, ENDMSG at end." 69is read in, display STARTMSG at beginning of load, ENDMSG at end."
@@ -70,6 +71,7 @@ is read in, display STARTMSG at beginning of load, ENDMSG at end."
70 (shuffle-vector cookie-vector) 71 (shuffle-vector cookie-vector)
71 (aref cookie-vector 1))) 72 (aref cookie-vector 1)))
72 73
74;;;###autoload
73(defun cookie-insert (phrase-file &optional count startmsg endmsg) 75(defun cookie-insert (phrase-file &optional count startmsg endmsg)
74 "Insert random phrases from PHRASE-FILE; COUNT of them. When the phrase file 76 "Insert random phrases from PHRASE-FILE; COUNT of them. When the phrase file
75is read in, display STARTMSG at beginning of load, ENDMSG at end." 77is read in, display STARTMSG at beginning of load, ENDMSG at end."
@@ -88,6 +90,7 @@ is read in, display STARTMSG at beginning of load, ENDMSG at end."
88 (insert " ") 90 (insert " ")
89 (cookie1 (1- arg) cookie-vec)))) 91 (cookie1 (1- arg) cookie-vec))))
90 92
93;;;###autoload
91(defun cookie-snarf (phrase-file startmsg endmsg) 94(defun cookie-snarf (phrase-file startmsg endmsg)
92 "Reads in the PHRASE-FILE, returns it as a vector of strings. Emit 95 "Reads in the PHRASE-FILE, returns it as a vector of strings. Emit
93STARTMSG and ENDMSG before and after. Caches the result; second and 96STARTMSG and ENDMSG before and after. Caches the result; second and
@@ -126,6 +129,7 @@ subsequent calls on the same file won't go to disk."
126; [of the University of Birmingham Computer Science Department] 129; [of the University of Birmingham Computer Science Department]
127; for the iterative version of this shuffle. 130; for the iterative version of this shuffle.
128; 131;
132;;;###autoload
129(defun shuffle-vector (vector) 133(defun shuffle-vector (vector)
130 "Randomly permute the elements of VECTOR (all permutations equally likely)" 134 "Randomly permute the elements of VECTOR (all permutations equally likely)"
131 (let ((i 0) 135 (let ((i 0)