2004-05-21 Daiki Ueno <ueno@unixuser.org>
+ * riece-highlight.el (riece-highlight-setup-dialogue): Simplified.
+ (riece-highlight-setup-channel-list): Simplified.
+
+ * riece.el (riece): Enable add-ons just after insinuate them.
+
* riece-addon.el (riece-addon-list-enabled-face): New face.
(riece-addon-list-disabled-face): New face.
(riece-addon-list-unsupported-face): New face.
(defconst riece-highlight-description
"Highlight IRC buffers")
-(defvar font-lock-support-mode)
(defun riece-highlight-setup-dialogue ()
(make-local-variable 'font-lock-defaults)
(setq font-lock-defaults '(riece-dialogue-font-lock-keywords t))
- (make-local-variable 'font-lock-verbose)
- (setq font-lock-verbose nil)
- (when (boundp 'font-lock-support-mode)
- (make-local-variable 'font-lock-support-mode)
- (setq font-lock-support-mode nil))
- (make-local-hook 'font-lock-mode-hook)
- (setq font-lock-mode-hook nil)
(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))
- (make-local-variable 'font-lock-verbose)
- (setq font-lock-verbose nil)
- (when (boundp 'font-lock-support-mode)
- (make-local-variable 'font-lock-support-mode)
- (setq font-lock-support-mode nil))
- (make-local-hook 'font-lock-mode-hook)
- (setq font-lock-mode-hook nil))
+ (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))
(riece-command-open-server (car server-list))
(setq server-list (cdr server-list))))
(run-hooks 'riece-startup-hook)
- (let ((pointer riece-addons))
- (while pointer
- (riece-enable-addon (car pointer) riece-debug)
- (setq pointer (cdr pointer))))
(message "%s" (substitute-command-keys
"Type \\[describe-mode] for help"))))