emacs: make notmuch-show return its buffer
authorMark Walters <markwalters1009@gmail.com>
Tue, 24 Jul 2012 21:21:48 +0000 (22:21 +0100)
committerDavid Bremner <bremner@debian.org>
Sun, 2 Sep 2012 01:59:54 +0000 (22:59 -0300)
notmuch-pick uses the returned buffer to try and make sure it does not
close the wrong buffer.

emacs/notmuch-show.el

index c9fd867a909d1064eb847fe4e5cc33b7487e38c3..ce5ea6f9128e90d07e8b49b920f06624ce4a7bbc 100644 (file)
@@ -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))