Open borgauf opened 3 years ago
Could you post an example of the code that created the problem?
I simply had some code that stuck in automatically a PROPERTIES drawer whenever I created an org-mode heading. I was trying to do something like org-brain originally
(defgroup org-graph nil "This will be the main group for all of org-graph's stuff." :group 'org)
***** Set up org-graph PROPERTIES drawer upon heading creation (PuHC)
** Create toggle for (PuHC)
(defcustom add-org-graph-puhc t "Turn on/off auto-add of vertex/edge PROPERTIES drawer." :type 'boolean :group 'org-graph)
** PuHC code
(defadvice org-insert-heading (after add-id-stuff activate) (when add-org-graph-puhc (template-puhc)))
(defun template-puhc () (save-excursion (insert "\n:PROPERTIES:\n:TIME: " (format-time-string "%Y-%m-%dT%H:%M:%S") "\n:ID: " (org-id-uuid) "\n:EDGES: \n:END:") (org-cycle-hide-drawers 'all)))
I wouldn't expect your drawers to fight through mine, so I simply deactivated it.
Lawrence Bottorff Grand Marais, MN @.***
On Tue, May 18, 2021 at 2:31 PM Erik Sjöstrand @.***> wrote:
Could you post an example of the code that created the problem?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Kungsgeten/org-brain/issues/358#issuecomment-843479007, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABA73WZG7RLBGME3PLYKQZTTOK6ADANCNFSM44Z24KHQ .
Okay, it could be interesting to see where the error occurs and if there's something to do about it in the org-brain
code, but it seems problematic to recreate since it is so dependent on your configuration.
I just set up org-brain, but I kept getting a
max-lisp-eval-depth
error whenever I tried to add a heading. I remembered my org-mode setup had a customPROPERTIES
drawer that was added whenever a heading was created. I disabled it and heading creation worked.