From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mNo9IljczmKzcQEAbAwnHQ (envelope-from ) for ; Wed, 13 Jul 2022 16:53:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6Kb+IVjczmIkjAAAauVa8A (envelope-from ) for ; Wed, 13 Jul 2022 16:53:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4C31714296 for ; Wed, 13 Jul 2022 16:53:12 +0200 (CEST) Received: from localhost ([::1]:50512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBdjj-0001ot-FP for larch@yhetil.org; Wed, 13 Jul 2022 10:53:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBdhT-0001fm-Ak for emacs-orgmode@gnu.org; Wed, 13 Jul 2022 10:50:51 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:36385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBdhJ-0000Pn-Gp for emacs-orgmode@gnu.org; Wed, 13 Jul 2022 10:50:46 -0400 Received: by mail-pg1-x52f.google.com with SMTP id s206so10659249pgs.3 for ; Wed, 13 Jul 2022 07:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=aMovIcOqhriJU0yEo1gUYAn3V1jOiibiO4KDwsBwdx0=; b=g8C1vHeGWzi2pCJNlvxtdZ0M+LzYF/nkxwGGAuc4DW0O5+dqXNhJ2oKI4U1tuAEghR QNjWvgIY3Vat0gAHzLs4JS0vNQ59ST+KoA5RowIU9QzivClZpd5zJZBJ7nv5z3mZ3cWj vZJPU0F7Smm0sTPQ20B4IDEW3SswttFISSUZI2mcB09n+8r2H6tl7t0z8M5wpFadU/TY Dijx4PqCG2nIY9hzUhvjfpHGAWUysGORIk1H7eGbrBXb2YSmrikt42iRMpSXkjS5iv6s +sn318/alw8eYK5Kozl9OhhE8VQ5kuOWKM1Dp/9LqBCYmnZRKsvwgX90KyWc/N/jfaZ3 Ea7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=aMovIcOqhriJU0yEo1gUYAn3V1jOiibiO4KDwsBwdx0=; b=xk35n5JEBG4+4ztrY7fLdMZAF7s/eCi+JybTXJRWbgukJBYb0AQ92uMmEujguP033d mIhHYxUvZqrgvw6L68mvb7lCSmu5fGKn7RXkGeQ4lySeOSGvelVQL7+mq/4KQ5gVbBF2 AKNPMg/BjvLh/7vUE3thjKVQ8QrP3OSF7ppRkMCQ8SdpeSjMPa+8T52TVJsMrjXDQJcE wxClQGJwPprENLNlzPtaIw5ZPOz2zfkgInLt/T3SDPAOAJOh5+D8v7FtVgdrPpGDDtZR 0Qy746GpBic8zb1OF1dUye+Ws4xERbMWFPIo0M7QnHXQvipCb3gnvI6/ukEdCij5pxhB tjsw== X-Gm-Message-State: AJIora+hjHYaM5Hx54tl0xEk4uf/jHafTOTfUzYH7f2vClHUdf44ghST 3G1YW01auwnZ4WES43WG+6Q= X-Google-Smtp-Source: AGRyM1s4vzGe1Hvyokh+zi5TAMMg+9UTb0Yw3QSio4S9xvoKpj+OgCBDJfKzyWKpMrEhiRo3R7wWbw== X-Received: by 2002:a05:6a00:2282:b0:52b:bab:16a4 with SMTP id f2-20020a056a00228200b0052b0bab16a4mr3174236pfe.17.1657723835194; Wed, 13 Jul 2022 07:50:35 -0700 (PDT) Received: from localhost (198-27-249-67.fiber.dynamic.sonic.net. [198.27.249.67]) by smtp.gmail.com with ESMTPSA id h16-20020a056a00001000b0051bada81bc7sm6850764pfk.161.2022.07.13.07.50.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 07:50:34 -0700 (PDT) From: Jack Kamm To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Recent folding issues In-Reply-To: <87sfn6h1qv.fsf@localhost> References: <877d4jve13.fsf@gmail.com> <87ilo36su8.fsf@localhost> <871quqvorh.fsf@gmail.com> <87sfn6h1qv.fsf@localhost> Date: Wed, 13 Jul 2022 07:50:33 -0700 Message-ID: <871quprrra.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=jackkamm@gmail.com; helo=mail-pg1-x52f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657723992; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aMovIcOqhriJU0yEo1gUYAn3V1jOiibiO4KDwsBwdx0=; b=dteUNjRzUniD/W7+B90N+M8A2138TYW2t67DBO4OQBaOEBaRtD81ZX8oRLRLzA/iFI6WFu +juPFyah9e/AHMaxr/gN8IEyar5JvQmc5uH4KzFgtWH+yuy0/HiAsZeOT/gUkKHI52OAo7 qVjtepmYjP3gQ/Pjo+z/R1Qh6VK9fh1sli4N3FARc45Rwzno9zcKWu3xBQiGs50gOjhcDJ iVPBOzaNImgO5cKTXoowP0RfeKN09nbHNDnGm/xocKPEhQE87B+kOYuw9HCY9ZwjM+9+x4 Dmilh/KND15NqZUnnpryaJlRCg/5/tjZahDh477MTt2QZsJZYSw5efedC7H1ag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657723992; a=rsa-sha256; cv=none; b=qcM67AUDC1qgPIjCw1t0WZiEA8F9O5fQD4qeCOO9Rxu9f230zA3ZydslYH9Owgd57ju1p7 byCftPXs/Iu9bz3Oh/5WOhYfw+03jBSvcwM1cpgPoN0DHwN2nZVrWHZNFjecw4PzWzggZV sSUq4RhA7x+r2sF6XgRzQ1RxID+K6h1+V7GNSU+HMwWcIhU0rIURUbbwK5r8H9qMIgtAbo jlcuSc7mSgXW34mTeLjvwlH+ZrIyaxhQ3jPsB7kCtBYsC0HYGDqt1+5jwAchBj3HIV4/2Y LkgQqL9I8oDDjF+TBhESj6IW8nFO4hyCD1yzzUaVcTTqL/6hOSL07aDv2jxfQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=g8C1vHeG; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.94 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=g8C1vHeG; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4C31714296 X-Spam-Score: -3.94 X-Migadu-Scanner: scn1.migadu.com X-TUID: Dunt4eztUl9F Hi Ihor, > Can you try the attached patch set? Thanks for the very prompt patchset! Testing on the minimal example, the patchset solves the problem I reported. After some brief testing with my usual config, it solves the problem of headlines running together after capture, and also solves the problem of unfolding the above headline when calling evil-open-above (vim's "O" key). I'm still having some issues with evil-open-below (vim's "o" key). I don't have a minimal config for this yet -- it requires the 3rd party package evil, and I'm not sure if emacs has a built-in equivalent to evil-open-below. But here's a description of what I observe. Suppose I have an org file like this: > * Headline 1 > ** Headline 1a > ** Headline 1b > *** Headline 1b1 > > Stuff > > * Headline 2 Then I collapse the buffer to look like this: > * Headline 1... > * Headline 2 If I put the cursor on Headline 1 and call evil-open-below, I don't immediately see a new line, and the buffer looks as above, but with the pointer "inside" the elipses. As soon as I start typing, it will unfold the last subheading of Headline 1, and the buffer looks like this after I finished typing: > * Headline 1 > *** Headline 1b1 > > Stuff > > * New typing here > * Headline 2 And also I got the message: > org-fold-check-before-invisible-edit--text-properties: Edit in invisible region aborted, repeat to confirm with text visible Whereas with org-fold-core-style set to "overlays", I get the old behavior -- after typing "o" on Headline 1, I see this: > * Headline 1... > > * Headline 2 With the pointer on the new line, and after typing I see: > * Headline 1... > * New typing here > * Headline 2