-
Notifications
You must be signed in to change notification settings - Fork 43
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's recenter error #52
Comments
Problem solved. I need to go to the source heading, run |
Very strange. Just typing should also work. |
Re-opening this because I do think there's something going on with Org-transclusion. These two screenshots are before and after enabling One more issue that I just noted: after a failed transclusion entry, no more transclusions will work, even ones that have worked previously. E.g., the last transclusion is the same as the first transclusion, but the last transclusion doesn't work, presumably because transclusions 3 and 4 (the broken ones) are messing something up. Here are the relevant contents of the Messages buffer, in case it's helpful:
|
Are you using the latest commit of the package?
|
Separate to my previous query, do you know what this “recentering” is?
I have never seen it before. Are you using Doom and have some other package for a sort of window management? I am wondering if this is interfering with transclusion. |
I still cannot reproduce the issue you are experiencing. I have just tried test files as you created them with The only conclusion I can make out of this is that there is something in your set up that is interfering with transclusion.
|
Is it correct that you use Doom, and have I think this part of Doom has a conflict with the way Org-transclusion looks for the header link. https://github.com/hlissner/doom-emacs/blob/develop/modules/lang/org/config.el#L544-L551 Is it possible for you to remove the advice and see if this is the case? |
I don't know how you can influence this defadvice! macro from Doom, but if you can override what Doom does for you, and add something like this would probably get Org-transclusion to work. You could also look to remove the advice, and should also work.
|
OK, we're getting somewhere! I can confirm that this must be a Doom problem. When I run vanilla Emacs ( Unfortunately, modifying/removing advice goes beyond my current emacs knowledge, so I don't know how to fix this problem in Doom. |
This might work. I don't use Doom, I cannot test it. https://github.com/hlissner/doom-emacs/blob/develop/core/core-lib.el#L598
Note that this completely disables this default advice that Doom puts in. |
[Editing this. I tried what Doom would do]
But... More importantly, it's not this advice Org-transclusion just works. The error comes from Doom, but not from this advice. I would still suggest that you try this, though:
|
Thanks! I added I suspect lots of folks are using Org/Org-Roam with Doom, so probably something worth running down with the Doom people. |
Good to know that removing the advice has worked for you. Hmm. So it's either my way of adding the Doom advice manually was incorrect, or there is something else compounding the advice causes the error. In either case... Not sure what I can do within Org-transclusion. |
I have just started using |
I am reopening this to remind myself to do documentation or something about this. I don't think I should change the code at this stage. @wuqui, thanks for letting me know about it. |
Added to README |
did some investigation as part of v0.2.0. I'll see if I can add something like this in my code again. |
I can transclude enter files, but nothing smaller than that. For example:
Source.org
Destination.org
The first transclusion works, but the second doesn't do anything. But I can click on the *SourceHeading2 link and go to the relevant headline, so the org link itself seems to work.
The text was updated successfully, but these errors were encountered: