(nnoo-define-basics-1 ',backend)))
(defun nnoo-define-basics-1 (backend)
- (let ((functions '(close-server server-opened status-message)))
- (while functions
- (eval `(deffoo ,(nnoo-symbol backend (car functions))
- (&optional server)
- (,(nnoo-symbol 'nnoo (pop functions)) ',backend server)))))
+ (dolist (function '(server-opened status-message))
+ (eval `(deffoo ,(nnoo-symbol backend function) (&optional server)
+ (,(nnoo-symbol 'nnoo function) ',backend server))))
+ (dolist (function '(close-server))
+ (eval `(deffoo ,(nnoo-symbol backend function) (&optional server defs)
+ (,(nnoo-symbol 'nnoo function) ',backend server))))
(eval `(deffoo ,(nnoo-symbol backend 'open-server)
(server &optional defs)
(nnoo-change-server ',backend server defs))))