From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58479: 29.0.50; [feature/noverlay] Displaced overlays in notmuch search buffers after refreshing Date: Fri, 14 Oct 2022 23:52:44 -0400 Message-ID: References: <87zge0tqkt.fsf@localhost> <87pmewqrj3.fsf@rfc20.org> <87bkqfype2.fsf@localhost> <87a65x6f2u.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10348"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Matt Armstrong , 58479@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 15 05:53:10 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 1ojYEY-0002US-EN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Oct 2022 05:53:10 +0200 Original-Received: from localhost ([::1]:48430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojYEW-0003nA-SY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 23:53:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojYEQ-0003n2-9Y for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 23:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojYEQ-0006OR-1x for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 23:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojYEP-0004Ra-NY for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 23:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Oct 2022 03:53:01 +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.166580597617071 (code B ref 58479); Sat, 15 Oct 2022 03:53:01 +0000 Original-Received: (at 58479) by debbugs.gnu.org; 15 Oct 2022 03:52:56 +0000 Original-Received: from localhost ([127.0.0.1]:39142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojYEK-0004RH-9V for submit@debbugs.gnu.org; Fri, 14 Oct 2022 23:52:56 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:21266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojYEH-0004R1-MX for 58479@debbugs.gnu.org; Fri, 14 Oct 2022 23:52:54 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id A9919807C3; Fri, 14 Oct 2022 23:52:47 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id F1E518071D; Fri, 14 Oct 2022 23:52:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1665805966; bh=WmCPQ7ztUzRaSGJlQGz4zS0x4M4oTMM3XuU782XWuRw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=GkpADJfIDZz+J0RlEBbobLmRoZAgjfUur7WB7bkqJzlI8ak9Vy39hVvcB/MKNnDGi y9qqe8bv0jzn6txIkqHKm7QD8ThWpPGVNvkZhqySNxlMR3lNC7jcJURQE3FUtTk3KH VVUH5OBTNMAhemQsIbGwiOOV/f9n93mEV3Sqx0GpoE2ITPgU4Uso6U7dZwKNFfKAz8 /YtF3xd1ejRNLrce1s3wQa1diP9oVcH+ZmFLQmCGn94Fcq8L1G/cOkGcS7vXvX4Y+C y1U+xyEV/G2qgU8vmbom+ki0+l92bzkVD+sD6ePZNhx+6Nz7i5ABJXkxZ5c495N6Wp eS9XAq25oy3Fw== Original-Received: from pastel (65-110-220-202.cpe.pppoe.ca [65.110.220.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C2DE6120EEF; Fri, 14 Oct 2022 23:52:45 -0400 (EDT) In-Reply-To: <87a65x6f2u.fsf@localhost> (Ihor Radchenko's message of "Sat, 15 Oct 2022 09:38:49 +0800") 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:245501 Archived-At: > However, I noticed a different problem introduced by the patch. Are you sure? The patch should now affect `overlays-at` at all (actually, one of the reasons for the introduction of the bug fixed by the patch is because that code path for `get-char-property` does not rely on the same code path as `overlays-at`. The old code shared the code path for those two, but the new code tries to be more efficient by avoiding allocation for a temporary storage and reducing an O(N log N) to O(N)))). > After executing 3, if I run M-x describe-text-properties, the overlay is > not listed in the text properties. Running > M-: (overlays-in (point-min) (point-max)) does list the 0-length > overlay 5..5. However, running M-: (overlays-at 5) yields nil. > > I think that the above is not right. Whether this is "right" or not is a good question, but AFAIK it's the "expected" behavior in the sense that it's how `overlays-at` has worked until now. So I think it's "right". Stefan