Warning: Disable any custom PROPERTIES drawers
borgauf opened this issue · 3 comments
borgauf commented
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 custom PROPERTIES
drawer that was added whenever a heading was created. I disabled it and heading creation worked.
Kungsgeten commented
Could you post an example of the code that created the problem?
borgauf commented
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
#+begin_src emacs-lisp
(defgroup org-graph nil
"This will be the main group for all of org-graph's stuff."
:group 'org)
#+end_src
***** Set up org-graph PROPERTIES drawer upon heading creation (PuHC)
****** Create toggle for (PuHC)
#+begin_src emacs-lisp
(defcustom add-org-graph-puhc t
"Turn on/off auto-add of vertex/edge PROPERTIES drawer."
:type 'boolean
:group 'org-graph)
#+end_src
****** PuHC code
#+begin_src emacs-lisp
(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)))
#+end_src
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
<#358 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABA73WZG7RLBGME3PLYKQZTTOK6ADANCNFSM44Z24KHQ>
.
Kungsgeten commented
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.