From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 eMCOGva/Z2OjJwEAbAwnHQ (envelope-from ) for ; Sun, 06 Nov 2022 15:08:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sABnGva/Z2MsxwAAauVa8A (envelope-from ) for ; Sun, 06 Nov 2022 15:08:54 +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 301812433D for ; Sun, 6 Nov 2022 15:08:54 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F0C635E01E; Sun, 6 Nov 2022 14:08:48 +0000 (UTC) Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201]) by mail.notmuchmail.org (Postfix) with ESMTPS id BCB5E5DD92 for ; Sun, 6 Nov 2022 14:08:46 +0000 (UTC) Received: from c53 (gw1.nor.fi [185.218.193.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: too) by meesny.iki.fi (Postfix) with ESMTPSA id 2CE1A200D7; Sun, 6 Nov 2022 16:08:45 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1667743725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xtGzILEImHCU/YceDzfjN8BwJVdfAs7cXS2LWAVhKrY=; b=A+NFYbdOg7j6J9ue3pCJjmruUIq2zo2sbdmQwYRXmgV7gFlCe/YR5efYl+m65quTK6ZkA9 NqNrYnzOsCbKXBc8+V/YfPXisHxPCfjde2F0LyiXTIdLOHMFeAdWHBFAowK0uVW9UvwgMC PUjWt26XyjLoPKtMA00pkvcfujiwLIo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1667743725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xtGzILEImHCU/YceDzfjN8BwJVdfAs7cXS2LWAVhKrY=; b=u1QM2w+g8guDOjRjUaPdHLTzNjxHyEPWNgD6SMHcGyP7jikqxJ+GaNv71Co0PaQZCJ8Ruw KHrsDhH3cYddg6Gaj0LZpPqZ+0tHL9mdAcKc5OJvFi1BnR9PwC/qXKy/7rx56ARkCOLVpP Hf0vq+nfIT2W6jWUYSuHf6ewH9N42i0= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1667743725; a=rsa-sha256; cv=none; b=D3vPYKeNG+11uQ1VW0bBctb/Ns3QIrNZZfyPF4wvKu0PtZk+6iMRpoCKLdGMz1jbgFCEeX gQpUwJx1UrSzco4DRWpQcqyscGRorVJPOPBDXI/4LBGF5t//c8ldi5gDbl05Y5OLfQ6N98 OjLaS6cHfRkqQa4+gA8I14/OARRPc14= From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: fix notmuch-show-update-tags to support duplicate files In-Reply-To: <874jvdxplq.fsf@tethera.net> References: <20220922212604.222570-1-tomi.ollila@iki.fi> <874jvdxplq.fsf@tethera.net> User-Agent: Notmuch/0.37+18~g2a896dd (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 Message-ID-Hash: I6AJ664YCNPJD3GRF7CAIEID2CZHY3J7 X-Message-ID-Hash: I6AJ664YCNPJD3GRF7CAIEID2CZHY3J7 X-MailFrom: tomi.ollila@iki.fi 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667743734; 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=J7LgZ6nKBEIu863Xf1Me2wkYaNCRb0+ld/OfQhUVb8c=; b=cQh5U3wY1eRKFSUzPBHu41u8gnbHYKxOkYhvNo7g85RJiegD2WPCysQHyoEAZ5dGW1oH/s e//B4xBfh9I6Lls+GNjc/kw0EA/gpk4VnIHyyEaGmCwbGu4YjOKFvXQofBX8yhQ6lJm4HJ kJ/EF8QK6JzISysic4R4GSWmUaRRggZFlJG1DewJ4GNg2mqktQu+MbvGTOVL3jZnbN+GS3 mfLB2vjgfZ/BCtoVjDWdR3vrkBMmR67e0jfMvLTt1pXogMPWfDAKtx3OK+63NkQzXUy//8 bCNtNxuRWisJTqcdAA5JIQ5yS371x3dz6F2JMq9SapM83Qi9bGEDFutVEalGEQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1667743734; a=rsa-sha256; cv=fail; b=CxLcnTocIq7kjWrgccVI4CBqs1YqQGg1bGjtKzpi2WUMVZBfk4iY+L1grfraugF3MNo3Kt XKSKs0ETMAliOpxKTUEiW0ohD/yyf6Er9n4q9eq55JejZm49J7hw0Xk5AwcRRp7VZ/V1kE /+10qoYrTAj/BAaN2twOvqdfo4NfykYQTJVanFWvIbVX8xanA5c0jx6kPl+pczdlQw5BVI P9Rvo4cpNujidAclZ+rC3AyCoZFeClseefthnkbcQUSb5TCyf+XIsqLZGkR+cnthQPV4vE zthaogtDNe/Zzq+mYvwGsuaSkwrNHRXSpVUW/XhsmdeVj9nAowL8OyaGwrjzdA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b=A+NFYbdO; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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: 3.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b=A+NFYbdO; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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: 301812433D X-Spam-Score: 3.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: g0s+sJoo7Xth On Sat, Nov 05 2022, David Bremner wrote: > Tomi Ollila writes: > > >> Is this getting too complex (well, we may have other stuff with >> similar complexity there ;/) ? >> >> Is there any better solutions ? > > I want to try redrawing the whole headerline. It should be more robust > against headerline format changes, but replacing the headerline has its > own complexities. I guess once I get something working, we can compare. I agree -- there should be one (1) function that takes care of drawing the headerline. this could get ouf-of-control easier when done different ways in places far, far away... now that I think of it, narrowing may not bring any advantage, but function which writes headerline to current (point) -- when doing initial drawing nothing has to be done beforehand, in case of updating, first delete line and then redraw... Tomi