From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 236A1421169 for ; Wed, 11 Jul 2012 11:57:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.201 X-Spam-Level: X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sjVLst5SXE7O for ; Wed, 11 Jul 2012 11:57:28 -0700 (PDT) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9858C42116C for ; Wed, 11 Jul 2012 11:57:26 -0700 (PDT) Received: by mail-we0-f181.google.com with SMTP id t57so1096499wey.26 for ; Wed, 11 Jul 2012 11:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=GBZc1PVLkSAFnQJw8vjXvCTjtP2pzqEtOC/uvMAH+5I=; b=XHyT9qGaYuUc8yoTN0VYbJe5bSikS+6cNra3V9uY/TMq32IXkEJqPiUy6zIys6MO+j 6/nNaLGMB4jdBPBG+zf3xBwvigpW4o3Ih3bBqWDUg+bCWD4x7PXwsmNIK+aMgn2bUHxu D9K1T7V8AjdHiW7Kufv6Z8Sja6G4LZ6yeVUIvxpsx3vBy5eYWFeGesvedbLeQ7ePemaB xBro83oiBhYWznTjDjpBkz+0gv3QyNOQeC5xtzpSMSMko7Q3l/vbQczW0sLv2UaYsvbS lHPNp60awv2K1nZT7hKtIDSWDeJ6VQbrZKiOnfu285gRc5MqVMu9DfjYuah7RJH5/Yp6 1hKQ== Received: by 10.180.78.99 with SMTP id a3mr49304484wix.15.1342033046279; Wed, 11 Jul 2012 11:57:26 -0700 (PDT) Received: from localhost (94-192-233-223.zone6.bethere.co.uk. [94.192.233.223]) by mx.google.com with ESMTPS id cl8sm35768355wib.10.2012.07.11.11.57.24 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Jul 2012 11:57:25 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH 3/3] emacs: make notmuch-show return its buffer Date: Wed, 11 Jul 2012 19:57:07 +0100 Message-Id: <1342033027-30286-4-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1342033027-30286-1-git-send-email-markwalters1009@gmail.com> References: <1342033027-30286-1-git-send-email-markwalters1009@gmail.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2012 18:57:30 -0000 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 6335d45..1cabd17 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1031,7 +1031,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)) -- 1.7.9.1