From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sNCXKKWS/WZwQAAAe85BDQ:P1 (envelope-from ) for ; Wed, 02 Oct 2024 18:36:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sNCXKKWS/WZwQAAAe85BDQ (envelope-from ) for ; Wed, 02 Oct 2024 20:36:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=HvH85JqD; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727894181; a=rsa-sha256; cv=none; b=jU9PKglGAyYAlesTvuywY8b1Fm3jHWsKVxc1z2xf9Su/Z8QMcRnHp8xjMeeOSkf0Q0/1CB Ps886J4UuZQFMI3UCEiOTV15R4sL915UUEX/ctdNJMMiLYbeMePRcI63hGUPs31gDtq4Ef /ffrouGZRH4+d/hbqYf/ITVXH1yj9yfGFFGAcYnnPaUWK8XPF54wPcFGh+7H8Ct2isSsWi 4W1C8PmU49OyT51oyS3Yrk8FtF/j9FpCUA1EdsE1TSqextHpjIkkisFrYsJQx2s4E03wwa o4l/bXnL0tcYxckSB5TzrUdQyTzNl3chkBJu82DmxFUDZIrb7PCNjakDjoegyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=HvH85JqD; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727894181; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4B4IL6Jt3334AoDYQ3OHCVWtl9bRokaRym2T4+kp5ok=; b=GNo2geexZCQsdQH1+oOui1qBxzq5JAIqBDH5o3lUCkFH2/ruzB1/Sd0+gl19yOa2LcQ0uV L1cvfSla5vaIS7eHXP70K6sEXHqTBtqVNRxjxviSviPAokRaGuL9cv6TT3K1Tak8OeozLj BloZkHrXe8c19f/t67lJhT6M/c4wSd+513rlci2h/GI9+hFcAHbPWPYuv20mD2Tic8Z0PQ 8RyZveYEgoxkiw+6T+vMsrCCZb0zyfUJ/bBKw0XyMiOK5dOWzwPBgq65JNoduJccWzOI7x RhumEfH1T2Bi2zTzqx7BhMpRUaJUgul2135aBIOvOt7MuxpCGJk0h+GqzqlPPA== 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 5081965327 for ; Wed, 02 Oct 2024 20:36:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sw4C9-0004wh-VV; Wed, 02 Oct 2024 14:35:29 -0400 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 1sw4C8-0004wQ-Cq for emacs-orgmode@gnu.org; Wed, 02 Oct 2024 14:35:28 -0400 Received: from mail-ua1-x936.google.com ([2607:f8b0:4864:20::936]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sw4C6-0004oO-6O for emacs-orgmode@gnu.org; Wed, 02 Oct 2024 14:35:28 -0400 Received: by mail-ua1-x936.google.com with SMTP id a1e0cc1a2514c-84ea1e5e964so653039241.0 for ; Wed, 02 Oct 2024 11:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727894124; x=1728498924; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=4B4IL6Jt3334AoDYQ3OHCVWtl9bRokaRym2T4+kp5ok=; b=HvH85JqD72edJntQy9DqwbprpaUfZOtitLA66VjMMjgP5pHgxvRblfleBwGGfTuOvZ Nadk/BclDbH/cPI65B+jvEJsovhoK5opmq1Em4YWX5Yil45A22+cDO0UB5ZNHra4x8q4 vOs+WM42YdvLNePM5Whm2wFLFQc3g8WPT5qLwhvOMPT9UdZxTd3vw6wHKFpw8WycsJGh 0Ahb5mZplAyYnMA982e7f5fSwe7PkQzmwBxU36cQB07EX95K7swZ3R6+87ByxRxCdrxs nhk+jE9SS/0jFcCbpa/DEfE7oDdz5CFUEYdThWB2g73rLOJ0Cuo+Ecw6nWV/7U7NMy54 D/2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727894124; x=1728498924; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4B4IL6Jt3334AoDYQ3OHCVWtl9bRokaRym2T4+kp5ok=; b=VQfvQnbDlHe88kpZd1YCa/RnpIEo0JwsbO+7f7SUcMz6cu+xmJDVYxOpDjsjgSNF3U F5vJWtQdrjpihv72DmpB/CLxjyr5EyfV3gds5ccZX9xqf/2xDIiLoXmv/2uUrPiNPetd uzDtwx7e9FVfE1TN68ZVFPHo3kGjTQMwvX1OCbendfu/kbs9WQ1nr/d7ZcVjfQ48s2eu htpXFJvoY+OaSi5lk3/ibNsBkINF3Jo1sD105+ob0UxbfFiS0hfc9gtRv7i3Kb+x74UQ B3VHFmDeGKQpR5bOh+rUZxXsX97T72j6CjM1esbF1JkByyQGEJC52k5dyWqh4Faxym3a fOIA== X-Gm-Message-State: AOJu0Yxl8db4lUeYxvVARmL0U/yJgqZ2jru//927XlYJqX04fRftaw+s YpaTwRA1Y4nAWcT0iT7/HmmxZSo1P7GXkdW3WqCuu7Ba326T8nZjcoDez7OvR5gnvHRxBAlS3Xe RFcOcz6ExgBfWlCbpzcxCwYoqezlPyOujScg= X-Google-Smtp-Source: AGHT+IFo0QG4pfYSl11lK0hNi0m05eKgtRF35Mgr7kPkd24VYjKAlhROiNTRAHbp81dJN+QJKLnc66lSeE4OQqKli/I= X-Received: by 2002:a05:6102:4429:b0:4a2:89a1:133c with SMTP id ada2fe7eead31-4a3f4e0a084mr694340137.4.1727894124042; Wed, 02 Oct 2024 11:35:24 -0700 (PDT) MIME-Version: 1.0 From: Akash Pal Date: Thu, 3 Oct 2024 00:05:12 +0530 Message-ID: Subject: org-element-cache error when storing footnotes using capture buffer To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000791ffa062382b37c" Received-SPF: pass client-ip=2607:f8b0:4864:20::936; envelope-from=akashpaul21@gmail.com; helo=mail-ua1-x936.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.69 X-Spam-Score: -1.69 X-Migadu-Queue-Id: 5081965327 X-Migadu-Scanner: mx12.migadu.com X-TUID: HeQzaOVSzcCR --000000000000791ffa062382b37c Content-Type: text/plain; charset="UTF-8" Suppose we have the following document ``` #+title: test-file * This is h1 ** This is h1.2 We introduce some text here Then we narrow to this heading and introduce a footnote * Another heading here so that footnote capture works #+begin_src (org-element-property :buffer (org-element-at-point)) #+end_src * Footnotes ``` When we narrow to h1.2 (subtree) so that * Footnotes is not visible - after adding the footnote, when we check (org-element-property :buffer (org-element-at-point)) at any headline level or anywhere It returns nil - inplace of the # element it should return This causes functions to fail that rely on this. I am on Org mode version 9.8-pre (release_9.7.11-145-g28b631 -- the version we get when we clone the git today (2024-10-03) Thank you, let me know if you need any information in reproducing it. --000000000000791ffa062382b37c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Suppose we have the following document=

```
#+title: test-file

* This is= h1

** This is h1.2

We introduce some text here

Then = we narrow to this heading and introduce a footnote


* Another he= ading here so that footnote capture works
#+begin_src
(org-element-p= roperty :buffer (org-element-at-point))
#+end_src

* Footnotes
```

When we narrow to h1.2 (subtree) so tha= t * Footnotes is not visible - after adding the footnote, when we check

(org-element-property :buffer (org-element-at-point))= at any headline level or anywhere
It returns nil - inplace o= f the #<buffer> element it should return

Thi= s causes functions to fail that rely on this.

I am= on Org mode version 9.8-pre (release_9.7.11-145-g28b631 -- the version we = get when we clone the git today (2024-10-03)

Thank you, l= et me know if you need any information in reproducing it.
--000000000000791ffa062382b37c--