diff options
| author | Eli Zaretskii | 2019-11-19 17:59:02 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-11-19 17:59:02 +0200 |
| commit | a76a1d0c0b5c63bbed4eeeb7aa87269621956559 (patch) | |
| tree | c290e1c98868bc65a6dc222b22ddd92e3c07ac79 | |
| parent | 6f30642973975a317a9c94ceba737a4bafc89919 (diff) | |
| download | emacs-a76a1d0c0b5c63bbed4eeeb7aa87269621956559.tar.gz emacs-a76a1d0c0b5c63bbed4eeeb7aa87269621956559.zip | |
Ensure Rmail summary is updated after editing a message
* lisp/mail/rmailedit.el (rmail-cease-edit): If this mbox file
has a summary, update the summary after editing. (Bug#38193)
| -rw-r--r-- | lisp/mail/rmailedit.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/mail/rmailedit.el b/lisp/mail/rmailedit.el index 01d552469fa..43422ff3a41 100644 --- a/lisp/mail/rmailedit.el +++ b/lisp/mail/rmailedit.el | |||
| @@ -149,6 +149,7 @@ This function runs the hooks `text-mode-hook' and `rmail-edit-mode-hook'. | |||
| 149 | 149 | ||
| 150 | 150 | ||
| 151 | (declare-function rmail-summary-enable "rmailsum" ()) | 151 | (declare-function rmail-summary-enable "rmailsum" ()) |
| 152 | (declare-function rmail-summary-update-line "rmailsum" (n)) | ||
| 152 | 153 | ||
| 153 | (defun rmail-cease-edit () | 154 | (defun rmail-cease-edit () |
| 154 | "Finish editing message; switch back to Rmail proper." | 155 | "Finish editing message; switch back to Rmail proper." |
| @@ -340,10 +341,11 @@ This function runs the hooks `text-mode-hook' and `rmail-edit-mode-hook'. | |||
| 340 | ;; Delete previous body. This must be after all insertions at the end, | 341 | ;; Delete previous body. This must be after all insertions at the end, |
| 341 | ;; so the marker for the beginning of the next message isn't messed up. | 342 | ;; so the marker for the beginning of the next message isn't messed up. |
| 342 | (delete-region end (point-max))) | 343 | (delete-region end (point-max))) |
| 343 | (rmail-set-attribute rmail-edited-attr-index t)) | 344 | (rmail-set-attribute rmail-edited-attr-index t) |
| 344 | ;;;??? BROKEN perhaps. | 345 | (if (rmail-summary-exists) |
| 345 | ;;; (if (boundp 'rmail-summary-vector) | 346 | (let ((msgnum rmail-current-message)) |
| 346 | ;;; (aset rmail-summary-vector (1- rmail-current-message) nil)) | 347 | (with-current-buffer rmail-summary-buffer |
| 348 | (rmail-summary-update-line msgnum))))) | ||
| 347 | (rmail-show-message) | 349 | (rmail-show-message) |
| 348 | (rmail-toggle-header (if pruned 1 0)) | 350 | (rmail-toggle-header (if pruned 1 0)) |
| 349 | ;; Restore mime display state. | 351 | ;; Restore mime display state. |