From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wPdVMyNz3GFUqAAAgWs5BA (envelope-from ) for ; Mon, 10 Jan 2022 18:55:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6N/3KyNz3GFpAAAAG6o9tA (envelope-from ) for ; Mon, 10 Jan 2022 18:55:47 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 006F028C53 for ; Mon, 10 Jan 2022 18:55:47 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 05C615F73D; Mon, 10 Jan 2022 17:55:42 +0000 (UTC) Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by mail.notmuchmail.org (Postfix) with ESMTPS id 9557D5F735 for ; Mon, 10 Jan 2022 17:55:39 +0000 (UTC) Received: from [2001:470:142:3::e] (port=52450 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6ytN-0006em-3B; Mon, 10 Jan 2022 12:55:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=XU8oXSL9zpFtus27hctbn9wsSEGTqMKZeAhn37xFdtg=; b=iVPrz8xPYILWVV tda9fGYTOQshsSRKhus2CbJUmwjuUS6hpKbP8xsxwwVCPrW4lHjbzMVbuzbVnVZUX2S2cRPe3Kl1X b3HkQbywfgoRpZhCOexLjcmGOao5WTlCpTe/jGnFzpmA37CoAHn2IPHLn8XHUHm0hNzXPUtD6p6Pe U0lp3Vn1KQTuPWvICkvrmt7Shhck14AEo2SO/nk4Um7ArjjZ++pXuSzRymetK3qrH8QrINalxLac2 i2Uuoy8KFI00XakYK1w8K0mmonO7BL39qH2wkXcWHknrnbsBa3cH4dxJDxG4VYm6wTR4BvYr+ktaI bu3uGF6Vd2+4gb19ZsXQ==; Received: from 92.40.179.55.threembb.co.uk ([92.40.179.55]:39305 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6ytH-0004VA-Vp; Mon, 10 Jan 2022 12:55:37 -0500 From: jao To: notmuch@notmuchmail.org Subject: [PATCH v2 1/2] emacs: use query name for tree saved-search buffer names Date: Mon, 10 Jan 2022 17:55:24 +0000 Message-Id: <20220110175525.1450630-1-jao@gnu.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: AON6R3C2IIHDHYADSQXVVDFU673MC45E X-Message-ID-Hash: AON6R3C2IIHDHYADSQXVVDFU673MC45E X-MailFrom: jao@gnu.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: jao X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641837347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qI6enugeYhZdQ484e7P78kiZaFgd5D9zTHZj8fGFa/4=; b=g25NSdFf+rCh95XeBzUIZmNSxoZRhe72ObboNT5AzmIXSdtWkhZQcyErSEia5IkWhnfllM G/+wCRx3FcHJS/aTLx8mR5D9DUeZ6HcoWxU3YSI6lhYxN1Ogj9Agx/ml4GW4FTwrWtQh+2 yLvPweOx8U/vOJRyOltsGcPFP6eiDaxPBhcYdPBGEsQCBC0jogNs4EIvSK/+aU+FgLr3CM esjKOq+DRhMW0yT8BUp31eMzFBSkAllyRNsQtIN4SlXzEoem3jXjmdL5+zkDvlTqkayRka HZWLYOEUwKjbD4gvFlhpSPIYbM3eC7uTqlELyowZdx4rLRR+oZooUBhihyRgrw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641837347; a=rsa-sha256; cv=none; b=IrCgrEHbEp0vltpmM1c1FQ9f5MvEKLLyMXv7BoaA4SXt7vpjsvvX3exO1XwPC3PkHs4vvD NWBD3TSe/BkOV7z6j/xp5a2GbWNfAzzWgvPK2HIQUcrvvo++Wwmiz3Q1Kl7egxalznf45g CP5CnnCszL0rYCcs2qt+K5vbJmXi6S6m5r/iY7MCZjmT+NlRtjKe/D852tjQsjuAaW4pTC 6XPi066P2z1balZFGASoKMXoS/nnoM9uDUF03uE7n4VfJS3JCfR2u4ZkiScjLHXCtOT9s9 SEHNJiHGaQix5BnVPqZgQuy912N/mMGIG5zOjAByF7FdVDAR6k7gGVsZKZ6Brg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=iVPrz8xP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gnu.org (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 2.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=iVPrz8xP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gnu.org (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 006F028C53 X-Spam-Score: 2.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: NJ6Qd0NfcczP This simply mimics what we already do for non-tree searches, and makes up for nicer buffer names. Note that this patch only applies to queries not coming from a search widget in the hello buffer. Signed-off-by: jao --- emacs/notmuch-hello.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index fc007c4c..9f42a90b 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -487,7 +487,7 @@ diagonal." (cl-case (widget-get widget :notmuch-search-type) (tree (notmuch-tree (widget-get widget :notmuch-search-terms) - nil nil nil nil nil nil + nil nil (widget-value widget) nil nil nil (widget-get widget :notmuch-search-oldest-first))) (unthreaded (notmuch-unthreaded (widget-get widget :notmuch-search-terms))) -- 2.34.1