Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
132c0cc0
Commit
132c0cc0
authored
Nov 29, 2001
by
Pavel Janík
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(cookie, cookie-insert, shuffle-vector): Doc fixes.
parent
dd536f94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/play/cookie1.el
lisp/play/cookie1.el
+7
-5
No files found.
lisp/ChangeLog
View file @
132c0cc0
2001-11-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* play/cookie1.el (cookie, cookie-insert, shuffle-vector): Doc
fixes.
* play/studly.el (studlify-word, studlify-region)
(studlify-buffer): Fix doc-string.
(studlify-buffer): Add autoload cookie.
...
...
lisp/play/cookie1.el
View file @
132c0cc0
...
...
@@ -69,16 +69,18 @@
;;;###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."
"Return a random phrase from PHRASE-FILE.
When the phrase file is read in, display STARTMSG at the beginning
of load, ENDMSG at the end."
(
let
((
cookie-vector
(
cookie-snarf
phrase-file
startmsg
endmsg
)))
(
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."
"Insert random phrases from PHRASE-FILE; COUNT of them.
When the phrase file is read in, display STARTMSG at the beginning
of load, ENDMSG at the end."
(
let
((
cookie-vector
(
cookie-snarf
phrase-file
startmsg
endmsg
)))
(
shuffle-vector
cookie-vector
)
(
let
((
start
(
point
)))
...
...
@@ -151,7 +153,7 @@ Optional fifth arg REQUIRE-MATCH non-nil forces a matching cookie."
;
;;;###autoload
(
defun
shuffle-vector
(
vector
)
"Randomly permute the elements of VECTOR (all permutations equally likely)"
"Randomly permute the elements of VECTOR (all permutations equally likely)
.
"
(
let
((
i
0
)
j
temp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment