From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 9FE5C6DE10FB for ; Thu, 29 Aug 2019 10:24:49 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.294 X-Spam-Level: X-Spam-Status: No, score=0.294 tagged_above=-999 required=5 tests=[AWL=-0.358, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E2X_FAlnabdR for ; Thu, 29 Aug 2019 10:24:48 -0700 (PDT) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by arlo.cworth.org (Postfix) with ESMTPS id 827A96DE10F2 for ; Thu, 29 Aug 2019 10:24:48 -0700 (PDT) Received: by mail-wm1-f67.google.com with SMTP id 10so4544336wmp.3 for ; Thu, 29 Aug 2019 10:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=w1M5a1gwNJuNxi2iWh9j3OGmMktaH5BKyb7WL07lOLk=; b=yTJXzN1XQOxq/UTPcfQ0n7DTFvZDZDLb1hsDQ5eKWyKAR0GBRd4MP1XeyfB3ViKy7Q CE5201XX305BVIu9Ag2V1TV6l5ai435ebsqs1FfyOPfo0OODqZyIcMS9fUvvn7r+sCNh eQtfL/6GS0089kKpgzkAjNs7ayxCn+dvQMmcMaxG898JPZjzfc8NSvHrWpAlRlQQKxJM CQusW+4fBiTXYQiEvLdqWF1PMC5QwuSS9hYAZoFjPFPplxaWeNLBOzk3Ac/6xCO/sb1f c27PN7fDDhZV3yyuEz2EqVVkWXxnP8CI5l7g8uHzqHHgFQMER11XPsXolejRldsmr+lF imGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w1M5a1gwNJuNxi2iWh9j3OGmMktaH5BKyb7WL07lOLk=; b=GLsfF9dpRKR95CzhGdgMkm4IQhntTHl4HnoXKxVNZnK91wYYfOHzqSoDJ7fF/pLwXH cCyZw57cxZ88pxY4aYRMX12ZT06fyiZBJ/X8+uEbpbebLfZc9yw3luPeCCVlUA6UjjEu 9ErCH7J2MtVb0Ftd3zWW2Ojm/ZumRR6DMTdshNV9ntNJuKg4VZ57lI49tE5RDR062baO LNFUKiQ2pHc3ONZ3lfZiov3FkFK1DycYdGl6wGLQTxu17zIJHk35cKLVFhPc97GbjM8y OOzcojJZ9yKlRM9x2X0hBGdHHZ/LfN9UC7qQSXPsKcODbbHSlcNAKeKzdfjc8F+vTujW oCxA== X-Gm-Message-State: APjAAAXMRqmpPhjpZzVEKSthAfRI4AqtBE1UoiO8cDvyTOMBkDVWU0PS MHrHoVGVO9ttrn5dMWg55y0kwHioL98= X-Google-Smtp-Source: APXvYqz7aIDbf6gzUjhycL82Q/iDf0BmsyYDEcRFyWNsBwRiOjCUV2fQsiCj+q131ydu1muT4nTiSg== X-Received: by 2002:a1c:f90d:: with SMTP id x13mr5989315wmh.93.1567099486591; Thu, 29 Aug 2019 10:24:46 -0700 (PDT) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id c201sm6606627wmd.33.2019.08.29.10.24.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Aug 2019 10:24:45 -0700 (PDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 86da08df for ; Thu, 29 Aug 2019 17:24:42 +0000 (UTC) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v1 1/2] emacs: Stash the currently shown forest in a buffer local variable Date: Thu, 29 Aug 2019 18:24:40 +0100 Message-Id: <20190829172441.6849-2-dme@dme.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190829172441.6849-1-dme@dme.org> References: <87a7bxh8bm.fsf@len.workgroup> <20190829172441.6849-1-dme@dme.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Thu, 29 Aug 2019 17:24:49 -0000 --- emacs/notmuch-show.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index e13ca3d7..1e3834f2 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1165,8 +1165,12 @@ is t, hide the part initially and show the button." "Insert the thread THREAD at depth DEPTH in the current forest." (mapc (lambda (tree) (notmuch-show-insert-tree tree depth)) thread)) +(defvar notmuch-show--forest nil) +(make-variable-buffer-local 'notmuch-show--forest) + (defun notmuch-show-insert-forest (forest) "Insert the forest of threads FOREST." + (setq notmuch-show--forest forest) (mapc (lambda (thread) (notmuch-show-insert-thread thread 0)) forest)) (defvar notmuch-id-regexp -- 2.22.0