diff options
| author | Pavel Janík | 2001-11-29 08:35:51 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-11-29 08:35:51 +0000 |
| commit | 132c0cc0ce08f7fb2542f4e30a7d0eabcb5e66d7 (patch) | |
| tree | d602874f3d99b2397c84ec06e6f638c500b2cfef | |
| parent | dd536f948d976d4ad88be895203abaaf78b52cf4 (diff) | |
| download | emacs-132c0cc0ce08f7fb2542f4e30a7d0eabcb5e66d7.tar.gz emacs-132c0cc0ce08f7fb2542f4e30a7d0eabcb5e66d7.zip | |
(cookie, cookie-insert, shuffle-vector): Doc fixes.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/play/cookie1.el | 12 |
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 @@ | |||
| 1 | 2001-11-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 1 | 2001-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. |
| 73 | is read in, display STARTMSG at beginning of load, ENDMSG at end." | 73 | When the phrase file is read in, display STARTMSG at the beginning |
| 74 | of 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. |
| 81 | is read in, display STARTMSG at beginning of load, ENDMSG at end." | 82 | When the phrase file is read in, display STARTMSG at the beginning |
| 83 | of 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 |