Mercurial > emacs
changeset 6582:bac8e17d51b3
(rmail-sort-from-summary): Preserve window selection.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 30 Mar 1994 02:21:19 +0000 |
parents | 3a0db3b2366c |
children | 363f38b4648a |
files | lisp/mail/rmailsum.el |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmailsum.el Wed Mar 30 02:14:11 1994 +0000 +++ b/lisp/mail/rmailsum.el Wed Mar 30 02:21:19 1994 +0000 @@ -1111,8 +1111,10 @@ (defun rmail-sort-from-summary (sortfun reverse) "Sort Rmail messages from Summary buffer and update it after sorting." (require 'rmailsort) - (pop-to-buffer rmail-buffer) - (funcall sortfun reverse) - (rmail-summary)) + (let ((selwin (selected-window))) + (unwind-protect + (progn (pop-to-buffer rmail-buffer) + (funcall sortfun reverse)) + (select-window selwin)))) ;;; rmailsum.el ends here