org-brain icon indicating copy to clipboard operation
org-brain copied to clipboard

Warning: Disable any custom PROPERTIES drawers

Open borgauf opened this issue 3 years ago • 3 comments

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.

borgauf avatar May 13 '21 04:05 borgauf

Could you post an example of the code that created the problem?

Kungsgeten avatar May 18 '21 19:05 Kungsgeten

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 https://github.com/Kungsgeten/org-brain/issues/358#issuecomment-843479007, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABA73WZG7RLBGME3PLYKQZTTOK6ADANCNFSM44Z24KHQ .

borgauf avatar May 19 '21 04:05 borgauf

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.

Kungsgeten avatar May 19 '21 05:05 Kungsgeten