Mercurial > emacs
changeset 102375:6a06f943ee6d
(rmail-summary-search): Ensure the selected message shows.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 03 Mar 2009 08:13:56 +0000 |
parents | 8e96a66e8df3 |
children | 3c6dd203caec |
files | lisp/ChangeLog lisp/mail/rmailsum.el |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Mar 03 07:36:19 2009 +0000 +++ b/lisp/ChangeLog Tue Mar 03 08:13:56 2009 +0000 @@ -11,6 +11,7 @@ (rmail-summary-mode-map): Bind C-o to output-as-seen, not output. Make the output menu-items consistent with rmail-mode-map. Bind rmail-summary-by-senders to C-M-f. + (rmail-summary-search): Ensure the selected message shows. 2009-03-03 Kenichi Handa <handa@m17n.org>
--- a/lisp/mail/rmailsum.el Tue Mar 03 07:36:19 2009 +0000 +++ b/lisp/mail/rmailsum.el Tue Mar 03 08:13:56 2009 +0000 @@ -1034,6 +1034,8 @@ (define-key rmail-summary-mode-map "Q" 'rmail-summary-wipe) (define-key rmail-summary-mode-map "r" 'rmail-summary-reply) (define-key rmail-summary-mode-map "s" 'rmail-summary-expunge-and-save) + ;; See rms's comment in rmail.el +;;; (define-key rmail-summary-mode-map "\er" 'rmail-summary-search-backward) (define-key rmail-summary-mode-map "\es" 'rmail-summary-search) (define-key rmail-summary-mode-map "t" 'rmail-summary-toggle-header) (define-key rmail-summary-mode-map "u" 'rmail-summary-undelete) @@ -1535,11 +1537,13 @@ (prefix-numeric-value current-prefix-arg)))) ;; Don't use save-excursion because that prevents point from moving ;; properly in the summary buffer. - (let ((buffer (current-buffer))) + (let ((buffer (current-buffer)) + (selwin (selected-window))) (unwind-protect (progn - (set-buffer rmail-buffer) + (pop-to-buffer rmail-buffer) (rmail-search regexp n)) + (select-window selwin) (set-buffer buffer)))) (defun rmail-summary-toggle-header ()