From d2f3663311780f272b1df2b9b852f5f1066ab438 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Wed, 8 Feb 2012 08:02:17 +0000 Subject: [PATCH] [PATCH v8 6/8] emacs: Check that the parent buffer is alive before using it. --- e6/493eb902f1ec8ec10cde839339c8513ae7709f | 79 +++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 e6/493eb902f1ec8ec10cde839339c8513ae7709f diff --git a/e6/493eb902f1ec8ec10cde839339c8513ae7709f b/e6/493eb902f1ec8ec10cde839339c8513ae7709f new file mode 100644 index 000000000..7036b9fd3 --- /dev/null +++ b/e6/493eb902f1ec8ec10cde839339c8513ae7709f @@ -0,0 +1,79 @@ +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 AE28D431FC3 + for ; Wed, 8 Feb 2012 00:02:42 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[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 IIdi076ZeORb for ; + Wed, 8 Feb 2012 00:02:41 -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 + 87D84431FBF for ; Wed, 8 Feb 2012 00:02:32 -0800 + (PST) +Received: by wgbdt12 with SMTP id dt12so226271wgb.2 + for ; Wed, 08 Feb 2012 00:02:31 -0800 (PST) +MIME-Version: 1.0 +Received: by 10.216.133.2 with SMTP id p2mr6161115wei.54.1328688151319; + Wed, 08 Feb 2012 00:02:31 -0800 (PST) +Received: from hotblack-desiato.hh.sledj.net + (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) + by mx.google.com with ESMTPS id n5sm476768wiw.7.2012.02.08.00.02.27 + (version=TLSv1/SSLv3 cipher=OTHER); + Wed, 08 Feb 2012 00:02:29 -0800 (PST) +Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) + id 50E37A3807; Wed, 8 Feb 2012 08:02:21 +0000 (GMT) +From: David Edmondson +To: notmuch@notmuchmail.org +Subject: [PATCH v8 6/8] emacs: Check that the parent buffer is alive before + using it. +Date: Wed, 8 Feb 2012 08:02:17 +0000 +Message-Id: <1328688139-3865-9-git-send-email-dme@dme.org> +X-Mailer: git-send-email 1.7.8.3 +In-Reply-To: <1328688139-3865-1-git-send-email-dme@dme.org> +References: <1327486729-18052-1-git-send-email-dme@dme.org> + <1328688139-3865-1-git-send-email-dme@dme.org> +X-Gm-Message-State: + ALoCoQlpwErJJmX21hV6+8HLYAEMH8MZEjZPVtNQGQsigYxUwxnH0y79U9S2bd/3cqXl+T25vupe +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, 08 Feb 2012 08:02:43 -0000 + +--- + emacs/notmuch-show.el | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el +index a668625..bb46523 100644 +--- a/emacs/notmuch-show.el ++++ b/emacs/notmuch-show.el +@@ -1686,7 +1686,7 @@ added." + (interactive "P") + (let ((parent-buffer notmuch-show-parent-buffer)) + (notmuch-kill-this-buffer) +- (when parent-buffer ++ (when (buffer-live-p parent-buffer) + (switch-to-buffer parent-buffer) + (notmuch-search-next-thread) + (if show-next +-- +1.7.8.3 + -- 2.26.2