* lisp/net/rcirc.el (rcirc-markup-urls): Check if rcirc-url-regexp is nil.
authorDeniz Dogan <deniz@dogan.se>
Thu, 19 May 2011 12:38:39 +0000 (14:38 +0200)
committerDeniz Dogan <deniz@dogan.se>
Thu, 19 May 2011 12:38:39 +0000 (14:38 +0200)
lisp/ChangeLog
lisp/net/rcirc.el

index df5025d..00ca21c 100644 (file)
@@ -1,6 +1,7 @@
 2011-05-19  Deniz Dogan  <deniz@dogan.se>
 
        * net/rcirc.el (rcirc-mode): Initialize rcirc-urls to nil.
+       (rcirc-markup-urls): Check if rcirc-url-regexp is nil.
 
 2011-05-19  Glenn Morris  <rgm@gnu.org>
 
index 3a42337..0d02688 100644 (file)
@@ -2394,7 +2394,8 @@ keywords when no KEYWORD is given."
        (rcirc-record-activity (current-buffer) 'nick)))))
 
 (defun rcirc-markup-urls (sender response)
-  (while (re-search-forward rcirc-url-regexp nil t)
+  (while (and rcirc-url-regexp ;; nil means disable URL catching
+              (re-search-forward rcirc-url-regexp nil t))
     (let ((start (match-beginning 0))
          (end (match-end 0)))
       (rcirc-add-face start end 'rcirc-url)