diff options
| author | Glenn Morris | 2009-03-03 08:13:56 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-03-03 08:13:56 +0000 |
| commit | a5110f66bd04353e649f3d9bbe4af2a1921668da (patch) | |
| tree | ed1109ace825c2f762874d1a3efeb275c138b6f9 | |
| parent | ac203e0177bcd99126c3b0b42d99401a2c4f7c3b (diff) | |
| download | emacs-a5110f66bd04353e649f3d9bbe4af2a1921668da.tar.gz emacs-a5110f66bd04353e649f3d9bbe4af2a1921668da.zip | |
(rmail-summary-search): Ensure the selected message shows.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/mail/rmailsum.el | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e750d494cd0..6e32360325f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | (rmail-summary-mode-map): Bind C-o to output-as-seen, not output. | 11 | (rmail-summary-mode-map): Bind C-o to output-as-seen, not output. |
| 12 | Make the output menu-items consistent with rmail-mode-map. | 12 | Make the output menu-items consistent with rmail-mode-map. |
| 13 | Bind rmail-summary-by-senders to C-M-f. | 13 | Bind rmail-summary-by-senders to C-M-f. |
| 14 | (rmail-summary-search): Ensure the selected message shows. | ||
| 14 | 15 | ||
| 15 | 2009-03-03 Kenichi Handa <handa@m17n.org> | 16 | 2009-03-03 Kenichi Handa <handa@m17n.org> |
| 16 | 17 | ||
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index 37f97962efc..bad78369f7b 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -1034,6 +1034,8 @@ Search, the `unseen' attribute is restored.") | |||
| 1034 | (define-key rmail-summary-mode-map "Q" 'rmail-summary-wipe) | 1034 | (define-key rmail-summary-mode-map "Q" 'rmail-summary-wipe) |
| 1035 | (define-key rmail-summary-mode-map "r" 'rmail-summary-reply) | 1035 | (define-key rmail-summary-mode-map "r" 'rmail-summary-reply) |
| 1036 | (define-key rmail-summary-mode-map "s" 'rmail-summary-expunge-and-save) | 1036 | (define-key rmail-summary-mode-map "s" 'rmail-summary-expunge-and-save) |
| 1037 | ;; See rms's comment in rmail.el | ||
| 1038 | ;;; (define-key rmail-summary-mode-map "\er" 'rmail-summary-search-backward) | ||
| 1037 | (define-key rmail-summary-mode-map "\es" 'rmail-summary-search) | 1039 | (define-key rmail-summary-mode-map "\es" 'rmail-summary-search) |
| 1038 | (define-key rmail-summary-mode-map "t" 'rmail-summary-toggle-header) | 1040 | (define-key rmail-summary-mode-map "t" 'rmail-summary-toggle-header) |
| 1039 | (define-key rmail-summary-mode-map "u" 'rmail-summary-undelete) | 1041 | (define-key rmail-summary-mode-map "u" 'rmail-summary-undelete) |
| @@ -1535,11 +1537,13 @@ Interactively, empty argument means use same regexp used last time." | |||
| 1535 | (prefix-numeric-value current-prefix-arg)))) | 1537 | (prefix-numeric-value current-prefix-arg)))) |
| 1536 | ;; Don't use save-excursion because that prevents point from moving | 1538 | ;; Don't use save-excursion because that prevents point from moving |
| 1537 | ;; properly in the summary buffer. | 1539 | ;; properly in the summary buffer. |
| 1538 | (let ((buffer (current-buffer))) | 1540 | (let ((buffer (current-buffer)) |
| 1541 | (selwin (selected-window))) | ||
| 1539 | (unwind-protect | 1542 | (unwind-protect |
| 1540 | (progn | 1543 | (progn |
| 1541 | (set-buffer rmail-buffer) | 1544 | (pop-to-buffer rmail-buffer) |
| 1542 | (rmail-search regexp n)) | 1545 | (rmail-search regexp n)) |
| 1546 | (select-window selwin) | ||
| 1543 | (set-buffer buffer)))) | 1547 | (set-buffer buffer)))) |
| 1544 | 1548 | ||
| 1545 | (defun rmail-summary-toggle-header () | 1549 | (defun rmail-summary-toggle-header () |