From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko 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 12:56:21 +0800 Message-ID: <87bkqfype2.fsf@localhost> References: <87zge0tqkt.fsf@localhost> <87pmewqrj3.fsf@rfc20.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16272"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58479@debbugs.gnu.org To: Matt Armstrong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 14 06:56:28 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 1ojCkG-000449-5d for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 06:56:28 +0200 Original-Received: from localhost ([::1]:34040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojCkE-0006xJ-PV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 00:56:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojCjs-0006wc-Mj for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 00:56:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojCjq-0008NC-Dx for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 00:56:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojCjq-0002Sq-5Y for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 00:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2022 04:56: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.16657233509451 (code B ref 58479); Fri, 14 Oct 2022 04:56:02 +0000 Original-Received: (at 58479) by debbugs.gnu.org; 14 Oct 2022 04:55:50 +0000 Original-Received: from localhost ([127.0.0.1]:35497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojCjd-0002SN-Fg for submit@debbugs.gnu.org; Fri, 14 Oct 2022 00:55:49 -0400 Original-Received: from mail-pj1-f43.google.com ([209.85.216.43]:55106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojCjZ-0002S8-SV for 58479@debbugs.gnu.org; Fri, 14 Oct 2022 00:55:48 -0400 Original-Received: by mail-pj1-f43.google.com with SMTP id 70so3878505pjo.4 for <58479@debbugs.gnu.org>; Thu, 13 Oct 2022 21:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=19oUXarVP3XOKo4clZGUOHUtMgHAgK7F6ozpobwahGk=; b=Sy8PcTjJKBZXfqDnYZnyOaUOKuFEbFvOZ5aDZpJCruMQZp/c4eivbARO/uPlG1UTnl 7Z5OByP1HW/WvUghsrd7UMAou1ovd1Okb9vpm5/HxPdsLlvRUDdgpQi6bVxp92zmCfd1 +Ah7GjVXCP/owaWG0OR8wNAAlpoc7nllTxFUAnIdCsEyugwZeA4CQgQOjF1std2sDOMl nBQGs+U74mH6kmKISiLdBVieIgGT4ED9PCgocofUuHXnwtXyzbLqRsBevwxb1Wt3++6y Cnv7RGDjmpu8dNLXaOAWIPV9iCDSr0Wq0GVu9BcBnfJqDOu8J5Zmx9RBv84CErhRkTc6 FKWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=19oUXarVP3XOKo4clZGUOHUtMgHAgK7F6ozpobwahGk=; b=Zxt0cOA2p+dEiMR2krgKXzCw7RBe/4otagDGEVCfoXqKugKDiazpgA5iupmh1kCG7v 0c1s+GObtrL7mcXesazKvx62SZE0MC/pkhPDywRNwqtplXsT/kTBMxsrOM1WnqMoqjVV oPttG/ndASem9RVQUoKBVKYmpDMPwsLWyqZTN2gn2qnopQLtj3VdX1J+z9yR4vnYx6vb +Y5PnH0UZzVF06I1UJ/FsH301qhVwwUaN67tdw03qLEFBUqJKKEcrriZnkGPx/UXqZ5v fjwDGD0zE/ODXw2rcbwZgC9qDYYT8P4GatKBNUOYLgNBEj9o7SQekjIz+0b6Vw/YBPY6 h6Kg== X-Gm-Message-State: ACrzQf06mse4Zdb0OVHgfx+CEz9hYtESdKiKZh9fgV5FiIC4k40gVZgZ xE5LGGy7dVmGpJDXo9jgV6ncJJIW/kNbgPvz X-Google-Smtp-Source: AMsMyM5dJY9v+ZmVaYk7IjZWBFbNN3Vfd4fmGB3omncInL3EUfM3fHNxzYwDdwlKRocftjhFTNtxQA== X-Received: by 2002:a17:90b:3c51:b0:20c:2630:5259 with SMTP id pm17-20020a17090b3c5100b0020c26305259mr14936984pjb.177.1665723339755; Thu, 13 Oct 2022 21:55:39 -0700 (PDT) Original-Received: from localhost ([2409:8970:af2:32f:6c23:3ad5:f37d:541b]) by smtp.gmail.com with ESMTPSA id w2-20020a62c702000000b00562f431f3d2sm605293pfg.83.2022.10.13.21.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 21:55:38 -0700 (PDT) In-Reply-To: <87pmewqrj3.fsf@rfc20.org> 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:245365 Archived-At: Matt Armstrong writes: > The other half of the problem is this: you can see the ellipsis and I > cannot, even on the noverlay branch. When I play around with the buffer > created by the following I can see the ellipsis up until when the > overlay has length zero, then it disappears. This is true on master and > the noverlay branch. > > (defun my-b58479 () > (interactive) > (with-current-buffer (get-buffer-create "*b58479*") > (add-to-invisibility-spec (cons 'ellipsis t)) > (goto-char (point-max)) > (insert "Hello, World! ") > (let ((overlay (make-overlay (- (point) 10) (- (point) 5)))) > (overlay-put overlay 'invisible 'ellipsis)) > (display-buffer (current-buffer)))) > > I am not sure why you see the issue and I do not, but the clue might be > in what `my-dump-overlays' prints. On my side, playing with my-b58479 yields erroneous behaviour. Upon deleting the text under overlay, Emacs suddenly hides text _after_ the overlay. Yet, the overlay is reported to be 0-length. What I see is: 1. M-x my-b58479 2. Hell...rld! M-x my-dump-overlays Buffer # has 2 overlays. # (window # face hl-line priority -50) # (invisible ellipsis) 3. C-d (5 times) 4. Hell... "rld!" disappears! Buffer # has 2 overlays. # (window # face hl-line priority -50) # (invisible ellipsis) Also, see the video https://cubeatic.com/index.php/s/Dd7YinibtfjtYM9 I am at Emacs commit 65a7b5a802a15daa6274403fef822ec3c9b95469. And I can reproduce the issue with my-b58479 from emacs -Q. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at