2004-06-01 Daiki Ueno <ueno@unixuser.org>
+ * riece-button.el (riece-button-disable): On XEmacs, BUFFER arg of
+ widget-map-buttons is ignored.
+
+2004-06-01 Daiki Ueno <ueno@unixuser.org>
+
* riece-unread.el (riece-modeline-unread-face): New face;
setup the properties are inherited from 'modeline.
* riece-history.el (riece-modeline-history-face): New face;
(defun riece-button-disable ()
(setq riece-button-enabled nil)
- (let ((pointer riece-buffer-list))
- (while pointer
- (widget-map-buttons
- (lambda (widget maparg)
- (widget-leave-text widget))
- (car pointer))
- (setq pointer (cdr pointer)))))
+ (save-excursion
+ (let ((pointer riece-buffer-list))
+ (while pointer
+ ;; On XEmacs, BUFFER arg of widget-map-buttons is ignored.
+ (set-buffer (car pointer))
+ (widget-map-buttons
+ (lambda (widget maparg)
+ (widget-leave-text widget)))
+ (setq pointer (cdr pointer))))))
(provide 'riece-button)