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 ms5.migadu.com with LMTPS id mCfEDdIHuGPsAwAAbAwnHQ (envelope-from ) for ; Fri, 06 Jan 2023 12:36:50 +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 SIUCDdIHuGMhewEAG6o9tA (envelope-from ) for ; Fri, 06 Jan 2023 12:36:50 +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 A63F22EF51 for ; Fri, 6 Jan 2023 12:36:49 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3BBF5604CC; Fri, 6 Jan 2023 11:36:47 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 53217604C6 for ; Fri, 6 Jan 2023 11:36:44 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 399AA5FB9E; Fri, 6 Jan 2023 06:36:43 -0500 (EST) Received: (nullmailer pid 3822649 invoked by uid 1000); Fri, 06 Jan 2023 11:36:41 -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: Fri, 06 Jan 2023 07:36:41 -0400 Message-ID: <878rifopx2.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: V376ZYOIHL45VKRZSCGAICOVAZLEL4K3 X-Message-ID-Hash: V376ZYOIHL45VKRZSCGAICOVAZLEL4K3 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 CC: inwit 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-Country: DE X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673005009; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=Z3bJm9+3pHJ5leraeOEY+ZwSTz9sf7jAdhlHhPh+Xgw=; b=Gvn7Rq1lTmCYJvw+fzDlYlNZMYehCdthv79OKlzk6bKfMLVripMsyifl8ZcLLIIOS13cxO wZEWH4Clq7KOLGyfcm6PEP5CkeunBX9t3uTF4sal1HMxLB1onF9HENKegQa4Cfgq7fJ4AY wUOQX+zQRtYLxX6oruWIk66p81/UkGr6u4aO3PT76NGKsI/XP6i7HdCy7+4KF6ATJppNC5 E2gRG1Y58iilSNuHsuhGGsUN/E4kf1j0SekzwiKiReQClOycbUViL8RybgxaE4Oj5Ybf2L x7Pgbl63RM74gnsn5uv5Io22otxxoHwZOv/WbdS5qBr2O/utvYTX09npmg4uow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673005009; a=rsa-sha256; cv=none; b=jeA6iP5Z2B2BrKGDjHRo486X79pFVHxGZXIFaKYgKznIDKZG5yJNaqi0EVqZDh02ZMvwLn 6qZGqU0lecX2/hjO5oi53uQ2ep+HNJMK0Q2HAxk6b2jY/hOju/PQeQu2Q02vIinhA2+eYt 0BzCaY8L8GrnAO4DtKRyjx/65l/XTcxl7T6dPjVKQVnLSMvYzhp0z+yMr7Z5227JddC12P Ha7bKQ9bTY9nbE1B79rPY8csCAuxlFpwP4m1camlL4XsU0ybpG7B4oMrqr2tEpnz50JfTL OoW6J7oLhf3Kkhcw4vzsJIL5qJwVwz4mxi+h+3WF7m3q0QV2I+UcovOdwEHavw== X-Spam-Score: -1.49 X-Migadu-Queue-Id: A63F22EF51 Authentication-Results: aspmx1.migadu.com; dkim=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; dmarc=none X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.49 X-TUID: QtQWud9QGvs7 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. > > This is my first commit in elisp. I expect turbulences ahead. :) > > [0] > https://nmbug.notmuchmail.org/nmweb/show/CCSQ9HR3M748.2IRNNTHYR4A2M%40bisio > > emacs/notmuch-tag.el | 4 ++++ > 1 file changed, 4 insertions(+) Although this patch won't apply anymore, thanks for inspiring the work that lead to supporting undo. Unfortunately I stole the name "notmuch-tag-history" for a buffer local variable, so I guess someone interested in a global history would need to choose a different variable name. d