From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 +FNNNPOP8mEBOAAAgWs5BA (envelope-from ) for ; Thu, 27 Jan 2022 13:28:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iIkCLfOP8mEEzwAAG6o9tA (envelope-from ) for ; Thu, 27 Jan 2022 13:28:35 +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 592CF3E8E9 for ; Thu, 27 Jan 2022 13:28:35 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DF1F85F72E; Thu, 27 Jan 2022 12:28:31 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id ACC1F5F718 for ; Thu, 27 Jan 2022 12:28:28 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 2537E5FBD2; Thu, 27 Jan 2022 07:28:28 -0500 (EST) Received: (nullmailer pid 1411278 invoked by uid 1000); Thu, 27 Jan 2022 12:28:26 -0000 From: David Bremner To: inwit 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> Date: Thu, 27 Jan 2022 08:28:26 -0400 Message-ID: <87czkd9xcl.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2N2LCURMSY4CQNEMNPGI7VOS6JEFPV4Q X-Message-ID-Hash: 2N2LCURMSY4CQNEMNPGI7VOS6JEFPV4Q 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: 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=1643286515; 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=ArapZLRqPEW3IFyjNJVr1kuj/tbz2ru7GddbN7kIyv4=; b=TK2q5xyQCszrERzXiUIuVallZbr3xyIP6pcTv37xgKp7/Vc9jLcabcdhXsTcnFEP/UwMOi ihs2Ar1pc65F/TVGiDiZG7YDGwkLYEnAB+NMNEdQGhy4RyfJjneRXPa5xu+vdtnNszOPyS aZR9Re1PmjAmn96WfCicCIMgDpGXReIvVoVJclGH60ZDyJk3SSZUH8hOSN8HpHwRfpHjfl O5Ncv4cRFGKsHUo52tAJBUUcw59hbehpf+3G9Se0EQt/Sifm1fb9Vp0msOD/9a8cvDhGJm tpYLpUYdBt9PiaElfYBBnIBoXlZP8QeYklGPGnYnvgRMQwjo9koVreqcukADzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643286515; a=rsa-sha256; cv=none; b=fChH/XOeYdl9YKH3WRgY2fsf1ds77Kg825oyD3TkNIb9qnS+sPcnPySAtT9cG3JaZ+/8X+ YiEmXikuCSg0kpo1bfaSh5BL7Ydjctwmu3yI9vw714bMBqJpcO4Ksg/JbIDVoqloiz3nxK tJspWuQccHaZorjaljhSopfejGaHi4u4p7b02GUdE0zl0PVf7uT7F8kAU/11vOdZloQxP/ uW9h57eS2ldvxh1MlBCgH6rfK+uqPiztOuVkwoHUb+TAu7LkPS09YdB7ZFoZ2mWGvCieXm CziIb+9Ui1PGMhCq2Qwg31ayybyRFvLIOw5K9ULFccDiFhQkhABebydaNUgGUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -2.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 592CF3E8E9 X-Spam-Score: -2.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: fLJWL5/pzCw2 inwit writes: > On 2022-01-26 16:40, David Bremner wrote: >> 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? > > 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. Absent some new feature in notmuch tag, you'd need to do another query to get the set of message-ids. That set would still be subject to change between that query and tagging operation, so that is a bit unsatisfactory. Also the set of message-ids could be impractically large.