Function: gnus-article-outlook-unwrap-lines
gnus-article-outlook-unwrap-lines is an autoloaded, interactive and
byte-compiled function defined in deuglify.el.gz.
Signature
(gnus-article-outlook-unwrap-lines &optional NODISPLAY)
Documentation
Unwrap lines that appear to be wrapped citation lines.
You can control what lines will be unwrapped by frobbing
gnus-outlook-deuglify-unwrap-min and gnus-outlook-deuglify-unwrap-max,
indicating the minimum and maximum length of an unwrapped citation line. If
NODISPLAY is non-nil, don't redisplay the article buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/deuglify.el.gz
;;;###autoload
(defun gnus-article-outlook-unwrap-lines (&optional nodisplay)
"Unwrap lines that appear to be wrapped citation lines.
You can control what lines will be unwrapped by frobbing
`gnus-outlook-deuglify-unwrap-min' and `gnus-outlook-deuglify-unwrap-max',
indicating the minimum and maximum length of an unwrapped citation line. If
NODISPLAY is non-nil, don't redisplay the article buffer."
(interactive "P" gnus-article-mode gnus-summary-mode)
(let ((case-fold-search nil)
(inhibit-read-only t)
(cite-marks gnus-outlook-deuglify-cite-marks)
(no-wrap gnus-outlook-deuglify-no-wrap-chars)
(stop-chars gnus-outlook-deuglify-unwrap-stop-chars))
(gnus-with-article-buffer
(article-goto-body)
(while (re-search-forward
(concat
"^\\([ \t" cite-marks "]*\\)"
"\\([" cite-marks "].*[^\n " stop-chars "]\\)[ \t]?\n"
"\\1\\([^\n " cite-marks no-wrap "]+.*\\)$")
nil t)
(let ((len12 (- (match-end 2) (match-beginning 1)))
(len3 (- (match-end 3) (match-beginning 3))))
(when (and (> len12 gnus-outlook-deuglify-unwrap-min)
(< (+ len12 len3) gnus-outlook-deuglify-unwrap-max))
(replace-match "\\1\\2 \\3")
(goto-char (match-beginning 0)))))))
(unless nodisplay (gnus-outlook-display-article-buffer)))