From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iNSBNQL32WGFzQAAgWs5BA (envelope-from ) for ; Sat, 08 Jan 2022 21:41:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QIU6MgL32WHY0QAAauVa8A (envelope-from ) for ; Sat, 08 Jan 2022 21:41:38 +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 7553E15BB2 for ; Sat, 8 Jan 2022 21:41:38 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 692D95F72B; Sat, 8 Jan 2022 20:41:34 +0000 (UTC) Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by mail.notmuchmail.org (Postfix) with ESMTPS id 9EF345F70B for ; Sat, 8 Jan 2022 20:41:31 +0000 (UTC) Received: from [2001:470:142:3::e] (port=39116 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 1n6IWn-0008MG-L2; Sat, 08 Jan 2022 15:41:29 -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=gWLq9Z2Q5RjGH4 ZpSR7yzQepAR1VsoDjEEUhx+DQWdJsXBOZT+BRE7/+i5S9bpK5ad8BM8yMmv/8vLI+Tw9u82P+AUI AnHtSuoS7RtNqmS0XBF0BVEmOY+QLlBwHsRNdMPtHBOsXFAMEg+uu41zroAD67tMUg/LJ9fCl23N0 563F+/kHOka+TZFVy79NwqOCrcQnT+tE9g7DvQYqUdiwpMyAHletR1Q2a01C/HwVkEfGA3RXQW87O LRKSbErJf0efmMA/zqp69SnCIA8BMVmnsh5wJozwxjYIqNAPqug/0EjruIebGWwLwK6pTcZiOSdkv bmV912xjCYRZ6OpaLQPg==; Received: from 92.40.173.17.threembb.co.uk ([92.40.173.17]:53829 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6IWn-0002e8-I5; Sat, 08 Jan 2022 15:41:29 -0500 From: jao To: notmuch@notmuchmail.org Subject: [PATCH] emacs: use query name for tree saved-search buffer names Date: Sat, 8 Jan 2022 20:41:21 +0000 Message-Id: <20220108204121.1053932-1-jao@gnu.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: ESZW2E5KF2ZMNFAN62FR2IN4JPPNLRWU X-Message-ID-Hash: ESZW2E5KF2ZMNFAN62FR2IN4JPPNLRWU 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=1641674498; 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=c3NpqUwC9fhx9gZR1hp0FdRwn0ovNKz9aVnAtE+CZ6Cig9744lwOpEYaSi07QZYn00Zt+3 FE4i/kzfO0tuBu6ydk+mrdt7XZtmYLmO7W2XJju3codqctaMU62Uy0/kB/O8KtVhN/aflT xzJtAWY8mO71zP7Rs1WZXFb+DPKoruptIL7gKrgBoY6sdC1WhgR+AuM3JITyhM5tz01Sgm 1mt0oDLqZsfOIb42C9T6lHN+cr64F44lG51SO2kamRJropBIoDSMvNNw6acYL957eoyr/5 chEC3f0CV2HjcNgGqwWWqnzGRXEfMsNMhGmYSGEXlyy6j24fkfABeZhW7EwFwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641674498; a=rsa-sha256; cv=none; b=lfLPrw/9cEWUmeZGaCN323PhfiWoHgV3mpbnIwOxWCzYMnj8eyJ+Ksl165/3Tz/t1Ak5sP pV/8/5VMIZ5iis5SF0jcPRXSIzPgyEkNY1YpK4Ndh6mXwHFyQ08FKgAeYVt56eC7jYNxQD YHFYlCNF8MeghviTqv6/IcYJVcnA98SQ1Pkorx24UDTDpk+wu8zD0C8IINRZmkSDmbi6Yn j32v6wTVNM+2UYlgnfI4UGV9YwuoVb+AjgTaeJLSNu2zIbiE+5jq7P0oEDEUOeh7ItXPme 80HTKa9lBnVYP+adHTvAbzuspcAnE6FvxVX5Fw9AisB2tMCr3yLNWrnbKCK/zA== 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=gWLq9Z2Q; 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: -0.59 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=gWLq9Z2Q; 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: 7553E15BB2 X-Spam-Score: -0.59 X-Migadu-Scanner: scn1.migadu.com X-TUID: vUzxqqnnlPTR 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