From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Strange Org <> OS interaction w/ bad ID Date: Mon, 24 Feb 2020 10:21:41 -0800 Message-ID: <87eeuju9qi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56736) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6IMT-0000Ki-Ae for emacs-orgmode@gnu.org; Mon, 24 Feb 2020 13:21:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6IMS-0000Fk-6c for emacs-orgmode@gnu.org; Mon, 24 Feb 2020 13:21:45 -0500 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:41076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6IMS-0000E1-0w for emacs-orgmode@gnu.org; Mon, 24 Feb 2020 13:21:44 -0500 Received: by mail-pf1-x434.google.com with SMTP id j9so5760254pfa.8 for ; Mon, 24 Feb 2020 10:21:43 -0800 (PST) Received: from geus3064linuxwsm (75-172-119-31.tukw.qwest.net. [75.172.119.31]) by smtp.gmail.com with ESMTPSA id b6sm13545852pfg.17.2020.02.24.10.21.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Feb 2020 10:21:42 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode Hi Org List, This is cross-posted here: https://www.reddit.com/r/emacs/comments/f8t50q/help_debugging_org_os_interaction/ I've run into a strange bug. This is reproducible on my machine with "emacs -Q", but not with with emacs-sandbox https://github.com/alphapapa/emacs-sandbox.sh/ so I don't know if you'll be able to recreate this... Problem: When exporting an Org file that contains 1) <> refs and 2) id:link links to CUSTOM_ID, then Org parses files all over my filesystem. Given that this happens with "emacs -Q", I don't know why it would be opening files in random folders! The MWE Org file that I'm opening and exporting is: =========================== BEGIN =============================== #+BEGIN_SRC emacs-lisp :results value :noweb yes :eval no-export <> #+END_SRC #+NAME: bar #+BEGIN_SRC emacs-lisp :results value :noweb yes :eval no-export (org-version) #+END_SRC * Bug: Export with IDs and links :PROPERTIES: :CUSTOM_ID: foo :END: + Link to id:foo =========================== END =============================== The file is eventually exported correctly and the link works. I think I found the bug - when I run org-lint, I am told > 18 high Unknown ID "foo" And when I change "CUSTOM_ID" to "ID", then everything works. No bug. No random files parsed. With CUSTOM_ID I can see it parse files throughout my filesystem (how does it find them??) because I get this error message about 10x: > The local variables in /path/to/folder > contains values that may not be safe (*). > > Do you want to apply it? You can type > [snip] > > * eval: (pyvenv-activate "/path/to/anaconda/envs/env") The bug needs both the id: link to CUSTOM_ID *and* the <> ref. If I comment out the <> ref, then the bug does not appear. I thought named IDs were supposed to go into CUSTOM_ID properties rather than ID properties. Is this incorrect? Does anyone know why Org is parsing files in random folders when I have a bad ID and a <>? Thanks, -k.