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 qBImKa3LTGN07AAAbAwnHQ (envelope-from ) for ; Mon, 17 Oct 2022 05:27:41 +0200 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 +Gk+KK3LTGMmhAEAG6o9tA (envelope-from ) for ; Mon, 17 Oct 2022 05:27:41 +0200 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 357003C470 for ; Mon, 17 Oct 2022 05:27:41 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B55AF5E01E; Mon, 17 Oct 2022 03:27:37 +0000 (UTC) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by mail.notmuchmail.org (Postfix) with ESMTPS id 7B35B5E012 for ; Mon, 17 Oct 2022 03:27:34 +0000 (UTC) Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id CC1E320002 for ; Mon, 17 Oct 2022 03:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1665977253; 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=TFGWoGeHaOv5yrDj1VZikU/07G4TKWlV/mfAzH0vqr4=; b=RoLW2DgZBktZWJj9BKE5jo7mrVxpNa1pNao4VyuwJj83Wtm3N1Qnf7verF+gbhz68t3TDs yD1kKIym5mv2NFgFWf7NGynD+IeMy9vrdqw+ZRasfVlr3TUyfVe3Av+USeTF09ayGDcs5Z +ES25VSdk6A/bz4+ThjzW2Jui0Mduy3gFppQGmJt4BDdbOhNoBfGPPBCJwRC0rWsMa+OXo aMVRCd4YW9iASr+xpcjASHKknUnhX4DpiUCR0WIRJdy5i5T+NawSX2bG5bxu2aTsmGNN/t Cd4TOPVWoDqYDnjgOTjcp/zhqpKgoxQ8dEEDEwMdcFwfHv6r+lSU1RDNQ2Vl0Q== Received: from matt by naz with local (Exim 4.96) (envelope-from ) id 1okGmo-000mMh-0a for notmuch@notmuchmail.org; Sun, 16 Oct 2022 20:27:30 -0700 From: Matt Armstrong To: notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: fix dangling overlays in notmuch-search In-Reply-To: <20221013032038.23371-1-matt@rfc20.org> References: <20221013032038.23371-1-matt@rfc20.org> Date: Sun, 16 Oct 2022 20:27:30 -0700 Message-ID: <877d0zceot.fsf@rfc20.org> MIME-Version: 1.0 Message-ID-Hash: BQQMB3TNROP7MYBMKPBJX27EJ2WA2NB4 X-Message-ID-Hash: BQQMB3TNROP7MYBMKPBJX27EJ2WA2NB4 X-MailFrom: matt@rfc20.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 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=1665977261; 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=OyBQ6auRpf7tdHZc0O0pZh5QeRyyker9KaA+tkKrkvw=; b=I4QggcUMREzU1k+2yQ8cEmsa/iKlvTOa25FLiCbVjx4BvBGKGSkxROJyX7X/vHMentnQzh Iafpy9EXC46sRQPPm6QLc36mGTSpOzM7LATvHvOhEGtLkNeylvu1d8jtRu+EnfADIa/nJj iYBhQvnBwvBGthPpGtJ43eRavTg1dGda5VPZZLNe2c6s7JLTQuF+8Ji5unC6lE7XbbK7CB rFq0FLf49Zigj7QThr+A3D74RbL6gIyiInGkRBx0JTrAXn9hrzhRZR1w5lE7mpPxX73zcV d265Si4jOQd19myBxPEHDbj/hPxIlDl7yCSSmJk6GbjU+ulGNWifs810ZGWmDw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665977261; a=rsa-sha256; cv=none; b=UG8Q7HykrnAa2dkANAX/OKKYUiea8WWWWx+CKfQ8y6Rwx5ZpDo8cYd6z14vuYdX/eZVBpm 8s3U4O32IcUzWa57n7NrEYnZx7DTCCR2d+bNVzldF4npTia6sWb71GM5UTlY/ZhQj81OFf gi45QN00EO/HHhQomk6U9B+3v5OL9nMMSbiwnbhY+YNPZd698+PV0awWE35IGyxv1wdvTO YmFq/gw0k/2On6riStlGEusYBCzRRzJmeV3jGhlwGr1wnf4Pf8OttzGE1P4c8BBqPR9+fx CWSO/k8drWNchHx0mCSuJq52wkHrcZrJ2mpTd2d3AqvNueFeHvPtiKu+ctVTiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=rfc20.org header.s=gm1 header.b=RoLW2DgZ; 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: 1.85 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=rfc20.org header.s=gm1 header.b=RoLW2DgZ; 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: 357003C470 X-Spam-Score: 1.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: Qr28Q+hIE3M0 Matt Armstrong writes: > See Emacs bug#58479. An upcoming change in Emacs will make these > dangling overlays visible to the user. It seems that the ellipsis overlays were shown due to a bug in Emacs, but this patch is still a reasonable idea. Otherwise, every time a notmuch search buffer is refreshed (by pressing 'g') the overlays from the previous run will collapse to zero-width overlays in position 1. They're harmless there, but removing them is what 'evaporate is for.