diff options
| author | Gerd Moellmann | 2000-02-12 19:46:42 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-02-12 19:46:42 +0000 |
| commit | 2b706b50d04c5bcc3807d1bf1f8b307afd0799d5 (patch) | |
| tree | ce08fa9811922accc172755fa8d20d64fc10d525 | |
| parent | fba5d1de835d7b807e963f8ba89369173aea0afa (diff) | |
| download | emacs-2b706b50d04c5bcc3807d1bf1f8b307afd0799d5.tar.gz emacs-2b706b50d04c5bcc3807d1bf1f8b307afd0799d5.zip | |
(tempo-dolist, tempo-mapc): Removed.
(tempo-process-and-insert-string): Use dolist instead of
tempo-dolist.
| -rw-r--r-- | lisp/tempo.el | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/lisp/tempo.el b/lisp/tempo.el index 0b86784807d..098c6d5535f 100644 --- a/lisp/tempo.el +++ b/lisp/tempo.el | |||
| @@ -218,23 +218,6 @@ it recognizes the argument, and NIL otherwise") | |||
| 218 | 218 | ||
| 219 | ;;; Functions | 219 | ;;; Functions |
| 220 | 220 | ||
| 221 | ;;; First some useful functions and macros | ||
| 222 | |||
| 223 | (defun tempo-mapc (fun lst) | ||
| 224 | (if (null lst) nil | ||
| 225 | (funcall fun (car lst)) | ||
| 226 | (tempo-mapc fun (cdr lst)))) | ||
| 227 | |||
| 228 | (defmacro tempo-dolist (il &rest forms) | ||
| 229 | (let ((i (car il)) | ||
| 230 | (l (car (cdr il)))) | ||
| 231 | (list 'tempo-mapc | ||
| 232 | (list 'function (append (list 'lambda | ||
| 233 | (list i)) | ||
| 234 | forms)) | ||
| 235 | l))) | ||
| 236 | (put 'tempo-dolist 'lisp-indent-function 1) | ||
| 237 | |||
| 238 | ;; | 221 | ;; |
| 239 | ;; tempo-define-template | 222 | ;; tempo-define-template |
| 240 | 223 | ||
| @@ -539,7 +522,7 @@ and insert the results." | |||
| 539 | (setq string | 522 | (setq string |
| 540 | (funcall tempo-insert-string-functions string))) | 523 | (funcall tempo-insert-string-functions string))) |
| 541 | ((listp tempo-insert-string-functions) | 524 | ((listp tempo-insert-string-functions) |
| 542 | (tempo-dolist (fn tempo-insert-string-functions) | 525 | (dolist (fn tempo-insert-string-functions) |
| 543 | (setq string (funcall fn string)))) | 526 | (setq string (funcall fn string)))) |
| 544 | (t | 527 | (t |
| 545 | (error "Bogus value in tempo-insert-string-functions: %s" | 528 | (error "Bogus value in tempo-insert-string-functions: %s" |