From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 MGvKK9l28WFyNgEAgWs5BA (envelope-from ) for ; Wed, 26 Jan 2022 17:29:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cOwfKdl28WEhEwAA9RJhRA (envelope-from ) for ; Wed, 26 Jan 2022 17:29:13 +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 504E84525F for ; Wed, 26 Jan 2022 17:29:13 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DA8CC5F717; Wed, 26 Jan 2022 16:29:07 +0000 (UTC) Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) by mail.notmuchmail.org (Postfix) with ESMTPS id 2B69E5E00C for ; Wed, 26 Jan 2022 16:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cworth.org; s=mail; t=1643214543; bh=vjnfBXdpnJOPvAR4Kndux6xydZDy0n4f7LnoqsjL8Wo=; h=To:Cc:Subject:In-Reply-To:References:From:Date:From; b=SBeg644MI0Msm5iQJbMocDPbMMZxIAQxbUp73bOODc1nSbtB3DSSWTFP1+WmZTE4m zFmuCeNoLs08s7a9JR87oEB0xjrEIJ+SfvQfucWnhdoD7uMoElvP9aG0DNoACokNoL OORj6e0CJ/JyidcKuF8abe9aGl8O9TgKrSraHQn4L0jO4zAB8jPY3GKmrZaHHmNGYf 31lydMYs+nvS1eGT7RrkgR02tdhQhvtL+kR3Hczzkdd+7hDQsWCFnkb7imPJrhKf+q wWrz3apTVmQSAtCEC69VnJXLzqLNU8ZzSG7Gogcg39ZYVBowKx29g7cI+tsFcVqcAw 21UXTi+JRP87w== Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 490B36DE019C for ; Wed, 26 Jan 2022 08:29:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org 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 P1ecD8GbbCDu; Wed, 26 Jan 2022 08:29:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cworth.org; s=mail; t=1643214542; bh=vjnfBXdpnJOPvAR4Kndux6xydZDy0n4f7LnoqsjL8Wo=; h=To:Cc:Subject:In-Reply-To:References:From:Date:From; b=wtA07GF2XGqQ9Co7nbJiREVzQlO+wIpDAXRH608kiDRw1rTukLyItkCWeLbHnBjdQ 4SFj5kswKmjIEbOn8KWw/tt7vXv4o45t2nG/1bT+Rh1Dr+POSrf95Z4f0GBtsxKPoW wAcrjfLK67oeYYiZ5lCpTShpriIzpq839FhiyfBSE0RUm+yTo1G44D59qH/zotZplk 8mHlUZvENm6tVnJVNOjj6vM8pqDrfI/3tfwpM1N5b/Ndi4zTrWSMZYRrckn0/dyoLZ N1Te3MkwjXRLze552h1RYwuSUBOMF/RpYCYBHbQoQk8CCFmXnL2k6YbLfFbBLzpunU OMDpTB/r87thw== Received: from wondoo.home.cworth.org (unknown [10.0.0.161]) (Authenticated sender: cworth) by arlo.cworth.org (Postfix) with ESMTPSA id 164BE6DE0194; Wed, 26 Jan 2022 08:29:02 -0800 (PST) Received: from wondoo (localhost [IPv6:::1]) by wondoo.home.cworth.org (Postfix) with ESMTPS id C44621FE15A9; Wed, 26 Jan 2022 08:29:01 -0800 (PST) To: inwit , David Bremner Subject: Re: [PATCH] emacs: add global tag history In-Reply-To: <950e8c5ec7ca93f9d21c9c0855971511@sindominio.net> References: <20220126153214.1366353-1-inwit@sindominio.net> <87v8y6a4k2.fsf@tethera.net> <950e8c5ec7ca93f9d21c9c0855971511@sindominio.net> Sender: cworth@cworth.org From: Carl Worth Date: Wed, 26 Jan 2022 08:29:01 -0800 Message-ID: <878rv2foky.fsf@wondoo.home.cworth.org> MIME-Version: 1.0 Message-ID-Hash: RDW6VI3KMUVQYMX5DXFRUIVIPTUORIRK X-Message-ID-Hash: RDW6VI3KMUVQYMX5DXFRUIVIPTUORIRK X-MailFrom: cworth@cworth.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: notmuch@notmuchmail.org 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=1643214553; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=TAjsCBbv0YhnwZI5fqH6tsHd4hSvtNl4kJbvw2hHasI=; b=levJwNH0Pb8ANK0MSIc30URUKQXeUJ4CAvycg1vW46Co8Es1CPKC1/bNo2/ZHoovNZBYs+ n2idIo9Q6ACjPL48/FBz8nmYgz/VQQD043rFe3uMGuwmG/pD3MUsIWjK2WjWZRI2xsHqcV pWqpZYLuzML6sQe/28kcRcLNhF91YHj+C4fC7kgP4tfsLA5EiZhgNwqkccnsB7VrBWnZ+K 50M8lfjMH1BmGYVBX7K1KCxK5rB+TrOyY+JAtxiMneRRm8a4Tyu91rKAHp3lu5BZ2gHTex rJ9q7zIdXKTOnqDfCvSh2eIHhMhYAcJb9olpaphIw48bfdhzR1J6YbEUL4va2Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643214553; a=rsa-sha256; cv=none; b=pFn6zV2tMD3PXtLnOuEO8HLzMdhMvqCEyv8ZN393ZCDMEaeZSXK0nEogwiz2UXKAGQ2lmN 9mDZJ9w6M3kCf1MVkKQo8TKiQdV2rmpqtl5qImQcNAz/RLWOw+J1Rc+MMxAZWHc8JB2aop F5wM8yY8JgbEkFpoF55Vfk1ZoirvKeTZ6d284+5gAmZepUpBN4aBWftqRwfffymAFDlR3M B+1P++Jwa904Voa3IPlQ/MHbv2D/eNhYFHx7Rn7eU8WkxgIXj9s3JzAUMw3s47mSgggVB8 9kuzDrGctiU/qNkl+b7DCATE4vKfhyG7G9dpQsZM3lh+oUCj+1Na6PcVy5xiVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=cworth.org header.s=mail header.b=SBeg644M; dkim=fail ("body hash did not verify") header.d=cworth.org header.s=mail header.b=wtA07GF2; dmarc=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.84 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=cworth.org header.s=mail header.b=SBeg644M; dkim=fail ("body hash did not verify") header.d=cworth.org header.s=mail header.b=wtA07GF2; dmarc=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: 504E84525F X-Spam-Score: -2.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: Z2K6EU1Xv0Qu On Wed, Jan 26 2022, inwit wrote: >> Even that will not be perfect (since the messages matching the query >> could change behind emacs back), but close enough for most interactive >> use, maybe? > > I was thinking about saving the IDs of the messages affected by the > change, but I still don't know how would I go about that or if it's > sensible. One could imagine a history that would enable a conventional undo stack for a notmuch interface. The trick with making that usable would be the need to refresh views to make what was undone evident, (and the fact that some of the operations could be large/slow). All of those issues kept me from pursuing the idea in early days of coding up the emacs notmuch UI. But someone could certainly explore the implementation further if desired. -Carl