[RFC PATCH v3 09/11] emacs: make notmuch-show return its buffer

Subject: [RFC PATCH v3 09/11] emacs: make notmuch-show return its buffer

Date: Mon, 13 Feb 2012 01:20:13 +0000

To: notmuch@notmuchmail.org

Cc:

From: Mark Walters


notmuch-pick uses the returned buffer to try and make sure it does not
close the wrong buffer.
---
 emacs/notmuch-show.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 244e18d..8a8acf6 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1048,7 +1048,8 @@ function is used."
     (setq notmuch-show-thread-id thread-id
 	  notmuch-show-parent-buffer parent-buffer
 	  notmuch-show-query-context query-context)
-    (notmuch-show-worker)))
+    (notmuch-show-worker)
+    (current-buffer)))
 
 (defun notmuch-show-worker ()
   (let ((inhibit-read-only t))
-- 
1.7.2.3


Thread: