Closed kadircancetin closed 4 years ago
Could you please edit your post and wrap the backtrace into <details></details>
:
# A collapsible section with markdown
<details>
<summary>Click to expand!</summary>
## Heading
Very long piece of code
</details>
Since it's an experimental branch, I think it should be reported to the Emacs Bug Tracker https://debbugs.gnu.org/Emacs.html M-x report-emacs-bug
(just don't forget to mention [feature/native-comp]
in the subject).
org-roam-mode
is a global minor mode, and shouldn't be run in org-mode-hook
. I don't know why this is only triggered in native-comp, but the backtrace shows:
org-roam-db-build-cache
calling org-mode
org-mode-hook
, here including org-roam-mode
org-roam-db-build-cache
to prepare the cacheSpecifically, in your configuration (sharing dotfiles is awesome!):
:hook
(org-mode . org-roam-mode) ; <= this
(org-roam-mode . kadir/roam-hook)
is the culprit.
org-roam-mode
is a global minor mode, and shouldn't be run inorg-mode-hook
. I don't know why this is only triggered in native-comp, but the backtrace shows:
Oh, my fault, very thanks for your help. It fixes the problem. I don't know why it happened only native-comp-branch
. I will create a detailed bug report on[feature/native-comp]
as @d12frosted proposed.
To expand a little bit on this to help with your bug report, the reason it doesn't happen normally is that Org-roam actually binds org-mode-hook
to nil before running org-mode.
So presumably something in native-comp broke special variables.
Description
Org-roam doesn't create when native-compiled. If not force to not load native-compiled version, everything is working normally.
Steps to Reproduce
Expected Results
Build
org-roam.db
Actual Results
Can't build org-roam.db
Environment
https://aur.archlinux.org/packages/emacs-native-comp-git/
Emacs: GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-29
Framework: N/A
Org: Org mode version 9.3 (release_9.3 @ /usr/share/emacs/28.0.50/lisp/org/)
Org-roam: 1.2.1
Org-roam commit (last sended commit): https://github.com/jethrokuan/org-roam/commit/a6aabf4
Backtrace