diff options
| author | Karl Heuer | 1995-04-25 22:26:42 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-04-25 22:26:42 +0000 |
| commit | cde6342073b965097a827f7ae155c178cb9751fd (patch) | |
| tree | 2b6cf8f78dbb5076f0e783094278fe479b681360 | |
| parent | 7911ecc8d80df00aae54eaa957a502523f88f418 (diff) | |
| download | emacs-cde6342073b965097a827f7ae155c178cb9751fd.tar.gz emacs-cde6342073b965097a827f7ae155c178cb9751fd.zip | |
(rmail-edit-current-message): Use force-mode-line-update.
(rmail-cease-edit): Use force-mode-line-update.
| -rw-r--r-- | lisp/mail/rmailedit.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/mail/rmailedit.el b/lisp/mail/rmailedit.el index 92c4e1bf544..b2cf93d2338 100644 --- a/lisp/mail/rmailedit.el +++ b/lisp/mail/rmailedit.el | |||
| @@ -63,8 +63,7 @@ to return to regular RMAIL: | |||
| 63 | (make-local-variable 'rmail-old-text) | 63 | (make-local-variable 'rmail-old-text) |
| 64 | (setq rmail-old-text (buffer-substring (point-min) (point-max))) | 64 | (setq rmail-old-text (buffer-substring (point-min) (point-max))) |
| 65 | (setq buffer-read-only nil) | 65 | (setq buffer-read-only nil) |
| 66 | (set-buffer-modified-p (buffer-modified-p)) | 66 | (force-mode-line-update) |
| 67 | ;; Make mode line update. | ||
| 68 | (if (and (eq (key-binding "\C-c\C-c") 'rmail-cease-edit) | 67 | (if (and (eq (key-binding "\C-c\C-c") 'rmail-cease-edit) |
| 69 | (eq (key-binding "\C-c\C-]") 'rmail-abort-edit)) | 68 | (eq (key-binding "\C-c\C-]") 'rmail-abort-edit)) |
| 70 | (message "Editing: Type C-c C-c to return to Rmail, C-c C-] to abort") | 69 | (message "Editing: Type C-c C-c to return to Rmail, C-c C-] to abort") |
| @@ -87,8 +86,7 @@ to return to regular RMAIL: | |||
| 87 | (set-marker (aref rmail-message-vector (1+ rmail-current-message)) | 86 | (set-marker (aref rmail-message-vector (1+ rmail-current-message)) |
| 88 | (point))) | 87 | (point))) |
| 89 | (let ((old rmail-old-text)) | 88 | (let ((old rmail-old-text)) |
| 90 | ;; Update the mode line. | 89 | (force-mode-line-update) |
| 91 | (set-buffer-modified-p (buffer-modified-p)) | ||
| 92 | (rmail-mode-1) | 90 | (rmail-mode-1) |
| 93 | (if (and (= (length old) (- (point-max) (point-min))) | 91 | (if (and (= (length old) (- (point-max) (point-min))) |
| 94 | (string= old (buffer-substring (point-min) (point-max)))) | 92 | (string= old (buffer-substring (point-min) (point-max)))) |