2004-12-05 Daiki Ueno <ueno@unixuser.org>
- * riece-log.el (riece-log-display-message-function): Switch to
- riece-dialogue-buffer when writing messages from other people to a
- file.
+ * riece-message.el (riece-display-message-1): Call
+ riece-after-display-message-functions in riece-message-buffer.
[cf. <Liece:00391>]
2004-12-05 Daiki Ueno <ueno@unixuser.org>
(defun riece-log-display-message-function (message)
(if riece-log-enabled
- (with-current-buffer riece-dialogue-buffer
- (let ((file (riece-log-get-file (riece-message-target message)))
- (coding-system-for-write riece-log-coding-system))
- (unless (file-directory-p (file-name-directory file))
- (make-directory (file-name-directory file) t))
- (write-region (concat (format-time-string "%H:%M") " "
- (riece-format-message message))
- nil file t 0)))))
+ (let ((file (riece-log-get-file (riece-message-target message)))
+ (coding-system-for-write riece-log-coding-system))
+ (unless (file-directory-p (file-name-directory file))
+ (make-directory (file-name-directory file) t))
+ (write-region (concat (format-time-string "%H:%M") " "
+ (riece-format-message message))
+ nil file t 0))))
(defun riece-log-get-file (identity)
(expand-file-name
(setq parent-buffers (riece-message-parent-buffers message buffer))
(riece-insert buffer (riece-format-message message))
(riece-insert parent-buffers (riece-format-message message t))
- (run-hook-with-args 'riece-after-display-message-functions message)))
+ (with-current-buffer buffer
+ (run-hook-with-args 'riece-after-display-message-functions message))))
(defun riece-display-message (message)
"Display MESSAGE object."