From a2925d11384ba2f19bc46160633bf8a9030e3498 Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Mon, 13 Feb 2012 01:20:13 +0000 Subject: [PATCH] [RFC PATCH v3 09/11] emacs: make notmuch-show return its buffer --- f9/cfac3c57ee158f6b61d33b5e90e91fa376a18b | 82 +++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 f9/cfac3c57ee158f6b61d33b5e90e91fa376a18b diff --git a/f9/cfac3c57ee158f6b61d33b5e90e91fa376a18b b/f9/cfac3c57ee158f6b61d33b5e90e91fa376a18b new file mode 100644 index 000000000..730a5bef8 --- /dev/null +++ b/f9/cfac3c57ee158f6b61d33b5e90e91fa376a18b @@ -0,0 +1,82 @@ +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 8C872429E5B + for ; Sun, 12 Feb 2012 17:20:07 -0800 (PST) +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 WFi0bRZf4Z71 for ; + Sun, 12 Feb 2012 17:20:06 -0800 (PST) +Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com + [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + A975441ED83 for ; Sun, 12 Feb 2012 17:19:32 -0800 + (PST) +Received: by mail-ww0-f45.google.com with SMTP id dt12so3923384wgb.2 + for ; Sun, 12 Feb 2012 17:19:32 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; + h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; + bh=W4Fab4EQaJjjhsFtFXzc/YfZvjj+K88DRcNt//OZfxw=; + b=FoliJ2WFrC+ZQsT0ftzqtQH5GkID9t7OALIl2HdX745JQPexAf1kvoEY2vdrTavijn + 9T7OP+BPmtRv8dhqE4GOGTcwc6lqMuPMt9kOwRJQLJikBznyzpzkjNqJpW3aXRW1hAt8 + rASqcAY47907k7IYTqFY++/SEXRizh0pILblQ= +Received: by 10.180.101.200 with SMTP id fi8mr21162785wib.20.1329095972430; + Sun, 12 Feb 2012 17:19:32 -0800 (PST) +Received: from localhost (94-192-233-223.zone6.bethere.co.uk. + [94.192.233.223]) by mx.google.com with ESMTPS id + dw7sm18425321wib.4.2012.02.12.17.19.31 (version=TLSv1/SSLv3 cipher=OTHER); + Sun, 12 Feb 2012 17:19:31 -0800 (PST) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [RFC PATCH v3 09/11] emacs: make notmuch-show return its buffer +Date: Mon, 13 Feb 2012 01:20:13 +0000 +Message-Id: <1329096015-8078-10-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.2.3 +In-Reply-To: <1329072579-27340-1-git-send-email-markwalters1009@gmail.com> +References: <1329072579-27340-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: Mon, 13 Feb 2012 01:20:08 -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 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 + -- 2.26.2