From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#58928: 29.0.50; overlays in org-mode are disrupted after call `org-capture` Date: Tue, 1 Nov 2022 08:50:52 +0100 Message-ID: References: <87eduohyds.fsf@gmail.com> <834jvjdwwl.fsf@gnu.org> <87sfj3gmsx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37601"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Cc: Matt Armstrong , Eli Zaretskii , Stefan Monnier , 58928@debbugs.gnu.org To: Eli Qian Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 01 08:52:21 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 1opm4K-0009XF-TN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Nov 2022 08:52:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opm43-0001k1-KV; Tue, 01 Nov 2022 03:52:03 -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 1opm42-0001jq-Jl for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 03:52:02 -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 1opm42-0000Vs-CP for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 03:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opm42-0002Bf-7p for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 03:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Nov 2022 07:52:02 +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.16672890628306 (code B ref 58928); Tue, 01 Nov 2022 07:52:02 +0000 Original-Received: (at 58928) by debbugs.gnu.org; 1 Nov 2022 07:51:02 +0000 Original-Received: from localhost ([127.0.0.1]:42599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opm33-00029q-PW for submit@debbugs.gnu.org; Tue, 01 Nov 2022 03:51:02 -0400 Original-Received: from mail-ej1-f42.google.com ([209.85.218.42]:35605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opm31-00029U-WC for 58928@debbugs.gnu.org; Tue, 01 Nov 2022 03:51:00 -0400 Original-Received: by mail-ej1-f42.google.com with SMTP id k2so35148543ejr.2 for <58928@debbugs.gnu.org>; Tue, 01 Nov 2022 00:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:cc:references:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=N3PqSR5dqTbv2zNQ7UJE9yCNcMpOkTXWU+oQVx/HbTc=; b=lLNM8A1hwi5K3Y40JGIRoXU5datb6T/SBVfPzSQ39GipoXirl3SxVbBNtwKBVFC1Xk 0f0cFo9A/P6csCYfJiS8RHZz3A0bORtNBhNMs12w3ABnxgNFNJTwv5+vcqeCXKEBxL86 +o+TtnTo2pgB46l7GzWGVTj9L0/3hz4XJPGLzZk7hbIgwhp8Bq6iZcthDLwK40XpFx0E vJA1U3oyY3bsB5IJhSyP4t/Gaichm0NtgIgu5lVmwlwilhdqAV5X5+VkdIrEzJz4MJ/Z IHejTkanqfg/zRQD5oHSChd9EsQw9yFxrBpTR91YQ3imDmLUUiNxlFmUJR66PjD3ZC7n wQkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:cc:references:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=N3PqSR5dqTbv2zNQ7UJE9yCNcMpOkTXWU+oQVx/HbTc=; b=FoUTNc2eCrDokrKh/+74k68O9BF3nNEfwjFmZROBp9oSq7EEGOcFg5c9sZSWKyKioP 9zOo+ALDZ4KCnmCS+XoEUv3kjGUNueLVfFVaT+9vBbb9iW1JMaqI66HF65Zctbt3w3yB Q/uglHLeTaHFcsSzg7sFJcl0k9GVjvsV+9vgrC+uhFdi5BW058ZsgOBOyRLIPzTzo6CH Oqhq4j5zqiTvP8kugcJwBem9wlKDownv8qwIZwt8HiOxhXgnS7FZ+vy8MrjFV4b0R0Gh Gb6ioweUsHFb13uqcDt7XmGsxfsRpXa0VqNgFg9dOGZadxCmG0Z7M0YjfWs1cggXrJgN 634w== X-Gm-Message-State: ACrzQf2kcjMiIDtPdwwp0pnxx71E1BmdmeAjwhVAeItSx0x+eCZ+B40P lO+ck2nECimi+y61eHdL2cI= X-Google-Smtp-Source: AMsMyM4WtRcMk3Hsjc/JPXYXF5x1iZjBRlOt1cLJqtuIlbSOMPK8WgDpHQxkJpvbhbF2PfqoFM7xxg== X-Received: by 2002:a17:907:6e24:b0:791:905f:7881 with SMTP id sd36-20020a1709076e2400b00791905f7881mr17121051ejc.120.1667289054060; Tue, 01 Nov 2022 00:50:54 -0700 (PDT) Original-Received: from [192.168.178.21] (pd9e36358.dip0.t-ipconnect.de. [217.227.99.88]) by smtp.gmail.com with ESMTPSA id i3-20020aa7c703000000b00457c85bd890sm4195508edq.55.2022.11.01.00.50.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Nov 2022 00:50:53 -0700 (PDT) Content-Language: en-US In-Reply-To: <87sfj3gmsx.fsf@gmail.com> 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+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246749 Archived-At: On 01.11.22 08:11, Eli Qian wrote: > This is my first bug reporting, so I apologize if there are any omissions. > > On Tue, Nov 01 2022, Gerd Möllmann wrote: > >> I've evaluated the form above as-is in *scratch*, and done the S-tab. >> I now have 4 lines looking like "* DONE test..." in the buffer. > > After Step 4, save the buffer to "~/test.org". Now You have 4 lines looking > like "* DONE test..." in "~/test.org". > > In Step 5, the actual code is > > (setq org-capture-templates >      '(("l" "global notes" entry (file "~/test.org") >           "* %?" >           :prepend t >           :empty-lines 0))) >>>> 6. Call `org-capture` in test.org buffer, and type something. >> >> M-x org-capture RET in test.org asks me what template to use, and I >> choose 'l'.  I then type something and hit C-c C-c.  It asks me to let >> it create a directory ~/org, and I let it do that.  What I see after >> that in the test.log buffer looks like it did before.  There are same 4 >> lines. >> >> What am I doing wrong? >> >> (This is current master.) > > Step 6: > M-x org-capture RET in test.org , you will see the capture buffer appears > on the right, while test.org buffer on the left. Then type something, > you will see the text in test.org buffer disrupted. Thanks, that worked. (It's not a big deal, but please keep the others in the CC.) What I see now is that I have 2 windows. One is showing test.org, the other is a buffer CAPTURE-test.org. While typing in CAPTURE-test.org, the text in test.org is mangled with each key stroke. The invisible parts (...) are moved around in test.org. C-l doesn't change anything. Running with --enable-checking and ASAN doesn't show anything. Do we have someone who knows Org internals, and can tell what exactly typing in CAPTURE-test.org does, presumably with overlays?