+2002-01-01 Raymond Scholz <ray-2003@zonix.de>
+
+ * deuglify.el (gnus-outlook-rearrange-article): Kill overlays
+ before rearranging the article.
+
2003-01-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nndraft.el (nndraft-generate-headers): New function.
(goto-char (match-beginning 0))))))))))
(defun gnus-outlook-rearrange-article (from-where)
- "Put the text from `from-where' to the end of buffer at the top of
-the article buffer."
+ "Put the text from `from-where' to the end of buffer at the top of the article buffer."
(save-excursion
(let ((inhibit-read-only t)
(cite-marks gnus-outlook-deuglify-cite-marks))
(gnus-with-article-buffer
- (beginning-of-buffer)
- (re-search-forward "^$")
- (transpose-regions (point) (- from-where 1)
- from-where (point-max) t)))))
-
+ (article-goto-body)
+ ;; attribution out of place?
+ (unless (= (point) from-where)
+ (gnus-kill-all-overlays)
+ (transpose-regions (point) (+ from-where 1)
+ (+ from-where 1) (point-max)))))))
;; John Doe <john.doe@some.domain> wrote in message
;; news:a87usw8$dklsssa$2@some.news.server...
"\\(" gnus-outlook-deuglify-attrib-end-regexp "\\)$")
nil t)
(progn
+ (gnus-kill-all-overlays)
(replace-match "\\1\\2\\4")
(match-beginning 0)))))))
"[^\n]+: [^\n]+$")
nil t)
(progn
+ (gnus-kill-all-overlays)
(replace-match "\\1 wrote:")
(match-beginning 0)))))))
"\\(" gnus-outlook-deuglify-attrib-end-regexp "\\)$")
nil t)
(progn
+ (gnus-kill-all-overlays)
(replace-match "\\4 \\5\\6\\7")
(match-beginning 0)))))))