Mercurial > hg > xemacs-beta
diff lisp/gnus/gnus-art.el @ 114:8619ce7e4c50 r20-1b9
Import from CVS: tag r20-1b9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:21:54 +0200 |
parents | fe104dbd9147 |
children | 9f59509498e1 |
line wrap: on
line diff
--- a/lisp/gnus/gnus-art.el Mon Aug 13 09:20:50 2007 +0200 +++ b/lisp/gnus/gnus-art.el Mon Aug 13 09:21:54 2007 +0200 @@ -1018,6 +1018,17 @@ (while (re-search-forward "\n\n\n+" nil t) (replace-match "\n\n" t t))))) +(defun article-strip-leading-space () + "Remove all white space from the beginning of the lines in the article." + (interactive) + (save-excursion + (let ((inhibit-point-motion-hooks t) + buffer-read-only) + (goto-char (point-min)) + (search-forward "\n\n" nil t) + (while (re-search-forward "^[ \t]+" nil t) + (replace-match "" t t))))) + (defun article-strip-blank-lines () "Strip leading, trailing and multiple blank lines." (interactive) @@ -1669,6 +1680,7 @@ article-remove-trailing-blank-lines article-strip-leading-blank-lines article-strip-multiple-blank-lines + article-strip-leading-space article-strip-blank-lines article-date-local article-date-original