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 ABE3D414BA1 for ; Wed, 1 Feb 2012 06:39:34 -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 7Op372uBhhhs for ; Wed, 1 Feb 2012 06:39:34 -0800 (PST) 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 3BE274196FF for ; Wed, 1 Feb 2012 06:39:33 -0800 (PST) Received: by mail-we0-f181.google.com with SMTP id b10so1130037wer.26 for ; Wed, 01 Feb 2012 06:39:32 -0800 (PST) Received: by 10.216.133.141 with SMTP id q13mr2935575wei.1.1328107172885; Wed, 01 Feb 2012 06:39:32 -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 t6sm45188249wid.1.2012.02.01.06.39.30 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Feb 2012 06:39:32 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 41218A099D; Wed, 1 Feb 2012 14:39:26 +0000 (GMT) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v5 6/6] emacs: Check that the parent buffer is alive before using it. Date: Wed, 1 Feb 2012 14:39:24 +0000 Message-Id: <1328107164-10520-7-git-send-email-dme@dme.org> X-Mailer: git-send-email 1.7.8.3 In-Reply-To: <1328107164-10520-1-git-send-email-dme@dme.org> References: <1327486729-18052-1-git-send-email-dme@dme.org> <1328107164-10520-1-git-send-email-dme@dme.org> 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, 01 Feb 2012 14:39:34 -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 1b31166..895feb5 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1671,7 +1671,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