* gnus-agent.el (gnus-agent-restore-gcc): Use ^ and regexp-quote.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 30 Aug 2004 08:20:53 +0000 (08:20 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 30 Aug 2004 08:20:53 +0000 (08:20 +0000)
* gnus-sum.el (gnus-summary-morse-message): Use search-forward instead of
 re-search-forward.

* gnus-uu.el (gnus-uu-save-article): Ditto.
(gnus-uu-post-encode-uuencode): Ditto.

* html2text.el (html2text-clean-list-items): Ditto.
(html2text-clean-dtdd): Ditto.
(html2text-format-tags): Ditto.

* message.el (message-send-mail-with-sendmail): Fix regexp.
(message-fill-field-general): Use search-forward instead of re-search-forward.
(unbold-region): Ditto.

* nnrss.el (nnrss-request-article): Ditto.

* nnslashdot.el (nnslashdot-request-article): Ditto.

* nnweb.el (nnweb-gmane-wash-article): Ditto.

lisp/ChangeLog
lisp/gnus-agent.el
lisp/gnus-sum.el
lisp/gnus-uu.el
lisp/html2text.el
lisp/message.el
lisp/nnrss.el
lisp/nnslashdot.el
lisp/nnweb.el

index 7c94e00..0e454b5 100644 (file)
@@ -1,5 +1,28 @@
 2004-08-30  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * gnus-agent.el (gnus-agent-restore-gcc): Use ^ and regexp-quote.
+
+       * gnus-sum.el (gnus-summary-morse-message): Use search-forward
+       instead of re-search-forward.
+
+       * gnus-uu.el (gnus-uu-save-article): Ditto.
+       (gnus-uu-post-encode-uuencode): Ditto.
+
+       * html2text.el (html2text-clean-list-items): Ditto.
+       (html2text-clean-dtdd): Ditto.
+       (html2text-format-tags): Ditto.
+
+       * message.el (message-send-mail-with-sendmail): Fix regexp.
+       (message-fill-field-general): Use search-forward instead of
+       re-search-forward.
+       (unbold-region): Ditto.
+
+       * nnrss.el (nnrss-request-article): Ditto.
+
+       * nnslashdot.el (nnslashdot-request-article): Ditto.
+
+       * nnweb.el (nnweb-gmane-wash-article): Ditto.
+
        * gnus-sum.el (gnus-summary-make-menu-bar): Avoid the
        "Unrecognized menu descriptor" error in XEmacs.
 
index 850030d..c96acaa 100644 (file)
@@ -696,7 +696,8 @@ be a select method."
   "Restore GCC field from saved header."
   (save-excursion
     (goto-char (point-min))
-    (while (re-search-forward (concat gnus-agent-gcc-header ":") nil t)
+    (while (re-search-forward
+           (concat "^" (regexp-quote gnus-agent-gcc-header) ":") nil t)
       (replace-match "Gcc:" 'fixedcase))))
 
 (defun gnus-agent-any-covered-gcc ()
index 46bc84c..9febf8e 100644 (file)
@@ -8877,7 +8877,7 @@ forward."
            (when (message-goto-body)
              (gnus-narrow-to-body))
            (goto-char (point-min))
-           (while (re-search-forward "·" (point-max) t)
+           (while (search-forward "·" (point-max) t)
              (replace-match "."))
            (unmorse-region (point-min) (point-max))
            (widen)
index 9d3f4a5..5c648fe 100644 (file)
@@ -1,6 +1,6 @@
 ;;; gnus-uu.el --- extract (uu)encoded files in Gnus
 ;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 2000,
-;;        2001, 2002, 2003 Free Software Foundation, Inc.
+;;        2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
 ;; Created: 2 Oct 1993
@@ -859,7 +859,7 @@ When called interactively, prompt for REGEXP."
              (mm-enable-multibyte)
              (mime-to-mml))
            (goto-char (point-min))
-           (re-search-forward "\n\n")
+           (search-forward "\n\n")
            (unless (and message-forward-as-mime gnus-uu-digest-buffer)
              ;; Quote all 30-dash lines.
              (save-excursion
@@ -1895,7 +1895,7 @@ The user will be asked for a file name."
   (when (gnus-uu-post-encode-file "uuencode" path file-name)
     (goto-char (point-min))
     (forward-line 1)
-    (while (re-search-forward " " nil t)
+    (while (search-forward " " nil t)
       (replace-match "`"))
     t))
 
index 47c2e1c..c9722a8 100644 (file)
@@ -176,12 +176,12 @@ formatting, and then moved afterward.")
   (goto-char p1)
   (let ((item-nr 0)
        (items   0))
-    (while (re-search-forward "<li>" p2 t)
+    (while (search-forward "<li>" p2 t)
       (setq items (1+ items)))
     (goto-char p1)
     (while (< item-nr items)
       (setq item-nr (1+ item-nr))
-      (re-search-forward "<li>" (point-max) t)
+      (search-forward "<li>" (point-max) t)
       (cond
        ((string= list-type "ul") (insert " o "))
        ((string= list-type "ol") (insert (format " %s: " item-nr)))
@@ -191,7 +191,7 @@ formatting, and then moved afterward.")
   (goto-char p1)
   (let ((items   0)
        (item-nr 0))
-    (while (re-search-forward "<dt>" p2 t)
+    (while (search-forward "<dt>" p2 t)
       (setq items (1+ items)))
     (goto-char p1)
     (while (< item-nr items)
@@ -370,7 +370,7 @@ See the documentation for that variable."
              (attr (match-string 0)))
          (search-backward "<" (point-min) t)
          (setq p1 (point))
-         (re-search-forward (format "</%s>" tag) (point-max) t)
+         (search-forward (format "</%s>" tag) (point-max) t)
          (setq p4 (point))
          (search-backward "</" (point-min) t)
          (setq p3 (point))
index a4c4dc5..3f742dc 100644 (file)
@@ -3860,7 +3860,7 @@ If you always want Gnus to send messages in one piece, set
            (save-excursion
              (set-buffer errbuf)
              (goto-char (point-min))
-             (while (re-search-forward "\n\n* *" nil t)
+             (while (re-search-forward "\n+ *" nil t)
                (replace-match "; "))
              (if (not (zerop (buffer-size)))
                  (error "Sending...failed to %s"
@@ -5194,7 +5194,7 @@ If the current line has `message-yank-prefix', insert it on the new line."
     (when (looking-at "[ \t]*$")
       (message-delete-line))
     (goto-char begin)
-    (re-search-forward ":" nil t)
+    (search-forward ":" nil t)
     (when (looking-at "\n[ \t]+")
       (replace-match " " t t))
     (goto-char (point-max))))
@@ -6493,7 +6493,7 @@ which specify the range to operate on."
     (let ((end1 (make-marker)))
       (move-marker end1 (max start end))
       (goto-char (min start end))
-      (while (re-search-forward "\b" end1 t)
+      (while (search-forward "\b" end1 t)
        (if (eq (char-after) (char-after (- (point) 2)))
            (delete-char -2))))))
 
index e62fe0e..69c81cd 100644 (file)
@@ -170,7 +170,7 @@ ARTICLE is the article number of the current headline.")
              (when text
                (insert text)
                (goto-char point)
-               (while (re-search-forward "\n" nil t)
+               (while (search-forward "\n" nil t)
                  (replace-match " "))
                (goto-char (point-max))
                (insert "\n\n"))
@@ -181,7 +181,7 @@ ARTICLE is the article number of the current headline.")
              (when text
                (insert "<html><head></head><body>\n" text "\n</body></html>")
                (goto-char point)
-               (while (re-search-forward "\n" nil t)
+               (while (search-forward "\n" nil t)
                  (replace-match " "))
                (goto-char (point-max))
                (insert "\n\n"))
index f4b3cf0..de8fb37 100644 (file)
@@ -1,5 +1,6 @@
 ;;; nnslashdot.el --- interfacing with Slashdot
-;; Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
+;;        Free Software Foundation, Inc.
 
 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
 ;; Keywords: news
            (when (numberp article)
              (if (= article 1)
                  (progn
-                   (re-search-forward
-                    "Posted by")
+                   (search-forward "Posted by")
                    (search-forward "<BR>")
                    (setq contents
                          (buffer-substring
index f830999..df03e93 100644 (file)
@@ -1,5 +1,5 @@
 ;;; nnweb.el --- retrieving articles via web search engines
-;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 ;;        Free Software Foundation, Inc.
 
 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
@@ -489,7 +489,7 @@ Valid types include `google', `dejanews', and `gmane'.")
 (defun nnweb-gmane-wash-article ()
   (let ((case-fold-search t))
     (goto-char (point-min))
-    (re-search-forward "<!--X-Head-of-Message-->" nil t)
+    (search-forward "<!--X-Head-of-Message-->" nil t)
     (delete-region (point-min) (point))
     (goto-char (point-min))
     (while (looking-at "^<li><em>\\([^ ]+\\)</em>.*</li>")