From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.bugs Subject: bug#58928: 29.0.50; overlays in org-mode are disrupted after call `org-capture` Date: Tue, 01 Nov 2022 15:36:20 -0700 Message-ID: <87y1su9uaj.fsf@rfc20.org> References: <87eduohyds.fsf@gmail.com> <834jvjdwwl.fsf@gnu.org> <87sfj3gmsx.fsf@gmail.com> <87bkprm4a9.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3608"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58928@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier , Eli Qian To: Gerd =?UTF-8?Q?M=C3=B6llmann?= , Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 01 23:37:17 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 1opzsi-0000ha-Ge for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Nov 2022 23:37:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opzsW-0007ny-2e; Tue, 01 Nov 2022 18:37:04 -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 1opzsU-0007nk-UR for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 18:37: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 1opzsU-00034B-Nf for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 18:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opzsU-0005xB-4a for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 18:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Armstrong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Nov 2022 22:37: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.166734219522851 (code B ref 58928); Tue, 01 Nov 2022 22:37:02 +0000 Original-Received: (at 58928) by debbugs.gnu.org; 1 Nov 2022 22:36:35 +0000 Original-Received: from localhost ([127.0.0.1]:44397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opzs2-0005wU-P3 for submit@debbugs.gnu.org; Tue, 01 Nov 2022 18:36:35 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:51125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opzrz-0005wG-No for 58928@debbugs.gnu.org; Tue, 01 Nov 2022 18:36:32 -0400 Original-Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id BF3C71BF207; Tue, 1 Nov 2022 22:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1667342185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9peljMLLiw8vfbeLPbzzDnZRPDqRCLlV38aoaKsJxYM=; b=Rziu4LrX7q3RXjIudeTxfyuiVzJiItyxjYw5fNmNUANiAhQjCLXbKgjxL6l4EqnMUq0gKv ivpqxwwj/va8anSCkqbgLSftSTloEODVk+cPn+r4cBQMUkEOnaUy2oKVZno8OXo6SEjrlc lZR2/ez7C0dIn9tB9aPTBxtE+1b79zvIidH6cnq949gJoZ6Ma69Qxg3PnVgTq2IDUqjMUZ UDtTIMof+510KDty/ekjW7UHKNBAgpafOrdsLUNUNOdKZlq0HOxcXKTgP6doa4LYmECyWf Ri2gM1lBEvrML2uwWPJrVIWEwqii5pV0chL7vNHHi2vqho6rpWzKROcgco27ZQ== Original-Received: from matt by naz with local (Exim 4.96) (envelope-from ) id 1opzro-000NCR-2t; Tue, 01 Nov 2022 15:36:20 -0700 In-Reply-To: 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:246816 Archived-At: > 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. I can repro this with a test.org file containing one simple entry: ---------------------------------------------------------------------- * DONE test My dog has fleas, a *lot* of fleas! ---------------------------------------------------------------------- As Eli Quian instructed, use Shift-TAB in test.org to get it like this: ---------------------------------------------------------------------- * DONE test... ---------------------------------------------------------------------- At that point there is one overlay: ---------------------------------------------------------------------- Buffer # has 1 overlays. # (isearch-open-invisible #[128 "\300\301!\207" [org-show-context isearch] 3 "\n\n(fn &rest _)"] invisible outline evaporate t) ---------------------------------------------------------------------- This covers from the newline just after "* DONE test" to end of buffer. Now, "M-x org-capture" gets you a capture buffer and the test.org buffer is already displaying the wrong thing: ---------------------------------------------------------------------- * DONE t...s! ---------------------------------------------------------------------- while CAPTURE-test.org is displaying this (the '|' is (point)): ---------------------------------------------------------------------- * | ---------------------------------------------------------------------- If I erase the "* " from CAPTURE-test.org then test.org displays this: ---------------------------------------------------------------------- * DONE tes... ---------------------------------------------------------------------- And if I "M-x widen" CAPTURE-test.org I see this: ---------------------------------------------------------------------- * DONE test My dog has fleas, a *lot* of fleas! ---------------------------------------------------------------------- I cancel out and re-do the M-x org-capture, then type in a new org entry in CAPTURE-test.org, which looks like: ---------------------------------------------------------------------- * My new org heading ---------------------------------------------------------------------- ...and test.org looks like this: ---------------------------------------------------------------------- ...s, a *lot* of fleas! ----------------------------------------------------------------------