-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: Disable any custom PROPERTIES drawers #358
Comments
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
#+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>
.
|
Okay, it could be interesting to see where the error occurs and if there's something to do about it in the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: