riece-alias
riece-skk-kakutei
riece-guess
- riece-history))))
+ riece-history
+ riece-button))))
(defun riece-compile-modules (modules)
(let ((load-path (cons nil load-path)))
+2003-10-13 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-options.el (riece-addons): Add riece-button.
+
+ * riece-display.el (riece-update-channel-list-buffer): Avoid to
+ use format to preserve 'riece-identity property.
+
+ * riece-unread.el (riece-unread-update-channel-list-buffer):
+ Simplified.
+ (riece-unread-insinuate): Delay adding
+ riece-unread-update-channel-list-buffer to
+ riece-update-buffer-functions.
+
+ * riece-button.el: New add-on.
+ * COMPILE (riece-modules): Add riece-button.
+ * Makefile.am (EXTRA_DIST): Add riece-button.el
+
2003-10-08 Daiki Ueno <ueno@unixuser.org>
* riece-server.el (riece-close-server-process):
(while channels
(if (car channels)
(let ((point (point)))
- (insert (format "%2d: %s\n" index
- (riece-format-identity (car channels))))
- (put-text-property point (point) 'riece-identity
- (car channels))))
+ (insert (format "%2d: " index)
+ (riece-format-identity (car channels))
+ "\n")))
(setq index (1+ index)
channels (cdr channels)))))))
riece-guess
riece-unread
riece-history
- riece-url)
+ riece-url
+ riece-button)
"Add-ons insinuated into Riece."
:type '(repeat symbol)
:group 'riece-options)
buffer-read-only)
(goto-char (point-min))
(while (not (eobp))
- (if (looking-at "\\( ?[0-9]+:\\)\\(.\\)\\(.+\\)")
- (let ((channel (save-match-data
- (riece-parse-identity (match-string 3)))))
+ (if (looking-at "\\( ?[0-9]+:\\)\\(.\\)")
+ (let ((channel (get-text-property (match-end 0)
+ 'riece-identity)))
(replace-match
(concat "\\1"
- (if (member channel riece-unread-channels)
+ (if (riece-identity-member channel
+ riece-unread-channels)
"!"
- "\\2")
- "\\3"))))
+ "\\2")))))
(forward-line))))))
(defun riece-unread-switch-to-channel ()
'riece-unread-after-display-message-function)
(add-hook 'riece-after-switch-to-channel-functions
'riece-unread-after-switch-to-channel-function)
- (add-hook 'riece-update-buffer-functions
- 'riece-unread-update-channel-list-buffer t)
+ (add-hook 'riece-channel-list-mode-hook
+ (lambda ()
+ (add-hook 'riece-update-buffer-functions
+ 'riece-unread-update-channel-list-buffer t)))
(define-key riece-command-mode-map
"\C-c\C-u" 'riece-unread-switch-to-channel)
(define-key riece-dialogue-mode-map
All normal editing commands are turned off."
(kill-all-local-variables)
(buffer-disable-undo)
- (make-local-variable 'riece-redisplay-buffer)
(setq major-mode 'riece-channel-list-mode
mode-name "Channels"
mode-line-buffer-identification
\\{riece-user-list-mode-map}"
(kill-all-local-variables)
(buffer-disable-undo)
- (make-local-variable 'riece-redisplay-buffer)
(setq major-mode 'riece-user-list-mode
mode-name "User list"
mode-line-buffer-identification