diff options
| author | Gerd Moellmann | 2000-07-07 14:14:08 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-07-07 14:14:08 +0000 |
| commit | bdbeb193c44846f93d3cb94ef9272eda995535a1 (patch) | |
| tree | 627c8166ad0aa4a7655b8958bcdf4cda25014c8f | |
| parent | 2f72fd2f688e8ca407f26d5b79dca9463c16fae5 (diff) | |
| download | emacs-bdbeb193c44846f93d3cb94ef9272eda995535a1.tar.gz emacs-bdbeb193c44846f93d3cb94ef9272eda995535a1.zip | |
(rmail-clear-headers): Don't throw an error
if rmail-ignored-headers is nil.
(rmail-retry-failure): Bind rmail-ignored-headers and
rmail-displayed-headers to nil.
| -rw-r--r-- | lisp/mail/rmail.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 64060f5144f..e3040e6a283 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -1834,9 +1834,10 @@ Otherwise, delete all header fields whose names match `rmail-ignored-headers'." | |||
| 1834 | (or ignored-headers (setq ignored-headers rmail-ignored-headers)) | 1834 | (or ignored-headers (setq ignored-headers rmail-ignored-headers)) |
| 1835 | (save-restriction | 1835 | (save-restriction |
| 1836 | (narrow-to-region (point-min) (point)) | 1836 | (narrow-to-region (point-min) (point)) |
| 1837 | (while (progn | 1837 | (while (and ignored-headers |
| 1838 | (goto-char (point-min)) | 1838 | (progn |
| 1839 | (re-search-forward ignored-headers nil t)) | 1839 | (goto-char (point-min)) |
| 1840 | (re-search-forward ignored-headers nil t))) | ||
| 1840 | (beginning-of-line) | 1841 | (beginning-of-line) |
| 1841 | (delete-region (point) | 1842 | (delete-region (point) |
| 1842 | (if (re-search-forward "\n[^ \t]" nil t) | 1843 | (if (re-search-forward "\n[^ \t]" nil t) |
| @@ -3193,7 +3194,9 @@ specifying headers which should not be copied into the new message." | |||
| 3193 | ;; Insert original text as initial text of new draft message. | 3194 | ;; Insert original text as initial text of new draft message. |
| 3194 | ;; Bind inhibit-read-only since the header delimiter | 3195 | ;; Bind inhibit-read-only since the header delimiter |
| 3195 | ;; of the previous message was probably read-only. | 3196 | ;; of the previous message was probably read-only. |
| 3196 | (let ((inhibit-read-only t)) | 3197 | (let ((inhibit-read-only t) |
| 3198 | rmail-displayed-headers | ||
| 3199 | rmail-ignored-headers) | ||
| 3197 | (erase-buffer) | 3200 | (erase-buffer) |
| 3198 | (insert-buffer-substring rmail-this-buffer bounce-start bounce-end) | 3201 | (insert-buffer-substring rmail-this-buffer bounce-start bounce-end) |
| 3199 | (goto-char (point-min)) | 3202 | (goto-char (point-min)) |