aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Janík2001-11-29 08:35:51 +0000
committerPavel Janík2001-11-29 08:35:51 +0000
commit132c0cc0ce08f7fb2542f4e30a7d0eabcb5e66d7 (patch)
treed602874f3d99b2397c84ec06e6f638c500b2cfef
parentdd536f948d976d4ad88be895203abaaf78b52cf4 (diff)
downloademacs-132c0cc0ce08f7fb2542f4e30a7d0eabcb5e66d7.tar.gz
emacs-132c0cc0ce08f7fb2542f4e30a7d0eabcb5e66d7.zip
(cookie, cookie-insert, shuffle-vector): Doc fixes.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/play/cookie1.el12
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 497fe9b663a..3887fb1968b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12001-11-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 12001-11-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2 2
3 * play/cookie1.el (cookie, cookie-insert, shuffle-vector): Doc
4 fixes.
5
3 * play/studly.el (studlify-word, studlify-region) 6 * play/studly.el (studlify-word, studlify-region)
4 (studlify-buffer): Fix doc-string. 7 (studlify-buffer): Fix doc-string.
5 (studlify-buffer): Add autoload cookie. 8 (studlify-buffer): Add autoload cookie.
diff --git a/lisp/play/cookie1.el b/lisp/play/cookie1.el
index 2c3ff16fe13..cd3c715bc99 100644
--- a/lisp/play/cookie1.el
+++ b/lisp/play/cookie1.el
@@ -69,16 +69,18 @@
69 69
70;;;###autoload 70;;;###autoload
71(defun cookie (phrase-file startmsg endmsg) 71(defun cookie (phrase-file startmsg endmsg)
72 "Return a random phrase from PHRASE-FILE. When the phrase file 72 "Return a random phrase from PHRASE-FILE.
73is read in, display STARTMSG at beginning of load, ENDMSG at end." 73When the phrase file is read in, display STARTMSG at the beginning
74of load, ENDMSG at the end."
74 (let ((cookie-vector (cookie-snarf phrase-file startmsg endmsg))) 75 (let ((cookie-vector (cookie-snarf phrase-file startmsg endmsg)))
75 (shuffle-vector cookie-vector) 76 (shuffle-vector cookie-vector)
76 (aref cookie-vector 1))) 77 (aref cookie-vector 1)))
77 78
78;;;###autoload 79;;;###autoload
79(defun cookie-insert (phrase-file &optional count startmsg endmsg) 80(defun cookie-insert (phrase-file &optional count startmsg endmsg)
80 "Insert random phrases from PHRASE-FILE; COUNT of them. When the phrase file 81 "Insert random phrases from PHRASE-FILE; COUNT of them.
81is read in, display STARTMSG at beginning of load, ENDMSG at end." 82When the phrase file is read in, display STARTMSG at the beginning
83of load, ENDMSG at the end."
82 (let ((cookie-vector (cookie-snarf phrase-file startmsg endmsg))) 84 (let ((cookie-vector (cookie-snarf phrase-file startmsg endmsg)))
83 (shuffle-vector cookie-vector) 85 (shuffle-vector cookie-vector)
84 (let ((start (point))) 86 (let ((start (point)))
@@ -151,7 +153,7 @@ Optional fifth arg REQUIRE-MATCH non-nil forces a matching cookie."
151; 153;
152;;;###autoload 154;;;###autoload
153(defun shuffle-vector (vector) 155(defun shuffle-vector (vector)
154 "Randomly permute the elements of VECTOR (all permutations equally likely)" 156 "Randomly permute the elements of VECTOR (all permutations equally likely)."
155 (let ((i 0) 157 (let ((i 0)
156 j 158 j
157 temp 159 temp