+2004-05-22 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-addon.el (riece-addon-list-mode): Call font-lock-set-defaults.
+
+ * riece-highlight.el (riece-highlight-setup-dialogue): Call
+ font-lock-set-defaults.
+ (riece-highlight-setup-channel-list): Ditto.
+
+ * riece.el (riece): Enable add-ons after startup.
+
2004-05-21 Daiki Ueno <ueno@unixuser.org>
* riece.el (riece-dialogue-mode-map): Bind
truncate-lines t
buffer-read-only t)
(use-local-map riece-addon-list-mode-map)
- (make-local-variable 'font-lock-defaults)
- (setq font-lock-defaults '(riece-addon-list-font-lock-keywords t))
+ (if (featurep 'xemacs)
+ ;; In XEmacs, auto-initialization of font-lock is not affective
+ ;; when buffer-file-name is not set.
+ (font-lock-set-defaults)
+ (make-local-variable 'font-lock-defaults)
+ (setq font-lock-defaults '(riece-addon-list-font-lock-keywords t)))
(run-hooks 'riece-addon-list-mode-hook))
(defun riece-command-list-addons ()
"Highlight IRC buffers")
(defun riece-highlight-setup-dialogue ()
- (make-local-variable 'font-lock-defaults)
- (setq font-lock-defaults '(riece-dialogue-font-lock-keywords t))
+ (if (featurep 'xemacs)
+ ;; In XEmacs, auto-initialization of font-lock is not affective
+ ;; when buffer-file-name is not set.
+ (font-lock-set-defaults)
+ (make-local-variable 'font-lock-defaults)
+ (setq font-lock-defaults '(riece-dialogue-font-lock-keywords t)))
(make-local-hook 'after-change-functions)
(add-hook 'after-change-functions
'riece-highlight-hide-prefix nil 'local))
(defun riece-highlight-setup-channel-list ()
- (make-local-variable 'font-lock-defaults)
- (setq font-lock-defaults '(riece-channel-list-font-lock-keywords t)))
+ (if (featurep 'xemacs)
+ ;; In XEmacs, auto-initialization of font-lock is not affective
+ ;; when buffer-file-name is not set.
+ (font-lock-set-defaults)
+ (make-local-variable 'font-lock-defaults)
+ (setq font-lock-defaults '(riece-channel-list-font-lock-keywords t))))
(defun riece-highlight-hide-prefix (start end length)
(save-excursion
(let ((pointer riece-addons))
(while pointer
(riece-insinuate-addon (car pointer) riece-debug)
- (riece-enable-addon (car pointer) riece-debug)
(setq pointer (cdr pointer))))
(setq riece-addons-insinuated t))
(if (or confirm (null riece-server))
(while server-list
(riece-command-open-server (car server-list))
(setq server-list (cdr server-list))))
+ (let ((pointer riece-addons))
+ (while pointer
+ (riece-enable-addon (car pointer) riece-debug)
+ (setq pointer (cdr pointer))))
(run-hooks 'riece-startup-hook)
(message "%s" (substitute-command-keys
"Type \\[describe-mode] for help"))))