diff options
| author | Mark Oteiza | 2017-02-19 22:19:57 -0500 |
|---|---|---|
| committer | Mark Oteiza | 2017-02-19 22:19:57 -0500 |
| commit | e7b0dac11356f4f343f0441ce2078e994e1a7219 (patch) | |
| tree | da1ae8f0ad8d74c5978ac6c599ce275a21afb0a5 | |
| parent | 2f605c3f89d5d3657d364f45e1b6b6c23bf0de70 (diff) | |
| download | emacs-e7b0dac11356f4f343f0441ce2078e994e1a7219.tar.gz emacs-e7b0dac11356f4f343f0441ce2078e994e1a7219.zip | |
Remove member clone
* lisp/play/dunnet.el (dun-answer): Use member instead.
(dun-members): Remove.
| -rw-r--r-- | lisp/play/dunnet.el | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lisp/play/dunnet.el b/lisp/play/dunnet.el index d8e0681b7a8..bffb38a01a2 100644 --- a/lisp/play/dunnet.el +++ b/lisp/play/dunnet.el | |||
| @@ -2109,7 +2109,7 @@ for a moment, then straighten yourself up. | |||
| 2109 | (setq args (car args)) | 2109 | (setq args (car args)) |
| 2110 | (if (not args) | 2110 | (if (not args) |
| 2111 | (dun-mprincl "You must give the answer on the same line.") | 2111 | (dun-mprincl "You must give the answer on the same line.") |
| 2112 | (if (dun-members args dun-correct-answer) | 2112 | (if (member args dun-correct-answer) |
| 2113 | (progn | 2113 | (progn |
| 2114 | (dun-mprincl "Correct.") | 2114 | (dun-mprincl "Correct.") |
| 2115 | (if (= dun-lastdir 0) | 2115 | (if (= dun-lastdir 0) |
| @@ -2330,16 +2330,6 @@ for a moment, then straighten yourself up. | |||
| 2330 | (append startlist | 2330 | (append startlist |
| 2331 | (list (substring dirstring 0 slash))))))))) | 2331 | (list (substring dirstring 0 slash))))))))) |
| 2332 | 2332 | ||
| 2333 | |||
| 2334 | ;;; Is a string a member of a string list? | ||
| 2335 | |||
| 2336 | (defun dun-members (string string-list) | ||
| 2337 | (let (found) | ||
| 2338 | (setq found nil) | ||
| 2339 | (dolist (x string-list) | ||
| 2340 | (if (string= x string) | ||
| 2341 | (setq found t))) found)) | ||
| 2342 | |||
| 2343 | ;;; Function to put objects in the treasure room. Also prints current | 2333 | ;;; Function to put objects in the treasure room. Also prints current |
| 2344 | ;;; score to let user know he has scored. | 2334 | ;;; score to let user know he has scored. |
| 2345 | 2335 | ||