* riece-server.el (riece-close-server-process): Switch to process
authorueno <ueno>
Fri, 4 Feb 2005 03:27:50 +0000 (03:27 +0000)
committerueno <ueno>
Fri, 4 Feb 2005 03:27:50 +0000 (03:27 +0000)
buffer when running riece-after-close-hook.

lisp/ChangeLog
lisp/riece-server.el

index 6b42402..cd0b04e 100644 (file)
@@ -1,5 +1,8 @@
 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.
 
index 34c6e3d..39c1610 100644 (file)
@@ -266,7 +266,8 @@ the `riece-server-keyword-map' variable."
     (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)