-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
org-roam-mode buffer broken due to (global-)page-break-lines-mode (Spacemacs continuously switches major-mode) #14969
Comments
While I wanted to report the backlink issue, I also noticed that this 'Spacemacs bug' was already reported: org-roam/org-roam#1732 So also it seems that backlinks do not get created before "(re)applying" the |
I am not sure what the bug-tracker label means; but I guess it means this is an upstream bug? Because I think this really is a Spacemacs bug. |
bug tracker means this is a confirmed bug. if there's a future bug fix or workaround, this will be the tracking issue. |
There is a separate |
Thanks! Handy to know... |
After disabling page-break-lines globally, locally, everywhere this issues still occurs. However if after displaying the org-roam backlink buffer you manually do a org-roam-buffer-refresh it will work (but only if page-break-lines is disabled) |
This matches the org-agenda key, and is doubly important since we need to refresh regularly to workaround the page-break-lines bug, as described here syl20bnr#14969 (comment)
This matches the org-agenda key, and is doubly important since we need to refresh regularly to workaround the page-break-lines bug, as described here #14969 (comment)
Here is a simple solution that works for me so far and does not require disabling any of the modes (including |
please verify whether it fixes your issue |
The elisp linked by @Sergey-Makarov (org-roam/org-roam#1732 (comment)) fixes this issue for me as well. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Description
org-roam-mode buffer is broken due to (global-)page-break-lines-mode
Reproduction guide 馃
Start Emacs
Install org-roam via the org-mode layer instructions
Additionally carry out the setting up instructions of the org-mode manual.
Create a node using
M-x org-roam-node-find
followed byC-c C-c
Within that note create another note but now using
M-x org-roam-node-insert
(and submit withC-c C-c
)follow the link to the newly created note
in the 'new note' buffer do
M-x org-roam-buffer-toggle
There should be a backlink, otherwise there is a bug (which probably has not yet
been reported). If there is no backlink then customize the
org-roam-mode-section-functions
. There settings are correct, but possibly haveto get 'reapplied`. Please note down as a bug.
Finally if there is a backlink then notice that you can not follow it by placing
the cursor on it and pressing enter. If you switch off
global-page-break-lines-mode
before creating the org-mode buffer (delete andtoggle again), then the link does work (as already reported
here.
Now the
org-roam-mode
is derived fromspecial-mode
(viamagit-section-mode-hook
) and, as none of these modes is included inpage-break-lines-modes
, should be excluded fromglobal-page-break-lines-mode
.However Spacemacs, somehow designates the
org-roam-mode
buffer as (over here)either an
emacs-lisp-mode
buffer or anorg-mode
buffer.Now it took me a long time to find the culprit, and still help is appreciated.
So to see what is causing the problem evaluate the following lines:
now just observe what happens. Spacemacs is switching modes continuously.
The
derived-mode-p
function is used inpage-break-lines-mode-maybe
.So maybe for now we can indeed first switch-off
global-page-break-lines-mode
for users of
org-roam-mode
(as suggestedhere).
Observed behaviour: 馃憖 馃挃
backlinks don't work
Expected behaviour: 鉂わ笍 馃槃
backlinks work
System Info 馃捇
Backtrace 馃惥
The text was updated successfully, but these errors were encountered: