summaryrefslogtreecommitdiff
path: root/lisp/gnus/html2text.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2004-10-26 22:33:43 +0000
committerMiles Bader <miles@gnu.org>2004-10-26 22:33:43 +0000
commit65218328ba935f5c01ae9ed4fd6fad7fcdec5c78 (patch)
tree6cb6e5ddef8fbfcb42bb1553b04dc52462403e40 /lisp/gnus/html2text.el
parent4a620439cfe35f8f213b95ae3cf88344db173a33 (diff)
downloademacs-65218328ba935f5c01ae9ed4fd6fad7fcdec5c78.tar.gz
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-640
Merge from gnus--rel--5.10 Patches applied: * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-59 - miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-60 Update from CVS 2004-10-25 Reiner Steib <Reiner.Steib@gmx.de> * lisp/gnus/html2text.el (html2text-buffer-head): Removed. Use `goto-char' instead. 2004-10-24 Kevin Greiner <kevin.greiner@compsol.cc> * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc): Fixed numeric comparison on string.
Diffstat (limited to 'lisp/gnus/html2text.el')
-rw-r--r--lisp/gnus/html2text.el18
1 files changed, 6 insertions, 12 deletions
diff --git a/lisp/gnus/html2text.el b/lisp/gnus/html2text.el
index 6f1ef3b0289..31d1869c695 100644
--- a/lisp/gnus/html2text.el
+++ b/lisp/gnus/html2text.el
@@ -116,12 +116,6 @@ formatting, and then moved afterward.")
;; <Utility functions>
;;
-(defun html2text-buffer-head ()
- (if (string= mode-name "Article")
- (beginning-of-buffer)
- (beginning-of-buffer)
- )
- )
(defun html2text-replace-string (from-string to-string p1 p2)
(goto-char p1)
@@ -432,11 +426,11 @@ formatting, and then moved afterward.")
"This _tries_ to fix up the paragraphs - this is done in quite a ad-hook
fashion, quite close to pure guess-work. It does work in some cases though."
(interactive)
- (html2text-buffer-head)
+ (goto-char (point-min))
(replace-regexp "^<br>$" "")
;; Removing lonely <br> on a single line, if they are left intact we
;; dont have any paragraphs at all.
- (html2text-buffer-head)
+ (goto-char (point-min))
(while (not (eobp))
(let ((p1 (point)))
(forward-paragraph 1)
@@ -462,7 +456,7 @@ fashion, quite close to pure guess-work. It does work in some cases though."
See the documentation for that variable."
(interactive)
(dolist (tag tag-list)
- (html2text-buffer-head)
+ (goto-char (point-min))
(while (re-search-forward (format "\\(</?%s[^>]*>\\)" tag) (point-max) t)
(delete-region (match-beginning 0) (match-end 0)))))
@@ -472,7 +466,7 @@ See the documentation for that variable."
(dolist (tag-and-function html2text-format-tag-list)
(let ((tag (car tag-and-function))
(function (cdr tag-and-function)))
- (html2text-buffer-head)
+ (goto-char (point-min))
(while (re-search-forward (format "\\(<%s\\( [^>]*\\)?>\\)" tag)
(point-max) t)
(let ((p1)
@@ -497,7 +491,7 @@ See the documentation for that variable."
"See the variable \"html2text-replace-list\" for documentation"
(interactive)
(dolist (e html2text-replace-list)
- (html2text-buffer-head)
+ (goto-char (point-min))
(let ((old-string (car e))
(new-string (cdr e)))
(html2text-replace-string old-string new-string (point-min) (point-max))
@@ -511,7 +505,7 @@ See the documentation for that variable."
(dolist (tag-and-function html2text-format-single-element-list)
(let ((tag (car tag-and-function))
(function (cdr tag-and-function)))
- (html2text-buffer-head)
+ (goto-char (point-min))
(while (re-search-forward (format "\\(<%s\\( [^>]*\\)?>\\)" tag)
(point-max) t)
(let ((p1)