diff options
| author | Richard M. Stallman | 1995-03-31 19:36:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-03-31 19:36:02 +0000 |
| commit | 387f203c002d4dcef2999cba91428debff161df6 (patch) | |
| tree | fdb4a6ea096438ade49b153bbbc10caa37ffdf31 | |
| parent | c422836dc1798f1b9ce54915babb836dc266a412 (diff) | |
| download | emacs-387f203c002d4dcef2999cba91428debff161df6.tar.gz emacs-387f203c002d4dcef2999cba91428debff161df6.zip | |
(rmail-summary-toggle-header): Make header visible in message buffer.
| -rw-r--r-- | lisp/mail/rmailsum.el | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index 76a31c1f0a4..49b702143a9 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -1155,7 +1155,19 @@ Interactively, empty argument means use same regexp used last time." | |||
| 1155 | (interactive) | 1155 | (interactive) |
| 1156 | (save-excursion | 1156 | (save-excursion |
| 1157 | (set-buffer rmail-buffer) | 1157 | (set-buffer rmail-buffer) |
| 1158 | (rmail-toggle-header))) | 1158 | (rmail-toggle-header)) |
| 1159 | ;; Inside save-excursion, some changes to point in the RMAIL buffer are lost. | ||
| 1160 | ;; Set point to point-min in the RMAIL buffer, if it is visible. | ||
| 1161 | (let ((window (get-buffer-window rmail-buffer))) | ||
| 1162 | (if window | ||
| 1163 | ;; Using save-window-excursion would lose the new value of point. | ||
| 1164 | (let ((owin (selected-window))) | ||
| 1165 | (unwind-protect | ||
| 1166 | (progn | ||
| 1167 | (select-window window) | ||
| 1168 | (goto-char (point-min))) | ||
| 1169 | (select-window owin)))))) | ||
| 1170 | |||
| 1159 | 1171 | ||
| 1160 | (defun rmail-summary-add-label (label) | 1172 | (defun rmail-summary-add-label (label) |
| 1161 | "Add LABEL to labels associated with current Rmail message. | 1173 | "Add LABEL to labels associated with current Rmail message. |