Skip to content
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

Doom freeze when i save (:w) after installing emacs 28 #5924

Closed
reyman opened this issue Dec 21, 2021 · 6 comments
Closed

Doom freeze when i save (:w) after installing emacs 28 #5924

reyman opened this issue Dec 21, 2021 · 6 comments
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet

Comments

@reyman
Copy link

reyman commented Dec 21, 2021

What did you expect to happen?

I install org-transclusion from Nobiot, i try to use it in a simple example (see step to reproduce)

Everything goes well, except when i hit :w , i expect "save", but emacs freeze/hang.

What actually happened?

When i sent pkill -USR2, i have this error in stack (i run using emacs -debug-init) :

Debugger entered--entering a function:
* #f(compiled-function () #<bytecode 0xaffe8c1e39a17>)()
  org-element--parse-to(1587)
  org-element-at-point(1587)
  org-element-cache-map(ignore :granularity headline+inlinetask)
  org-element-cache-map(#f(compiled-function (el) #<bytecode 0x142cbc59694e878f>) :next-re "^\\*+ " :fail-re "^\\*+ " :narrow t)
  org-scan-tags(org-encrypt-entry (lambda (todo tags-list level) (progn (setq org-cached-props nil) (or (and (member "crypt" tags-list))))) nil)
  org-encrypt-entries()
  funcall(org-encrypt-entries)
  (condition-case e (funcall hook) ((debug error) (signal 'doom-hook-error (list hook e))))
  doom-run-hook(org-encrypt-entries)
  run-hook-wrapped(doom-run-hook org-encrypt-entries)
  (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car (cdr e))) (symbol-name (car (cdr e))) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e)))))
  (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car ...)) (symbol-name (car ...)) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp ...) (symbol-name ...) (car ...)) (car (cdr ...)))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  (let ((--dolist-tail-- hooks)) (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if ... ... ...) (car ...))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))))
  doom-run-hooks(before-save-hook)
  apply(doom-run-hooks before-save-hook)
  run-hooks(before-save-hook)
  basic-save-buffer(nil)
  save-buffer()
  evil-write(nil nil nil nil nil)
  funcall-interactively(evil-write nil nil nil nil nil)
  call-interactively(evil-write)
  evil-ex-call-command(nil #("w" 0 1 (ex-index 1)) nil)
  eval((evil-ex-call-command nil #("w" 0 1 (ex-index 1)) nil))
  evil-ex-execute(#("w" 0 1 (ex-index 1)))
  #<subr evil-ex>(nil)
  apply(#<subr evil-ex> nil)
  evil-ex(nil)
  funcall-interactively(evil-ex nil)
  command-execute(evil-ex)

Describe your attempts to resolve the issue

Edit (see comments bottom) : it seems this is not specifically linked to org-transclusion, but a problem with org encrypt or org cache.

Steps to reproduce

  1. Installation of org-transclude from melpa (package.el)
(package! org-transclusion)
  1. Create a myfile.org with
#+name: prepare-secrets
#+header: :var FILE=""
#+begin_src sh :noweb yes :exports result
if [ -f "$FILE" ]; then
    echo "$FILE already exist"
else
    publicKey="/home/xxx/xxx.asc"
    dd if=/dev/urandom bs=1024 count=4 | base64 --wrap=0 | gpg --batch --recipient-file $publicKey -o xxx.asc -a --encrypt --yes
fi
#+end_src
  1. Create another file main.org with transclude activated (M-X org-transclusion-mode) :
#+transclude: [[file:myfile.org][server_script.org]] 

#+CALL: prepare-secrets(FILE="/home/reyman/.password-store/nixos/miskatonic/luks-miskatonic-keyfile.asc")
  1. Call org-babel (M-X org-babel-execute-buffer)

  2. Hit :w

System Information

https://pastebin.com/D4GA9xHE

@reyman reyman added is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels Dec 21, 2021
@oatmealm
Copy link

This might be related, I'm also using org-transclusion, but problem persisted after disabling it. Doom takes couple of minutes to load, often the GUI says it's not responsive. Had to use this:

pkill -SIGUSR2 -i emacs ; emacsclient -e '(setq debug-on-quit nil)'
* substitute-command-keys("Quit")
  mapc(#f(compiled-function (elt) #<bytecode 0x1fb280f9cdb1d5a3>) ((:variable (org-element--headline-cache org-element--cache) :persist-file "ca/ab8390-c391-45f0-a6d2-dc61ad7..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "d0/ceb3a2-f37d-485a-9e64-b081645..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "bc/8ce86e-ebc0-4c16-a8f4-22d0f8a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "c7/4828c1-b513-49c4-b712-3b8d99d..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "e8/29f3a4-02c6-41ed-ac13-21b4e33..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "0d/df174d-3032-4eb2-9bf7-b140574..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "8e/7b6494-3f8e-432f-ad23-e6e318a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "4e/2e82ca-2046-4d7e-ae47-ba3a209..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "88/bf94f2-fc2c-4b0a-aff0-3871ca4..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "32/5e71a7-3491-4eda-99f8-099ca98..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "29/f16ee6-d420-4cd6-b2b9-ac847a3..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "de/de5593-dd36-4403-a7cb-4a80359..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "af/75c085-9fb7-430a-8921-16b4dc6..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "2e/a65688-31f5-4bd7-b8b6-ddce8ac..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "bb/f5e13d-3cf1-45c1-85fa-19f0e76..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "db/f7476f-4e8e-446d-8deb-71ee82f..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "3c/f1465c-9621-4c35-b693-694ae07..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "05/eb4787-a16b-4f58-9a92-d2b0422..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "96/30fe4c-9ddc-44e2-8868-1922cfd..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "61/72b9ae-4c38-44b3-8f1d-fe7f7bc..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "e7/38cfed-5ebb-4059-8d09-13f5525..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "9e/74ee8c-0c5d-4e2b-ac92-fb817a5..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "d8/5c8e41-984a-475f-a9c4-d5ee93f..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "d4/d0cbbd-4846-4f88-973f-c8653b4..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "c1/652fee-9e73-4b60-bb27-1e75a5a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "4a/a96e7b-57ea-4998-81b0-4f6c627..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "47/a3975b-d3f9-44a2-b64f-7699925..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "43/b6ff74-fcc5-444d-8160-305f27a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "09/ca3811-490a-45ba-a181-89414cb..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "bd/85372b-dd55-4825-93c3-9835d2a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "a7/8c1ce4-91b8-4a7f-aa04-e2c382e..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "79/ea1d81-2c2e-409b-a44d-0bacaad..." :path nil :inode nil :hash nil) ...))
  seq-do(#f(compiled-function (elt) #<bytecode 0x1fb280f9cdb1d5a3>) ((:variable (org-element--headline-cache org-element--cache) :persist-file "ca/ab8390-c391-45f0-a6d2-dc61ad7..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "d0/ceb3a2-f37d-485a-9e64-b081645..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "bc/8ce86e-ebc0-4c16-a8f4-22d0f8a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "c7/4828c1-b513-49c4-b712-3b8d99d..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "e8/29f3a4-02c6-41ed-ac13-21b4e33..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "0d/df174d-3032-4eb2-9bf7-b140574..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "8e/7b6494-3f8e-432f-ad23-e6e318a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "4e/2e82ca-2046-4d7e-ae47-ba3a209..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "88/bf94f2-fc2c-4b0a-aff0-3871ca4..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "32/5e71a7-3491-4eda-99f8-099ca98..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "29/f16ee6-d420-4cd6-b2b9-ac847a3..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "de/de5593-dd36-4403-a7cb-4a80359..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "af/75c085-9fb7-430a-8921-16b4dc6..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "2e/a65688-31f5-4bd7-b8b6-ddce8ac..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "bb/f5e13d-3cf1-45c1-85fa-19f0e76..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "db/f7476f-4e8e-446d-8deb-71ee82f..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "3c/f1465c-9621-4c35-b693-694ae07..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "05/eb4787-a16b-4f58-9a92-d2b0422..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "96/30fe4c-9ddc-44e2-8868-1922cfd..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "61/72b9ae-4c38-44b3-8f1d-fe7f7bc..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "e7/38cfed-5ebb-4059-8d09-13f5525..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "9e/74ee8c-0c5d-4e2b-ac92-fb817a5..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "d8/5c8e41-984a-475f-a9c4-d5ee93f..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "d4/d0cbbd-4846-4f88-973f-c8653b4..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "c1/652fee-9e73-4b60-bb27-1e75a5a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "4a/a96e7b-57ea-4998-81b0-4f6c627..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "47/a3975b-d3f9-44a2-b64f-7699925..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "43/b6ff74-fcc5-444d-8160-305f27a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "09/ca3811-490a-45ba-a181-89414cb..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "bd/85372b-dd55-4825-93c3-9835d2a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "a7/8c1ce4-91b8-4a7f-aa04-e2c382e..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "79/ea1d81-2c2e-409b-a44d-0bacaad..." :path nil :inode nil :hash nil) ...))
  seq-find(#f(compiled-function (plist) #<bytecode 0x1b028a5ced84b312>) ((:variable (org-element--headline-cache org-element--cache) :persist-file "ca/ab8390-c391-45f0-a6d2-dc61ad7..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "d0/ceb3a2-f37d-485a-9e64-b081645..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "bc/8ce86e-ebc0-4c16-a8f4-22d0f8a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "c7/4828c1-b513-49c4-b712-3b8d99d..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "e8/29f3a4-02c6-41ed-ac13-21b4e33..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "0d/df174d-3032-4eb2-9bf7-b140574..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "8e/7b6494-3f8e-432f-ad23-e6e318a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "4e/2e82ca-2046-4d7e-ae47-ba3a209..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "88/bf94f2-fc2c-4b0a-aff0-3871ca4..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "32/5e71a7-3491-4eda-99f8-099ca98..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "29/f16ee6-d420-4cd6-b2b9-ac847a3..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "de/de5593-dd36-4403-a7cb-4a80359..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "af/75c085-9fb7-430a-8921-16b4dc6..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "2e/a65688-31f5-4bd7-b8b6-ddce8ac..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "bb/f5e13d-3cf1-45c1-85fa-19f0e76..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "db/f7476f-4e8e-446d-8deb-71ee82f..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "3c/f1465c-9621-4c35-b693-694ae07..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "05/eb4787-a16b-4f58-9a92-d2b0422..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "96/30fe4c-9ddc-44e2-8868-1922cfd..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "61/72b9ae-4c38-44b3-8f1d-fe7f7bc..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "e7/38cfed-5ebb-4059-8d09-13f5525..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "9e/74ee8c-0c5d-4e2b-ac92-fb817a5..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "d8/5c8e41-984a-475f-a9c4-d5ee93f..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "d4/d0cbbd-4846-4f88-973f-c8653b4..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "c1/652fee-9e73-4b60-bb27-1e75a5a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "4a/a96e7b-57ea-4998-81b0-4f6c627..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "47/a3975b-d3f9-44a2-b64f-7699925..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "43/b6ff74-fcc5-444d-8160-305f27a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "09/ca3811-490a-45ba-a181-89414cb..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "bd/85372b-dd55-4825-93c3-9835d2a..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "a7/8c1ce4-91b8-4a7f-aa04-e2c382e..." :path nil :inode nil :hash nil) (:variable (org-element--headline-cache org-element--cache) :persist-file "79/ea1d81-2c2e-409b-a44d-0bacaad..." :path nil :inode nil :hash nil) ...))
  org-persist--get-index((org-element--headline-cache org-element--cache) nil)
  org-persist-read((org-element--headline-cache org-element--cache) nil)
  org-persist-read-all()
  funcall(org-persist-read-all)
  (condition-case e (funcall hook) ((debug error) (signal 'doom-hook-error (list hook e))))
  doom-run-hook(org-persist-read-all)
  run-hook-wrapped(doom-run-hook org-persist-read-all)
  (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car (cdr e))) (symbol-name (car (cdr e))) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e)))))
  (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp (car ...)) (symbol-name (car ...)) (car (cdr e))) (car (cdr (cdr e))))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if (symbolp ...) (symbol-name ...) (car ...)) (car (cdr ...)))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--))))
  (let ((--dolist-tail-- hooks)) (while --dolist-tail-- (let ((hook (car --dolist-tail--))) (condition-case e (run-hook-wrapped hook #'doom-run-hook) ((debug doom-hook-error) (if debug-on-error nil (lwarn hook :error "Error running hook %S because: %s" (if ... ... ...) (car ...))) (signal 'doom-hook-error (cons hook (cdr e))))) (setq --dolist-tail-- (cdr --dolist-tail--)))))
  doom-run-hooks(after-init-hook delayed-warnings-hook)
  apply(doom-run-hooks (after-init-hook delayed-warnings-hook))
  run-hooks(after-init-hook delayed-warnings-hook)
  command-line()
  normal-top-level()

@nobiot
Copy link

nobiot commented Dec 30, 2021

@reyman @kishvanchee
On Doom with Org v9.6, can you not simply remove-hook that Doom adds here?

https://github.com/hlissner/doom-emacs/blob/af7c1d79bd63d78410aafc410d52ee5c1109ec26/modules/lang/org/config.el#L1060

In both of your error stack, Org-encrypt-entries seems to be the offending function.

doom-run-hook(org-encrypt-entries)

@oatmealm
Copy link

oatmealm commented Jan 4, 2022

@nobiot I'm seeing this error when I start emacs... it now takes minutes sometimes, saving seems ok.

@nobiot
Copy link

nobiot commented Jan 4, 2022

@oatmealm I don't know which errors you are referring to (there is one @reyman originally reported, and the other one you reported) but either way, I don't think I can be of much help. As far as I could see neither of the backtrace contains org-transclusion in them. I don't use Doom.

@nobiot
Copy link

nobiot commented Jan 4, 2022

I also tried Doom to test Org-transclusion with Org v9.6. I didn't have this issue of long startup time on my Ubuntu Linux.

@reyman
Copy link
Author

reyman commented Jan 4, 2022

@nobiot You'right, it seems this is not a problem with transclusion at all, i remove this to the title. @oatmealm look at here, other people have the same problem, linked to org cache or encrypt, there is some investigation : kaushalmodi/ox-hugo#487

@reyman reyman changed the title Doom freeze when i save (:w) after installing emacs 28 and org-transclude Doom freeze when i save (:w) after installing emacs 28 Jan 4, 2022
@reyman reyman closed this as completed Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet
Projects
Archived in project
Development

No branches or pull requests

3 participants