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 10:20:37 +0100 Message-ID: References: <87eduohyds.fsf@gmail.com> <834jvjdwwl.fsf@gnu.org> <87sfj3gmsx.fsf@gmail.com> <87bkprm4a9.fsf@localhost> 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="39877"; 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, Eli Qian To: Ihor Radchenko 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 10:21:23 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 1opnSU-000A93-0x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Nov 2022 10:21:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opnSB-0001TJ-Uw; Tue, 01 Nov 2022 05:21: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 1opnSA-0001TC-Rb for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 05:21: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 1opnSA-00039o-JZ for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 05:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opnSA-0004pd-EG for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 05:21: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 09:21: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.166729444618526 (code B ref 58928); Tue, 01 Nov 2022 09:21:02 +0000 Original-Received: (at 58928) by debbugs.gnu.org; 1 Nov 2022 09:20:46 +0000 Original-Received: from localhost ([127.0.0.1]:42734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opnRt-0004oi-OD for submit@debbugs.gnu.org; Tue, 01 Nov 2022 05:20:46 -0400 Original-Received: from mail-ej1-f54.google.com ([209.85.218.54]:33666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opnRs-0004oO-96 for 58928@debbugs.gnu.org; Tue, 01 Nov 2022 05:20:44 -0400 Original-Received: by mail-ej1-f54.google.com with SMTP id q9so35621515ejd.0 for <58928@debbugs.gnu.org>; Tue, 01 Nov 2022 02:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=B0eLiewOO/NGVis0nLxNwElJD9TBuFKoC3YpcLok84k=; b=lBmBrA4F/gY4rGQpK9cVUflMOaa1IzmPJrvQH7/lWy6C0JQ2qeK6ZSyQHomtf7LghB KvZVWbx7qOmmaW8WL6T5kx/WB95JiU0EwG83lOTjV+yCnjPKra9ht+U2S7OFvrBtuWWc GliTgKSpV1dqMTjY27aTj2O4bWYUISKhVTYaU+b50cv+VHImWbGxuOzYxASOENzaqrmX Bu4RxwC230aHjeXEuhDIXib6kVc9kikZQuNi4sowk7WR6RWLXReyKIx2E/yAe8A5h6r4 WEQ3rW+rerQkyZRCFHuGIN02UJWpKdrtjN5mN7tDjANX5kg3ArWhBnJYGteBnDxOVj9Z nmzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B0eLiewOO/NGVis0nLxNwElJD9TBuFKoC3YpcLok84k=; b=ShDLDWtTUvUWmvSBKetlzb2f+bGPg4DbAA94bAOBs+fwkjOhwQnJ8//v+KOZNAgHS+ qnHgW9FGFCjD5lAnSgOK5zQ/x52NjJ274/UI6CC7vGt/yrsjX90nObmSEb/8+LtlptKP 3dK5rGjMQJMws6FpjZkzcJjxLvpOhGWVJYpx27iSF1MiUox/mdVwbw+d4rrLS7qBsE4h Z2Hy4OSIH0b0Odi4J101fj2ka/RhLBgldioMQ6YY8FdrQiqMMQBV+t3QY28HA476Svfe mVuoaGjQiLe6dG4QcsXheLuaqejTYruCx+ScXeNxsw/wlTFSh9w6Yhj15LiX2bai5+XU 05iA== X-Gm-Message-State: ACrzQf0OYHi2ZRA0HnDi1t21Ofzd0r87iqSywj0Q9NIjFkX4slLYicQz P+4Pi5iF1vtSZJVme9wX8Fg= X-Google-Smtp-Source: AMsMyM7UD0jiqBI8+APJzo0xz4pkerKtAjwjkjy8eV2X6cIHLWK6RXvxMI0CX1JmJiSkO3saNgPlJA== X-Received: by 2002:a17:907:7632:b0:7a1:d4f0:e7c5 with SMTP id jy18-20020a170907763200b007a1d4f0e7c5mr17495361ejc.160.1667294438561; Tue, 01 Nov 2022 02:20:38 -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 ta14-20020a1709078c0e00b0078d4ee47c82sm3912930ejc.129.2022.11.01.02.20.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Nov 2022 02:20:38 -0700 (PDT) Content-Language: en-US In-Reply-To: <87bkprm4a9.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: , 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:246756 Archived-At: On 01.11.22 10:07, Ihor Radchenko wrote: > Gerd Möllmann writes: > >> 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? > > I cannot reproduce using somewhat old Emacs 29 > Development version 41d3d71a1e67 on master branch; build date 2022-10-28. > > I can reproduce after updating to the latest master. > > FYI, CAPTURE-test.org is nothing but a narrowed indirect buffer. > In this particular case, CAPTURE-test.org is narrowed to 1..4 before you > start typing. You can widen it and will see that it is still the > original Org file. > > Note that test.org itself is also narrowed, which should not happen. > Although, narrowing of test.org during capture can also be seen using > Emacs 28. > Thanks for looking into this, Ihor! I don't know, but my guess is that the indirect buffer thing is already a good starting point for Stefan/Matt.