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#58928: 29.0.50; overlays in org-mode are disrupted after call `org-capture` Date: Thu, 03 Nov 2022 23:47:07 -0400 Message-ID: References: <87eduohyds.fsf@gmail.com> <834jvjdwwl.fsf@gnu.org> <87sfj3gmsx.fsf@gmail.com> <87bkprm4a9.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="36671"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Ihor Radchenko , 58928@debbugs.gnu.org, Gerd =?UTF-8?Q?M=C3=B6llmann?= , Matt Armstrong , Eli Zaretskii , Eli Qian To: Eason Huang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 04 04:48:27 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 1oqngv-0009Er-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Nov 2022 04:48:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqngc-0007kG-SX; Thu, 03 Nov 2022 23:48:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqngZ-0007jx-9Y for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 23:48:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqngZ-0008KZ-1E for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 23:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqngX-0003Mj-NF for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2022 23:48: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: Fri, 04 Nov 2022 03:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58928 X-GNU-PR-Package: emacs Original-Received: via spool by 58928-submit@debbugs.gnu.org id=B58928.166753364412778 (code B ref 58928); Fri, 04 Nov 2022 03:48:01 +0000 Original-Received: (at 58928) by debbugs.gnu.org; 4 Nov 2022 03:47:24 +0000 Original-Received: from localhost ([127.0.0.1]:51357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqnfw-0003K2-9k for submit@debbugs.gnu.org; Thu, 03 Nov 2022 23:47:24 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqnfs-0003Jo-Le for 58928@debbugs.gnu.org; Thu, 03 Nov 2022 23:47:22 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3877F100201; Thu, 3 Nov 2022 23:47:15 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 063EC10010C; Thu, 3 Nov 2022 23:47:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1667533629; bh=v2ZOFpZupJc0fvXdzXzHXh8oQBTkEruAN1QFu+JdEek=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=CYT9+Gnxjs39sN5TyHG8RGE+6N3l8pMRcOoKacy0JJoQ+nSP8sgkB1pzEk7jeQLM+ bObwZO/CTFJ4L95rInEXJ8pyixhzpfQEpWfm5CAeMsTqtTy88TaB72s7rceeZVhUV2 Zx5Gh+yq6bfkjun+1nAcoQ5aypwHObODN2cfNdgqVy1xmEAh39sqNl8nlsdpf2ArPR IsvldOlQvt8vPCTO9EvMxZazMgczB8biqtzeoCZ/P/+3uy3oQ//r/T+iwFeMdamvY3 ebuNlZhKa51Ya5zmsefKwczcjf0Nlset+2nFTUOXmwB1BVAbuY2dwTa5Fm05FfS5G2 oJG0Z/0238Iaw== Original-Received: from pastel (65-110-220-202.cpe.pppoe.ca [65.110.220.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 91044120F8F; Thu, 3 Nov 2022 23:47:08 -0400 (EDT) In-Reply-To: (Eason Huang's message of "Thu, 03 Nov 2022 23:02:10 +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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247039 Archived-At: > 4. Now the .notes buffer is like this: > * Tasks > ** TODO test1... > 5. Try step 2 again, now you will see the issue. Now the .notes buffer looks like this: > * Tasks > ** TODO test1...TODO > [2022-11-03 Thu] > test1 With the latest changes I pushed, at the end of step 5 I see only: ** TODO test1... This doesn't look completely right (the "..." hides both the "test1" todo and the subsequent one), but I see exactly the same when I try it on Emacs-28, so are you sure it's something that changed with the new overlays code? This behavior is different from the behavior I see in Emacs-27, where I get: ** TODO test1... ** TODO test2 [2022-11-03 Thu] but the difference comes from where the invisible overlay is placed: when the `.notes` buffer just contains: * Tasks ** TODO test1 [2022-11-03 Thu] if you hit TAB with cursor on the TODO line, in both Emacs-28/29 and Emacs-27 I see: * Tasks ** TODO test1... but if I `M->` to go to the end of buffer, I see that in Emacs-27, the final LF character is not invisible (i.e. my cursor is displayed below the "**") whereas with Emacs-28/29 my cursor ends up right after the "...". Stefan