From: ueno Date: Sat, 27 Aug 2005 05:25:55 +0000 (+0000) Subject: Support re-insinuate. X-Git-Tag: channel-coding-branchpoint~28 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=5fc5770b112d289c0e1319a1dcc48aafa003aee2;p=elisp%2Friece.git Support re-insinuate. --- diff --git a/lisp/riece-xface.el b/lisp/riece-xface.el index b94b006..7e4bb78 100644 --- a/lisp/riece-xface.el +++ b/lisp/riece-xface.el @@ -68,15 +68,19 @@ 'riece-xface-update-user-list-buffer t t)) (defun riece-xface-insinuate () + (if riece-user-list-buffer + (with-current-buffer riece-user-list-buffer + (riece-xface-user-list-mode-hook))) (add-hook 'riece-user-list-mode-hook 'riece-xface-user-list-mode-hook)) (defun riece-xface-uninstall () + (if riece-user-list-buffer + (with-current-buffer riece-user-list-buffer + (remove-hook 'riece-update-buffer-functions + 'riece-xface-update-user-list-buffer t))) (remove-hook 'riece-user-list-mode-hook - 'riece-xface-user-list-mode-hook) - (with-current-buffer riece-user-list-buffer - (remove-hook 'riece-update-buffer-functions - 'riece-xface-update-user-list-buffer t))) + 'riece-xface-user-list-mode-hook)) (defun riece-xface-enable () (setq riece-xface-enabled t)