Hi! I’m using Spacemacs and the latest version of org-roam (2.1.0). Every time I open the org-roam backlink buffer I have to refresh it for it to work (otherwise I get the usuale “There is nothing at point that could be visited”). This issue was already taken note of on Github (clicking on any link within *org-roam* buffer fails with an error message · Issue #1732 · org-roam/org-roam · GitHub): the solution suggested there was to disable global-page-break-lines-mode, but that doesn’t do anything…
There is a pull request that aims to fix a similar Spacemacs issue (it appears to me the same issue but can’t be sure). How about trying the commit in the PR and help it move forward?
Look at customizing variable
page-break-lines-modes. If you see
outline-mode as an element of the list, remove it from customizing.
I can reproduce the issue by activating
global-page-break-lines-mode even without Spacemacs. So to me it’s very likely the root cause is some interaction between
org-roam-mode for the backlink window.
Can you check if this works on your end by removing
outline-mode from the list, and test? For testing, you could do
(setq page-break-lines-modes nil) and see if that changes anything.
If this does not do anything, it may be that your issue is a new, unknown one.
thank you so much for the solutions and for the great work you put in this amazin project: huge fan!
As for the second solution you suggested, I had already tried deactivating global-page-brake-lines-mode and it didn’t work. Neither disabling outline-mode nor page-break-lines-mode worked.
On the other hand, the pull request worked like a charm!!! The problem is solved and I hope the changes will be committed soon in the main branch.
Again, thanks a lot!
Mmmh… Errata corrige: the pull request intially works, but if I press q to quit the roam buffer, org-roam-toggle-buffer won’t reactivate!
For the solution I’m suggesting here, global-page-break-mode is on.
outline-mode is removed from the customizing variable before opening any org-roam-buffer.
If this is not going to work, Spacemacs community may have to dig deeper. Doom falks don’t seem to have it. I’m on vanilla with no issues.
And… thank you for your kind words Much appreciated.
I’ve done all that… but it still doesn’t reopen the buffer after the first quitting from the org-roam buffer. (Thank you again, and I can’t stress this enough, for the amazing things you create!!!)
Okay, so… I have installed Spacemacs, and confirm that the issue can be reproduced.
I seem to be able to fix it by doing this in
dotspacemacs/user-config part of the
I had to add the first part to get rid of an Evil issue (evil-redirect-digit-argument)
I don’t have to refresh the
org-roam-buffer and get the correct display order in the first instance. I can press the
Return key on a backlink to navigate as I expect.
I am not used to Spacemacs and it’s hard for me to use it; I can only hope what I did is correct for Spacemacs.
Put this in my .spacemacs configuration as you suggested (I’m transcribing it here so people might copy that directly):
(fset 'evil-redirect-digit-argument 'ignore)
(add-to-list 'evil-digit-bound-motions 'evil-org-beginning-of-line)
(evil-define-key 'motion 'evil-org-mode (kbd “0”) 'evil-org-beginning-of-line)
Unfortunately this didn’t work for me. So I went back to the pull request and managed to get the whole thing working by not deleting line 270:
(display-buffer (get-buffer-create org-roam-buffer))
in the org-roam-buffer-toggle function.
So, I guess it’s problem solved for me… Thank you so much.