branch: externals/org-gnosis
commit 6bc8fc0676a0fb1cb15b5c32f5828b8c6a64b57b
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>

    [fix] create-file: Disable org-id-track-globally.
    
    * Can lead to unexpected behavior.  Requires further investigation.
---
 org-gnosis.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/org-gnosis.el b/org-gnosis.el
index 080787bcf6..292fc42e1b 100644
--- a/org-gnosis.el
+++ b/org-gnosis.el
@@ -448,7 +448,9 @@ EXTRAS: The template to be inserted at the start."
   (let* ((file (expand-file-name
                (org-gnosis--create-name title)
                (or directory org-gnosis-dir)))
-        (buffer (find-file-noselect file)))
+        (buffer (find-file-noselect file))
+        ;; `org-id-track-globally' can cause unexpected issues.
+        (org-id-track-globally nil))
     (with-current-buffer buffer
       (unless (or (file-exists-p file)
                  (> (buffer-size) 0))

Reply via email to