+2006-02-18 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-signal.el (elmo-signal-bindings): Use cons to append
+ element into list.
+ (elmo-define-signal-handler): Add docstring.
+ (elmo-define-signal-filter): Ditto.
+
+ * elmo-multi.el (elmo-multi-connect-signals): Fix the signal name.
+
2006-02-10 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-util.el (elmo-flatten): Don't use recursive call.
nil 'cache-changed folder
(elmo-define-signal-handler (folder child number)
(elmo-emit-signal
- 'flag-changed folder
+ 'cache-changed folder
(car (elmo-multi-map-numbers folder child (list number)))))
(elmo-define-signal-filter (folder sender)
(memq sender (elmo-multi-folder-children-internal folder))))
(let ((i 0)
bindings)
(when (car arg-list)
- (setq bindings (list (list (car arg-list) listener))))
+ (setq bindings (cons (list (car arg-list) listener) bindings)))
(when (setq arg-list (cdr arg-list))
- (setq bindings (nconc bindings
- (list (list (car arg-list) source)))))
+ (setq bindings (cons (list (car arg-list) source) bindings)))
(while (and (setq arg-list (cdr arg-list))
(not (eq (car arg-list) '&optional)))
- (setq bindings (nconc bindings
- (list (list (car arg-list) (list 'nth i args))))
+ (setq bindings (cons (list (car arg-list) (list 'nth i args)) bindings)
i (1+ i)))
(when (and handback
(setq arg-list (cdr arg-list)))
- (setq bindings (nconc bindings
- (list (list (car arg-list) handback)))))
+ (setq bindings (cons (list (car arg-list) handback) bindings)))
bindings))
(defmacro elmo-define-signal-handler (args &rest body)
+ "Define a signal handler.
+ARGS is a symbol list as (LISTENER SOURCE ARG... &optional HANDBACK)."
(let ((source (make-symbol "--source--"))
(listener (make-symbol "--listener--"))
(argument (make-symbol "--argument--"))
def-body))
(defmacro elmo-define-signal-filter (args &rest body)
+ "Define a signal filter.
+ARGS is a symbol list as (LISTENER SOURCE ARG...)."
(let ((source (make-symbol "--source--"))
(listener (make-symbol "--listener--"))
(argument (make-symbol "--argument--")))