* riece-highlight.el (riece-highlight-server-match): Simplified.
authorDaiki Ueno <ueno@unixuser.org>
Mon, 16 Aug 2004 12:50:21 +0000 (12:50 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Mon, 16 Aug 2004 12:50:21 +0000 (12:50 +0000)
lisp/ChangeLog
lisp/riece-highlight.el

index 128661f..7d62294 100644 (file)
@@ -1,3 +1,7 @@
+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.
 2004-08-16  Daiki Ueno  <ueno@unixuser.org>
 
        * Riece: Version 1.0.2 released.
index b9dd902..6b3dbb5 100644 (file)
   "Highlight IRC buffers")
 
 (defun riece-highlight-server-match (limit)
   "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)
 
 (defun riece-highlight-setup-dialogue ()
   (make-local-variable 'font-lock-defaults)