buffer when running riece-after-close-hook.
2005-02-04 Daiki Ueno <ueno@unixuser.org>
+ * riece-server.el (riece-close-server-process): Switch to process
+ buffer when running riece-after-close-hook.
+
* COMPILE (riece-icons): Add riece-command-quit and
riece-submit-bug-report.
(erase-buffer)))
(defun riece-close-server-process (process)
- (run-hooks 'riece-after-close-hook)
+ (with-current-buffer (process-buffer process)
+ (run-hooks 'riece-after-close-hook))
(kill-buffer (process-buffer process))
(setq riece-server-process-alist
(delq (rassq process riece-server-process-alist)