From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eHSDF43TaWLyLAAAbAwnHQ (envelope-from ) for ; Thu, 28 Apr 2022 01:36:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qJhSF43TaWJogwEAauVa8A (envelope-from ) for ; Thu, 28 Apr 2022 01:36:45 +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 E0F8E16197 for ; Thu, 28 Apr 2022 01:36:44 +0200 (CEST) Received: from localhost ([::1]:46206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njrD9-0001GD-N1 for larch@yhetil.org; Wed, 27 Apr 2022 19:36:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njrCj-0001G2-G4 for emacs-orgmode@gnu.org; Wed, 27 Apr 2022 19:36:17 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:46969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njrCh-0003hK-V8 for emacs-orgmode@gnu.org; Wed, 27 Apr 2022 19:36:17 -0400 Received: by mail-pf1-x430.google.com with SMTP id j6so2784540pfe.13 for ; Wed, 27 Apr 2022 16:36:15 -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=7jursFbsLazVPYNJpOJyk7ezSAOQW9ebpaLs/epilMs=; b=pOWa6oLramlfsKLoFYjjBlfnZN15endSYEWmRwqD/i2VoOMgXpvEFEA04koHJQ0rGd 49iqPs4XZBR1U3vj8YZ9CIYVIi4SgVJRm9U7nPWDJWk3jCpJagZdYmwYBI6qygquqBba IrBAlB4gdPxJbwkFOlMLn4HUjywJNfkR5hXItAY1nAL4nvedOTZ4Tb5A2ARdY7X/tSoo gNi7ytuy1uebJMLm4lgJnX0KFouJtuhGipcVfj/Yaejm7/QcIh0FXRsnRyeuYCt/hfGt 50Fd9edtFdRnrG4wpKSGxnwX4HJNXjHv8Upyb494+me5nOKS3SX8Hyz9Ovgnlziqk3ZD oU5A== 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=7jursFbsLazVPYNJpOJyk7ezSAOQW9ebpaLs/epilMs=; b=zYTfdI+w/DfMPbwFQYCHdYuHHakQOVt+wPhKq4bbyKl27nXMDL/PEJvlVRcb29wP1s 3+6/xaXz5u5zKMCdeG6mCbZyl5wLTFt3A5jPawChReY/5jcUi+nSuMu9UHCKoTA9rOh3 xgWy4SB8RvNTzSMPStOKt6kOin+pUw4l4XyASmGSpUZGqAwHU/ceeiJKxNAMx6gI5tlv lgM/bcvzjr9ht2Wxge6K6wKnTCGBljFlOVWj7As0XNpwcge5F3k5HMSK3uiKgqEQsOwE 6vVd83FWqMMXvEczpTNzDk7m6d7ZMB8Djk5bqvJw4RcCKLcItnSsoEjsK0k6NgDsulTe HHDg== X-Gm-Message-State: AOAM531Kb0VHBfX31awRqVUIOlpasV6U6kcpGuR6GNIFol0EpLDJpR/t uOB8zfWvZCslSJaIyI1nbm4= X-Google-Smtp-Source: ABdhPJwgxMFTIRL9N+75T5pVgxcI9Mij4nRKQSp5rjLcMivFmuDf/0RImzAWeazGa7UJ/LI/8Fdw8w== X-Received: by 2002:a05:6a00:a02:b0:4fd:f9dd:5494 with SMTP id p2-20020a056a000a0200b004fdf9dd5494mr32540683pfh.68.1651102574081; Wed, 27 Apr 2022 16:36:14 -0700 (PDT) Received: from localhost ([211.22.184.184]) by smtp.gmail.com with ESMTPSA id h13-20020a056a00230d00b004f427ffd485sm22619943pfh.143.2022.04.27.16.36.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 16:36:13 -0700 (PDT) From: Ihor Radchenko To: Skip Collins Subject: Re: [BUG] buffer displays incorrectly after capture In-Reply-To: References: <87o80mvrkv.fsf@localhost> Date: Thu, 28 Apr 2022 07:37:06 +0800 Message-ID: <87ilqu85el.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=yantar92@gmail.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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: , Cc: emacs-org list 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=1651102605; 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=7jursFbsLazVPYNJpOJyk7ezSAOQW9ebpaLs/epilMs=; b=Ih9tn0qqsxRy3mt5yg+qGJSiotBLFp8sPzBSeiv3DQy3xzlYjckt2CqFchUmiJpvbTl04H Fsg2ekPaJBuHtt8OpYvREfcuNfbRqqDxyOCeliJQDsc5pXQpeifrXFlx0zXJ5uFuzDKhAp 97zKP32UuNYJo7RX9b2ai1QDTZeCwl2ZorQztcrSGIUldKNQHqj2aKSXsH8dNNH28QNUCu CJp8ZeoT2OZOEfKb+WRgS/+6pb/Vc+aK5O7jpf8bzGOEFLgIVTm+aRK3DNFJX6+HHM2MoB xZFjBuAE2Juk+MF23TNmNP4Egw8N8bjrUKOMcrBg3zo+8XK/wqIh7qL6sJB4ZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651102605; a=rsa-sha256; cv=none; b=kEbNEyO4O57IT3dxmpzoHT6PzCEFbB27hvcgHcyBgZIXp8qbAy/ASsD6e+fvsVbNNRBuhL JZ+obxhGwahrvPJhrAtTHD3C/1o1C0q0u6dYYDOgSVCPQFZXnJU0hc9m8zai9hedA6adBL OJSZuLPqOTGWRiZygRdoojM0Xwua425NhUtZKwPHOpwSmRPC8qHwXjUIjy6NdQyzxlGN2p 8Nv9iQMBI2ygxOQW1HQ8RmxymvPYgdlHLn0oQ0WTgygp4umZJWMB/LpELfLwihFBHqls1E eXPv4UNrRoJ60LWXpAJ2Z8G63h+XwzwrpRJGLlzgvzBrgWswE0a+/35AYPTnxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pOWa6oLr; 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.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pOWa6oLr; 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: E0F8E16197 X-Spam-Score: -3.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: QSoQtxkApXpJ Skip Collins writes: > On Wed, Apr 27, 2022 at 4:48 AM Ihor Radchenko wrote: >> Fixed in 2d6f26c05 on main. And no, it was not that easy to fix. >> Captured headlines may or may not need to be unfolded. > > Thanks. I confirm that behavior is correct for folded level 1 > headlines. But the problem still exists at level 2 and deeper: > ... > 9. Observe that the new level 2 headline still does not appear, but a > misplaced folding ellipsis does appear at the end: > * foo... > ** bar > more text > ... This is not a bug. You will routinely see constructs like this when you jump to a deeply nested headline in real Org files. Only level 1 headlines are always kept visible by convention (and some people even argue that this convention should be dropped e.g. in sparse trees). To deal with such situations, see org-reveal (possibly with prefix arguments). Best, Ihor