;;; gnus-art.el --- article mode commands for Gnus
-;; Copyright (C) 1996 Free Software Foundation, Inc.
+;; Copyright (C) 1996,97 Free Software Foundation, Inc.
;; Author: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
;; Keywords: news
(save-restriction
(let ((buffer-read-only nil))
(when (gnus-article-narrow-to-signature)
- (gnus-article-hide-text-type (point-min) (point-max) 'signature)))))))
+ (gnus-article-hide-text-type
+ (point-min) (point-max) 'signature)))))))
(defun article-strip-leading-blank-lines ()
"Remove all blank lines from the beginning of the article."
(save-excursion
(let ((buffer-read-only nil)
(inhibit-point-motion-hooks t)
- (beg (point-min)))
- (while (gnus-goto-char (text-property-any
- beg (point-max) 'article-type type))
- (setq beg (point))
- (forward-char)
+ (end (point-min))
+ beg)
+ (while (setq beg (text-property-any end (point-max) 'article-type type))
+ (goto-char beg)
+ (setq end (or
+ (text-property-not-all beg (point-max) 'article-type type)
+ (point-max)))
(if hide
- (gnus-article-hide-text beg (point) gnus-hidden-properties)
- (gnus-article-unhide-text beg (point)))
- (setq beg (point)))
+ (gnus-article-hide-text beg end gnus-hidden-properties)
+ (gnus-article-unhide-text beg end))
+ (goto-char end))
t)))
(defconst article-time-units
(gnus-article-prev-page)
(select-window win)))
+(gnus-ems-redefine)
+
(provide 'gnus-art)
(run-hooks 'gnus-art-load-hook)