diff options
Diffstat (limited to 'lisp/mail')
| -rw-r--r-- | lisp/mail/metamail.el | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/lisp/mail/metamail.el b/lisp/mail/metamail.el index db2b5acf5f9..497fe73e3dc 100644 --- a/lisp/mail/metamail.el +++ b/lisp/mail/metamail.el | |||
| @@ -121,11 +121,21 @@ Its header part is not interpreted at all." | |||
| 121 | (append metamail-switches | 121 | (append metamail-switches |
| 122 | (list "-b" "-c" contype "-E" encoding)))) | 122 | (list "-b" "-c" contype "-E" encoding)))) |
| 123 | (metamail-region end (point-max) viewmode nil nodisplay)) | 123 | (metamail-region end (point-max) viewmode nil nodisplay)) |
| 124 | ;; Mode specific hack. | 124 | ;; This mode specific hack is no longer appropriate in mbox Rmail. |
| 125 | (cond ((eq major-mode 'rmail-mode) | 125 | ;; Pre-mbox, we have just modified the actual folder, so we |
| 126 | ;; Adjust the marker of this message if in Rmail mode buffer. | 126 | ;; update the message-vector with the new end position of the |
| 127 | (set-marker (aref rmail-message-vector (1+ rmail-current-message)) | 127 | ;; current message. In mbox Rmail, all we have done is modify a |
| 128 | (point-max)))) | 128 | ;; display copy of the message. Note also that point-max is a |
| 129 | ;; marker in the wrong buffer: the message-vector contains | ||
| 130 | ;; markers in rmail-view-buffer (which is not in rmail-mode). | ||
| 131 | ;; So this hack actually breaks the message-vector. | ||
| 132 | ;; If you're calling this on the actual rmail-view-buffer (or a | ||
| 133 | ;; non-swapped rmail-buffer), you would still need this hack. | ||
| 134 | ;; But you're not going to do that. | ||
| 135 | ;;; (cond ((eq major-mode 'rmail-mode) | ||
| 136 | ;;; ;; Adjust the marker of this message if in Rmail mode buffer. | ||
| 137 | ;;; (set-marker (aref rmail-message-vector (1+ rmail-current-message)) | ||
| 138 | ;;; (point-max)))) | ||
| 129 | ))) | 139 | ))) |
| 130 | 140 | ||
| 131 | ;;;###autoload | 141 | ;;;###autoload |