Simplified regexp.
* riece-ctcp.el (riece-handle-ctcp-request): Don't bind user.
(riece-handle-ctcp-response): Ditto.
2003-05-30 Daiki Ueno <ueno@unixuser.org>
+ * riece-highlight.el (riece-highlight-font-lock-keywords):
+ Simplified regexp.
+
+ * riece-ctcp.el (riece-handle-ctcp-request): Don't bind user.
+ (riece-handle-ctcp-response): Ditto.
+
* riece-highlight.el: Make it an add-on.
(riece-highlight-insinuate): New function.
* riece.el: Don't require 'riece-highlight.
(defun riece-handle-ctcp-request (prefix string)
(when (and prefix string
(riece-prefix-nickname prefix))
- (let* ((user (riece-prefix-nickname prefix))
- (parameters (riece-split-parameters string))
+ (let* ((parameters (riece-split-parameters string))
(targets (split-string (car parameters) ","))
(message (nth 1 parameters)))
(if (string-match "\1\\([^ ]+\\)\\( .+\\)?\1" message)
(defun riece-handle-ctcp-response (prefix string)
(when (and prefix string
(riece-prefix-nickname prefix))
- (let* ((user (riece-prefix-nickname prefix))
- (parameters (riece-split-parameters string))
+ (let* ((parameters (riece-split-parameters string))
(targets (split-string (car parameters) ","))
(message (nth 1 parameters)))
(if (string-match "\1\\([^ ]+\\)\\( .+\\)?\1" message)
(append
(list
`(,(concat
- "^\\(" riece-time-prefix-regexp "\\)?"
- "\\(\\([][<>(-][][<>(-]?[^<>)]*[][<>)-][][<>)-]?\\)\\|"
- "\\(=[^ ]*=\\|\\*\\*[^ \*]*\\*\\*\\)\\) ")
- (3 riece-prefix-face append t)))
+ "^" riece-time-prefix-regexp
+ "\\(<[^>]+>\\|>[^<]+<\\|-[^-]+-\\|([^)]+)\\|=[^=]+=\\)")
+ (1 riece-prefix-face append t)))
;; set property to the whole line
(mapcar
(lambda (line)
(cons
(concat
- "^\\(" riece-time-prefix-regexp "\\)?\\("
+ "^" riece-time-prefix-regexp "\\("
(regexp-quote
(symbol-value (intern (format "riece-%s-prefix" line))))
".*\\)$")
- (list 2 (intern (format "riece-%s-face" line)) t t)))
+ (list 1 (intern (format "riece-%s-face" line)) t t)))
'(change notice wallops error info))
(list (list "(from [^)]+)$" 0 riece-server-face t)))
"Normal and deformed faces for IRC normal line."