From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.bugs Subject: bug#58479: 29.0.50; [feature/noverlay] Displaced overlays in notmuch search buffers after refreshing Date: Sun, 16 Oct 2022 22:56:47 -0700 Message-ID: <8735bnc7s0.fsf@rfc20.org> References: <87zge0tqkt.fsf@localhost> <87pmewqrj3.fsf@rfc20.org> <87bkqfype2.fsf@localhost> <87a65x6f2u.fsf@localhost> <634a32dc.620a0220.1556.5477@mx.google.com> <87a65xqi8d.fsf@localhost> <87czarcp56.fsf@rfc20.org> <874jw3jl13.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28657"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58479@debbugs.gnu.org, Stefan Monnier , Ihor Radchenko To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 17 07:57:44 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1okJ8B-0007FO-H9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 07:57:43 +0200 Original-Received: from localhost ([::1]:42834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okJ89-00005F-TB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Oct 2022 01:57:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okJ7W-0008Tq-TR for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 01:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okJ7W-0003GD-LA for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 01:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okJ7W-000696-8R for bug-gnu-emacs@gnu.org; Mon, 17 Oct 2022 01:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Armstrong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Oct 2022 05:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58479 X-GNU-PR-Package: emacs Original-Received: via spool by 58479-submit@debbugs.gnu.org id=B58479.166598622123617 (code B ref 58479); Mon, 17 Oct 2022 05:57:02 +0000 Original-Received: (at 58479) by debbugs.gnu.org; 17 Oct 2022 05:57:01 +0000 Original-Received: from localhost ([127.0.0.1]:46904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okJ7V-00068q-0q for submit@debbugs.gnu.org; Mon, 17 Oct 2022 01:57:01 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:44847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okJ7S-00068Y-41 for 58479@debbugs.gnu.org; Mon, 17 Oct 2022 01:56:59 -0400 Original-Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id 7B2DEFF805; Mon, 17 Oct 2022 05:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1665986211; 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: in-reply-to:in-reply-to:references:references; bh=Jjfc5eHYvj+DhsLPNzMhKguZ8uncQ2QnbJnoX6PlI6k=; b=D41BIqVPAELVMX2MmnFBzAs4MTZTciI2oGM1zzyoxpBImOqwkUVA8AyeQkSCKCpMHrSrgZ rJKKrAYJ2k3Xb7yLJ8GGid0vK6Jx4YLOs92TyliFX+5sk93zezqZdBHd3BlEiV97DQL+uq Uca5g855W01ZWJUHDDY47s54lpYQpUnyL0Q3u2+4NCm7aHOPVT3NKZgw3z8jdkPQ3FbAL0 za+FznddbdFZxUlZ5KRfBZfXAETvkrGAcCmy83voBPlqzCj4vNYFefovhynEBjm7tOFRvY 6nshf2l/Rice6LyAOlt1Q+oQ+xYyUmMvU7w1EXc6MJimC7CLPDTIpjUuk5EDrA== Original-Received: from matt by naz with local (Exim 4.96) (envelope-from ) id 1okJ7H-000tKN-0V; Sun, 16 Oct 2022 22:56:47 -0700 In-Reply-To: <874jw3jl13.fsf@localhost> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245686 Archived-At: Ihor Radchenko writes: > Matt Armstrong writes: > >>> See the recorded video link. Basically, I just executed M-x >>> describe-text-properties after (3) in my second recipe. >> >> Ihor, I can't reproduce this second issue. I can't see your video. >> Firefox on Debian Testing can't decode it for some reason. > > You can download it and open locally. > Also, do note that the second issue was present _before_ Stefan's patch. > Then, Stefan expressed a concern that even though the patch fixed > immediate problem, it might be creating other issues are he did not > anticipate the patch to make any difference in the output of > describe-text-properties (AFAIU). Okay, I'm able to watch your video and think I see what you're talking about there, but I am not able to reproduce a problem with the Stefan's fix applied. Maybe there is some miscommunication. Everything I try now seems to work the same on master and the most recent feature/noverlay. Could you start from the beginning and provide steps? I am a little lost with "press this after third step of that after watching video." :-) The "Hello, World" string was a little confusing. Here is a simpler version: (defun my-b58479-3 () (interactive) (with-current-buffer (get-buffer-create "*b58479*") (add-to-invisibility-spec (cons 'ellipsis t)) (erase-buffer) (delete-all-overlays) (insert "123456789") (let ((overlay (make-overlay 2 9))) (overlay-put overlay 'invisible 'ellipsis)) (display-buffer (current-buffer)))) Looks like `describe-text-properties' first tries `overlays-at' and, finding nothing, will try (overlays-in (point) (1+ (point))) to get the zero-width overlays. -- matt (sent from an Emacs running the feature/noverlay branch)