From: ueno Date: Sat, 27 Aug 2005 00:37:42 +0000 (+0000) Subject: Fixed. X-Git-Tag: channel-coding-branchpoint~44 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=c467106d5b795c7d25d6f8d9b12ecf2f250777e3;p=elisp%2Friece.git Fixed. --- diff --git a/lisp/riece-toolbar.el b/lisp/riece-toolbar.el index 1335eca..fdad370 100644 --- a/lisp/riece-toolbar.el +++ b/lisp/riece-toolbar.el @@ -86,8 +86,10 @@ (specifier-specs default-toolbar (current-buffer))) (set-specifier default-toolbar toolbar (current-buffer))) (defun riece-unset-toolbar () - (set-specifier default-toolbar riece-toolbar-original-toolbar - (current-buffer)) + (if riece-toolbar-original-toolbar + (set-specifier default-toolbar riece-toolbar-original-toolbar + (current-buffer)) + (remove-specifier default-toolbar (current-buffer))) (kill-local-variable 'riece-toolbar-original-toolbar))) (defalias 'riece-make-toolbar-from-menu 'ignore) (defalias 'riece-set-toolbar 'ignore)