From a9b66b3e7d1587091ac6de41d1db4e3d3ab53408 Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Tue, 24 Jul 2012 22:21:48 +0100 Subject: [PATCH] [PATCH 2/5] emacs: make notmuch-show return its buffer --- 3c/3110ca33c1d7d67c1befdc0f8517a374fd11da | 85 +++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 3c/3110ca33c1d7d67c1befdc0f8517a374fd11da diff --git a/3c/3110ca33c1d7d67c1befdc0f8517a374fd11da b/3c/3110ca33c1d7d67c1befdc0f8517a374fd11da new file mode 100644 index 000000000..cc1c95c11 --- /dev/null +++ b/3c/3110ca33c1d7d67c1befdc0f8517a374fd11da @@ -0,0 +1,85 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 3ABD6431FC4 + for ; Tue, 24 Jul 2012 14:22:03 -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 BvEH8-pd5tNe for ; + Tue, 24 Jul 2012 14:22:02 -0700 (PDT) +Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com + [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 9A92A431FAE + for ; Tue, 24 Jul 2012 14:22:02 -0700 (PDT) +Received: by mail-wi0-f179.google.com with SMTP id hq4so19767wib.2 + for ; Tue, 24 Jul 2012 14:22:02 -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=L+bG8fz7Wp/n2Ab94u+CO15k6UB5cwFNg/9Kq06/tz6hXSl7tuzZG8wYMvEr31r7KA + IrGK5uopt/kMJ7EMY3Xz4YCL35OQq0zNorTphzJrCN9L3+7aTVy2ANzHBI7c5rxgr7+n + 31qUlKOMxi9JmdS3XAIWzlXBj8yM9xpAdxHDt9ivlxMA9jEIRfVXa1Mspk0m1cq2mjZw + VcJ/CLxZh6lhgKLGhr/D8D1pBFmgZtfxHLfTTAq4jTznUJPYosCoXOvfNu8ZpqlCi2qX + uu509N1LL6j1o8MtlV6j8nu/ZkzuXMPnr+PNjVx0749cReBBXvRS+J0L/SSQtofsS1Il + ixcw== +Received: by 10.217.1.195 with SMTP id n45mr5855415wes.179.1343164922256; + Tue, 24 Jul 2012 14:22:02 -0700 (PDT) +Received: from localhost (94-192-233-223.zone6.bethere.co.uk. + [94.192.233.223]) by mx.google.com with ESMTPS id + t7sm9671120wix.6.2012.07.24.14.22.00 (version=TLSv1/SSLv3 cipher=OTHER); Tue, + 24 Jul 2012 14:22:01 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH 2/5] emacs: make notmuch-show return its buffer +Date: Tue, 24 Jul 2012 22:21:48 +0100 +Message-Id: <1343164911-31589-3-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.9.1 +In-Reply-To: <1343164911-31589-1-git-send-email-markwalters1009@gmail.com> +References: <1343164911-31589-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: Tue, 24 Jul 2012 21:22:03 -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 + -- 2.26.2