diff options
| author | Karl Heuer | 1994-04-07 07:26:49 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-07 07:26:49 +0000 |
| commit | 56b257136fce59b6d3178211f1c7cdfc7f899181 (patch) | |
| tree | e386579e9ad738e949abb7540b4cba1060542709 | |
| parent | 9ed287b0418165f173eabde165b1da3ff75442c3 (diff) | |
| download | emacs-56b257136fce59b6d3178211f1c7cdfc7f899181.tar.gz emacs-56b257136fce59b6d3178211f1c7cdfc7f899181.zip | |
Fix previous change.
| -rw-r--r-- | lisp/mail/rmailedit.el | 8 | ||||
| -rw-r--r-- | lisp/mail/rmailsum.el | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/lisp/mail/rmailedit.el b/lisp/mail/rmailedit.el index 9d084d0aeeb..5725ce4f64d 100644 --- a/lisp/mail/rmailedit.el +++ b/lisp/mail/rmailedit.el | |||
| @@ -51,7 +51,9 @@ to return to regular RMAIL: | |||
| 51 | (setq mode-line-modified (default-value 'mode-line-modified)) | 51 | (setq mode-line-modified (default-value 'mode-line-modified)) |
| 52 | (setq mode-line-format (default-value 'mode-line-format))) | 52 | (setq mode-line-format (default-value 'mode-line-format))) |
| 53 | (if (rmail-summary-exists) | 53 | (if (rmail-summary-exists) |
| 54 | (rmail-summary-disable)) | 54 | (save-excursion |
| 55 | (set-buffer rmail-summary-buffer) | ||
| 56 | (rmail-summary-disable))) | ||
| 55 | (run-hooks 'text-mode-hook 'rmail-edit-mode-hook)) | 57 | (run-hooks 'text-mode-hook 'rmail-edit-mode-hook)) |
| 56 | 58 | ||
| 57 | (defun rmail-edit-current-message () | 59 | (defun rmail-edit-current-message () |
| @@ -74,7 +76,9 @@ to return to regular RMAIL: | |||
| 74 | "Finish editing message; switch back to Rmail proper." | 76 | "Finish editing message; switch back to Rmail proper." |
| 75 | (interactive) | 77 | (interactive) |
| 76 | (if (rmail-summary-exists) | 78 | (if (rmail-summary-exists) |
| 77 | (rmail-summary-enable)) | 79 | (save-excursion |
| 80 | (set-buffer rmail-summary-buffer) | ||
| 81 | (rmail-summary-enable))) | ||
| 78 | ;; Make sure buffer ends with a newline. | 82 | ;; Make sure buffer ends with a newline. |
| 79 | (save-excursion | 83 | (save-excursion |
| 80 | (goto-char (point-max)) | 84 | (goto-char (point-max)) |
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index a8428e065b5..3584c9cfad2 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -531,18 +531,14 @@ Commands for sorting the summary: | |||
| 531 | 531 | ||
| 532 | ;; Summary features need to be disabled during edit mode. | 532 | ;; Summary features need to be disabled during edit mode. |
| 533 | (defun rmail-summary-disable () | 533 | (defun rmail-summary-disable () |
| 534 | (save-excursion | 534 | (use-local-map text-mode-map) |
| 535 | (set-buffer rmail-summary-buffer) | 535 | (remove-hook 'post-command-hook 'rmail-summary-rmail-update) |
| 536 | (use-local-map text-mode-map) | 536 | (setq revert-buffer-function nil)) |
| 537 | (remove-hook 'post-command-hook 'rmail-summary-rmail-update) | ||
| 538 | (setq revert-buffer-function nil))) | ||
| 539 | 537 | ||
| 540 | (defun rmail-summary-enable () | 538 | (defun rmail-summary-enable () |
| 541 | (save-excursion | 539 | (use-local-map rmail-summary-mode-map) |
| 542 | (set-buffer rmail-summary-buffer) | 540 | (add-hook 'post-command-hook 'rmail-summary-rmail-update) |
| 543 | (use-local-map rmail-summary-mode-map) | 541 | (setq revert-buffer-function 'rmail-update-summary)) |
| 544 | (add-hook 'post-command-hook 'rmail-summary-rmail-update) | ||
| 545 | (setq revert-buffer-function 'rmail-update-summary))) | ||
| 546 | 542 | ||
| 547 | ;; Show in Rmail the message described by the summary line that point is on, | 543 | ;; Show in Rmail the message described by the summary line that point is on, |
| 548 | ;; but only if the Rmail buffer is already visible. | 544 | ;; but only if the Rmail buffer is already visible. |