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.
"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 ()
(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)
;;; 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
(put-text-property (point-min) (point-max) 'invisible nil)
(put-text-property (point-min) (point-max) 'intangible nil))
(goto-char (point-min))
- (re-search-forward "\n\n")
+ (search-forward "\n\n")
(unless gnus-uu-digest-buffer
;; Quote all 30-dash lines.
(save-excursion
(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))
(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)))
(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)
(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))
(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"
(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))))
(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))))))
(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"))
(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"))
;;; 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
;;; 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>
(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>")