From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iGDLHiOl22EqpQAAgWs5BA (envelope-from ) for ; Mon, 10 Jan 2022 04:16:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oEVPGyOl22GQygAAauVa8A (envelope-from ) for ; Mon, 10 Jan 2022 04:16:51 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 2A38B394E6 for ; Mon, 10 Jan 2022 04:16:51 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 561475F704; Mon, 10 Jan 2022 03:16:47 +0000 (UTC) Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by mail.notmuchmail.org (Postfix) with ESMTPS id 630AB5F5EB for ; Mon, 10 Jan 2022 03:16:45 +0000 (UTC) Received: from [2001:470:142:3::e] (port=36730 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 1n6lAp-0003BX-Oe; Sun, 09 Jan 2022 22:16:43 -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:References:In-Reply-To:Subject:To: From; bh=BHk3gTQcOuwr1rt7EuLx6eAutJ/P1SdXQBgFaicMWSo=; b=hhGjAReiekId1LLc8kzP issKIiBuipKB7fHxqEfcK4p7vqdsi0u0kLHRmuuiKy/86Cq7E11V3MqKthMWQm8I3NOzMjPJIzV9m Cy9BV7rhRluMAJkvhl8iT2oMhSPls5FsGCx4qP/0JNnctwHpAUzalIr7i15FZ0Aoz8U8G66ASX+2r W+qDoxmS3xQW4VjdUvH2sCTil+RUC5gSqZrajAu58AESuqpeuNKudUxO9h2pXbhd0UhK/IbtZcke1 lcc1hzvY8jVFnVG9Iido5YNV4ABfIt1z5uZsNUGdF/C2HRsGdeagaj6wx/hN74Lyq7uEXnBjntG6/ aCgt9/6nw5D+SA==; Received: from 92.40.178.238.threembb.co.uk ([92.40.178.238]:9725 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 1n6lAp-0006Yb-K3; Sun, 09 Jan 2022 22:16:44 -0500 Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 27cb797e; Mon, 10 Jan 2022 03:16:39 +0000 (UTC) From: Jose Antonio Ortega Ruiz To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: use query name for tree saved-search buffer names In-Reply-To: <87mtk41hj8.fsf@tethera.net> References: <20220108204121.1053932-1-jao@gnu.org> <87mtk41hj8.fsf@tethera.net> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Date: Mon, 10 Jan 2022 03:16:39 +0000 Message-ID: <87bl0k46w8.fsf@gnus.jao.io> MIME-Version: 1.0 Message-ID-Hash: IJKXNDDNP5YM45XB6UJBJS45JEUBQCXA X-Message-ID-Hash: IJKXNDDNP5YM45XB6UJBJS45JEUBQCXA 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 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=1641784611; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2zcsfLkeCpCmCp0bU7lteewbhmkZPKG1gIYMPhYLomo=; b=lJDOseWuM/Td/7skkBRXFefvmGBe0Csjw1wISXWeirlvP7KRQOWYdMp5AhZM8eDT8a26Ud kwxWHSQuSQUhnOJYGvBWhLrq4PCmCQVr7sx9vJcpIwuvo/8EDy5cBuL9Nt7YzHLxxaVi67 o7AGmoG2aQperY4B73f6qS08S6uyAiJEeeXVKKyZGjlUubmivwriBA7QUR7pWbIMdDbIzX RD9fnsIDHt3Zar4mnvgfcqOf3hi0KsfJaW7L/OjLcBFr15jzFyfPXmobKMfd89snadL0+e 78/68yIsOwKb8/T2cc939T+kdIWgzTBt2PZ6tgTUh715PdX/UDw2My2HgOfpBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641784611; a=rsa-sha256; cv=none; b=h9hA+JH+ts4yHi+eIYrWh5ZddIvXUyJkeQ+tJ1tb2KeGSQc1KxTqd7W6OlZdqoMr6VZRHn 9alrmLeTw2Z2vO/7xdciDXV7yk7/HxWg7llFTkNZK05+ZlUa6tvu9I4knyaXxXHcESWRsE F+/8gb+VFNTRMUSRupLdDkzmVvebPCDXIsawHIep9fuNZFzuXjwhcnuVESDqzRk9qe/Z/9 n4yVENvuR2LP4CdHl1CF65Galcfa4wCQC9x42X081VmMIKoH3zDGY4jDE1sIzQHfbZuU0e dyrnx4PSJtUBRyTWD2ebUmV/nMiLW8BiWHX6BIZOFm4vFAy5G1Ob8BqG9vQeYw== 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=hhGjARei; 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 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=hhGjARei; 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 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 2A38B394E6 X-Spam-Score: 1.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9guH/KzbmCg8 On Sun, Jan 09 2022, David Bremner wrote: > jao writes: > >> 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. >> > > Two questions: > > 1) Should this actually approximate what we do in > #'notmuch-search-buffer-title ? The buffer gets a name like > "*notmuch-saved-search-inbox*" oh, you're right. i have that function advised (because i prefer using the unadorned query name), and thought i was being consistent. i think we should. maybe we could consider adding a customizable format string with default "*notmuch-saved-search-inbox-%s*" for cases like mine? > 2) Should we do the same thing (whatever that is) for unthreaded mode > searches? i don't see any reason not to. i'll be happy to send a patch for both cases. cheers, jao -- Whenever you commend, add your reasons for doing so; it is this which distinguishes the approbation of a man of sense from the flattery of sycophants and admiration of fools. -Richard Steele (1672-1729)