Synch with Oort Gnus.
authoryamaoka <yamaoka>
Wed, 20 Nov 2002 11:18:04 +0000 (11:18 +0000)
committeryamaoka <yamaoka>
Wed, 20 Nov 2002 11:18:04 +0000 (11:18 +0000)
lisp/ChangeLog
lisp/gnus-sum.el

index 9f74389..ff5353a 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-20  Simon Josefsson  <jas@extundo.com>
+
+       * gnus-sum.el (gnus-summary-morse-message): Narrow to body.
+
 2002-11-19  Simon Josefsson  <jas@extundo.com>
 
        * gnus-sum.el (gnus-summary-morse-message): Load
index 1652bcb..775309e 100644 (file)
@@ -8574,14 +8574,17 @@ forward."
       (save-excursion
        (save-restriction
          (widen)
-         (let ((start (window-start))
-               (end (window-end))
+         (let ((pos (window-start))
                buffer-read-only)
-           (goto-char start)
-           (while (re-search-forward "·" end t)
+           (goto-char (point-min))
+           (when (message-goto-body)
+             (gnus-narrow-to-body))
+           (goto-char (point-min))
+           (while (re-search-forward "·" (point-max) t)
              (replace-match "."))
-           (unmorse-region start end)
-           (set-window-start (get-buffer-window (current-buffer)) start)))))))
+           (unmorse-region (point-min) (point-max))
+           (widen)
+           (set-window-start (get-buffer-window (current-buffer)) pos)))))))
 
 (defun gnus-summary-stop-page-breaking ()
   "Stop page breaking in the current article."