diff options
author | Roland McGrath <roland@gnu.org> | 1993-07-18 19:56:35 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1993-07-18 19:56:35 +0000 |
commit | f58c6f70237e5106a1ca9b16cb50ab50afde31c8 (patch) | |
tree | 0115223ea1f58f72cec5facad3f1513b9356db52 /lisp/play/cookie1.el | |
parent | 6817eab40505c7a9dc545eeba4b833b4868f4b41 (diff) | |
download | emacs-f58c6f70237e5106a1ca9b16cb50ab50afde31c8.tar.gz |
(cookie, cookie-insert, cookie-snarf, shuffle-vector): Autoload these.
Diffstat (limited to 'lisp/play/cookie1.el')
-rw-r--r-- | lisp/play/cookie1.el | 4 |
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 @@ (defvar cookie-cache (make-vector 511 0) "Cache of cookie files that have already been snarfed.") +;;;###autoload (defun cookie (phrase-file startmsg endmsg) "Return a random phrase from PHRASE-FILE. When the phrase file is 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." (shuffle-vector cookie-vector) (aref cookie-vector 1))) +;;;###autoload (defun cookie-insert (phrase-file &optional count startmsg endmsg) "Insert random phrases from PHRASE-FILE; COUNT of them. When the phrase file is 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." (insert " ") (cookie1 (1- arg) cookie-vec)))) +;;;###autoload (defun cookie-snarf (phrase-file startmsg endmsg) "Reads in the PHRASE-FILE, returns it as a vector of strings. Emit STARTMSG 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." ; [of the University of Birmingham Computer Science Department] ; for the iterative version of this shuffle. ; +;;;###autoload (defun shuffle-vector (vector) "Randomly permute the elements of VECTOR (all permutations equally likely)" (let ((i 0) |