Mercurial > emacs
comparison lisp/mail/rmail.el @ 22435:98b909125b87
(rmail-toggle-header): Fix previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 11 Jun 1998 07:38:23 +0000 |
parents | aaa851980d1e |
children | 927f6e2f680b |
comparison
equal
deleted
inserted
replaced
22434:e283153313b6 | 22435:98b909125b87 |
---|---|
528 ;; unibyte. We must make it multibyte if necessary. | 528 ;; unibyte. We must make it multibyte if necessary. |
529 (if (and rmail-enable-multibyte | 529 (if (and rmail-enable-multibyte |
530 (not enable-multibyte-characters)) | 530 (not enable-multibyte-characters)) |
531 (set-buffer-multibyte t)) | 531 (set-buffer-multibyte t)) |
532 (goto-char (point-max))) | 532 (goto-char (point-max))) |
533 ;; Unconditionally rescan to find all the messages. | 533 ;; If necessary, scan to find all the messages. |
534 ;; It is useful to have M-x rmail as a way to do that. | 534 (rmail-maybe-set-message-counters) |
535 (rmail-set-message-counters) | |
536 (unwind-protect | 535 (unwind-protect |
537 (unless (and (not file-name-arg) | 536 (unless (and (not file-name-arg) |
538 (rmail-get-new-mail)) | 537 (rmail-get-new-mail)) |
539 (rmail-show-message (rmail-first-unseen-message))) | 538 (rmail-show-message (rmail-first-unseen-message))) |
540 (progn | 539 (progn |
1795 (end-of-line) | 1794 (end-of-line) |
1796 (re-search-backward "^[-A-Za-z0-9]+:" nil t)) | 1795 (re-search-backward "^[-A-Za-z0-9]+:" nil t)) |
1797 (match-string 0)))) | 1796 (match-string 0)))) |
1798 (old-screen-line (rmail-count-screen-lines (window-start) (point)))) | 1797 (old-screen-line (rmail-count-screen-lines (window-start) (point)))) |
1799 (save-excursion | 1798 (save-excursion |
1800 (narrow-to-region (rmail-msgbeg rmail-current-message) (point-max)) | 1799 (narrow-to-region (rmail-msgbeg rmail-current-message) (point-max)) |
1801 (if pruned | 1800 (if pruned |
1802 (progn (goto-char (point-min)) | 1801 (let (new-start) |
1803 (forward-line 1) | 1802 (goto-char (point-min)) |
1804 (delete-char 1) | 1803 (forward-line 1) |
1805 (insert ?0) | 1804 ;; Change 1 to 0. |
1806 (forward-line 1) | 1805 (delete-char 1) |
1807 (let ((case-fold-search t)) | 1806 (insert ?0) |
1808 (while (looking-at "Summary-Line:\\|Mail-From:") | 1807 ;; Insert new EOOH line at the proper place. |
1809 (forward-line 1))) | 1808 (forward-line 1) |
1810 (insert "*** EOOH ***\n") | 1809 (let ((case-fold-search t)) |
1811 (forward-char -1) | 1810 (while (looking-at "Summary-Line:\\|Mail-From:") |
1812 (search-forward "\n*** EOOH ***\n") | 1811 (forward-line 1))) |
1813 (narrow-to-region (point) (point-max))) | 1812 (insert "*** EOOH ***\n") |
1813 (setq new-start (point)) | |
1814 ;; Delete the old reformatted header. | |
1815 (forward-char -1) | |
1816 (search-forward "\n*** EOOH ***\n") | |
1817 (forward-line -1) | |
1818 (let ((start (point))) | |
1819 (search-forward "\n\n") | |
1820 (delete-region start (point))) | |
1821 ;; Narrow to after the new EOOH line. | |
1822 (narrow-to-region new-start (point-max))) | |
1814 (rmail-reformat-message (point-min) (point-max)))) | 1823 (rmail-reformat-message (point-min) (point-max)))) |
1815 (cond (at-point-min | 1824 (cond (at-point-min |
1816 (goto-char (point-min))) | 1825 (goto-char (point-min))) |
1817 (on-header | 1826 (on-header |
1818 (goto-char (point-min)) | 1827 (goto-char (point-min)) |