* riece-highlight.el (riece-highlight-server-match): Simplified.
authorueno <ueno>
Mon, 16 Aug 2004 12:50:21 +0000 (12:50 +0000)
committerueno <ueno>
Mon, 16 Aug 2004 12:50:21 +0000 (12:50 +0000)
lisp/ChangeLog
lisp/riece-highlight.el

index 128661f..7d62294 100644 (file)
@@ -1,5 +1,9 @@
 2004-08-16  Daiki Ueno  <ueno@unixuser.org>
 
+       * riece-highlight.el (riece-highlight-server-match): Simplified.
+
+2004-08-16  Daiki Ueno  <ueno@unixuser.org>
+
        * Riece: Version 1.0.2 released.
        * riece-version.el (riece-version-number): Bump up to 1.0.2.
 
index b9dd902..6b3dbb5 100644 (file)
   "Highlight IRC buffers")
 
 (defun riece-highlight-server-match (limit)
-  (let ((match-data (match-data)))
-    (if (re-search-forward "(from [^)]+)$" limit t)
-       (if (get-text-property (match-beginning 0) 'riece-server-name)
-           t
-         (store-match-data match-data)))))
+  (and (re-search-forward "(from [^)]+)$" limit t)
+       (get-text-property (match-beginning 0) 'riece-server-name)))
 
 (defun riece-highlight-setup-dialogue ()
   (make-local-variable 'font-lock-defaults)