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 wCT+NXRr8WEaCAEAgWs5BA (envelope-from ) for ; Wed, 26 Jan 2022 16:40:36 +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 UAW+MnRr8WFUwQAAauVa8A (envelope-from ) for ; Wed, 26 Jan 2022 16:40:36 +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 5A8AB43B57 for ; Wed, 26 Jan 2022 16:40:36 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 49D6A5F6C3; Wed, 26 Jan 2022 15:40:34 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 1819F5E022 for ; Wed, 26 Jan 2022 15:40:31 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 540B15FBD2; Wed, 26 Jan 2022 10:40:30 -0500 (EST) Received: (nullmailer pid 1087700 invoked by uid 1000); Wed, 26 Jan 2022 15:40:29 -0000 From: David Bremner To: inwit , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: add global tag history In-Reply-To: <20220126153214.1366353-1-inwit@sindominio.net> References: <20220126153214.1366353-1-inwit@sindominio.net> Date: Wed, 26 Jan 2022 11:40:29 -0400 Message-ID: <87v8y6a4k2.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: GXAHFR6TNHRDYTRXI3BO4CLX4D23ZSGT X-Message-ID-Hash: GXAHFR6TNHRDYTRXI3BO4CLX4D23ZSGT X-MailFrom: david@tethera.net 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=1643211636; 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; bh=C8uvA5BB+ldNZkZyt47jmT8cBIrmLeN/IN25DVAGX3M=; b=dY9HI0O8qeKteojl4ytmaFMI/UtQFV9CpXeMg1akYsTCejsgVtLWu0xeWnZWJJEXwSbBkc BCMsioAmu0liXH0VAIcoxOH5saTM4OIMD/J0PsFpNl5N7O1OnKGISrkKmgxwlrEbHKR6Zo YcQXtrzlwK2fHISoZjlfSAPFryVp5lnxTvBihCxu3Jg/EhiF0lu7kSd5oKvWFoY1fpcWrG pfgH8ER14ZK4p0+Hh98R10VUWsAzatEoZCbu3RyZ8o3+0q71y45Oo0sZwO7B8Jbx38j/zP o6Z+XZ5egDY4DHYTZJ65zLAveXS7lQLTzJVnpOMG498yzXOWNXNYjctTHqyZFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643211636; a=rsa-sha256; cv=none; b=EfVBdidd0nVBzgHRvNQ6PsJ0l/VxOHK9/DYXLn2SnQCai9LKJyMKz5oe4qxjhNkJ0oOwxI u39oFv+Y4zQo1u8Rt1y1f49zztiDt0p2bSnx5Y7SLG9zUgJoG8WwSZtOKooD34+f1grdbS JQuQZWQIy7/WtLt3W6q7t3O4Ns8VsRHGBYJmaeIhRNoEdVxcw81NC19YR7KoAZ2g8xHIYe xE6507BFvYWg/LucMag6w5a9jMNzSw6+Le2msbwZbtmOWxtkmgdTgshE6KTc75IS/GdWkG IYCqBJWoNdSC9bda1SKenImKfiVBGV19QvGL3lM5A6UAgiBA+eU0exPhjpXbXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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.34 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 5A8AB43B57 X-Spam-Score: -2.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: fkJoEzomVO89 inwit writes: > Save a list of every tag change in the new variable notmuch-tag-history. > --- > Storing the full history of tags can prove useful for a) repeated tag > changes as in [0] and b) eventually logging and undoing tag changes. I guess for undo you will need to save the query as well? 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?