From 7cd3cd30039b54aefeab3dde83bbf14badaf7a60 Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Tue, 24 Jul 2012 22:21:48 +0100 Subject: [PATCH] emacs: make notmuch-show return its buffer notmuch-pick uses the returned buffer to try and make sure it does not close the wrong buffer. --- emacs/notmuch-show.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index c9fd867a..ce5ea6f9 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1038,7 +1038,8 @@ function is used." notmuch-show-parent-buffer parent-buffer notmuch-show-query-context query-context) (notmuch-show-build-buffer) - (notmuch-show-goto-first-wanted-message))) + (notmuch-show-goto-first-wanted-message) + (current-buffer))) (defun notmuch-show-build-buffer () (let ((inhibit-read-only t)) -- 2.43.0