* riece-highlight.el (riece-highlight-font-lock-keywords):
authorDaiki Ueno <ueno@unixuser.org>
Fri, 30 May 2003 04:50:17 +0000 (04:50 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Fri, 30 May 2003 04:50:17 +0000 (04:50 +0000)
Simplified regexp.

* riece-ctcp.el (riece-handle-ctcp-request): Don't bind user.
(riece-handle-ctcp-response): Ditto.

lisp/ChangeLog
lisp/riece-ctcp.el
lisp/riece-highlight.el

index 9396a18..295536f 100644 (file)
@@ -1,5 +1,11 @@
 2003-05-30  Daiki Ueno  <ueno@unixuser.org>
 
 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.
        * riece-highlight.el: Make it an add-on.
        (riece-highlight-insinuate): New function.
        * riece.el: Don't require 'riece-highlight.
index 4bd4101..d333af1 100644 (file)
@@ -40,8 +40,7 @@
 (defun riece-handle-ctcp-request (prefix string)
   (when (and prefix string
             (riece-prefix-nickname prefix))
 (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)
           (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))
 (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)
           (targets (split-string (car parameters) ","))
           (message (nth 1 parameters)))
       (if (string-match "\1\\([^ ]+\\)\\( .+\\)?\1" message)
index 466e3cb..8360379 100644 (file)
   (append
    (list
     `(,(concat
   (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
    ;; 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))))
        ".*\\)$")
        (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."
     '(change notice wallops error info))
    (list (list "(from [^)]+)$" 0 riece-server-face t)))
   "Normal and deformed faces for IRC normal line."