Closed ahmed-shariff closed 1 year ago
Welp, I did a bit more digging - trying to figure out what is setting the line-prefix
and warp-prefix
to nil.
Turns out org-modern was the culprit. It seems to be setting the line-prefix
and warp-prefix
to nil if org-indent is not enabled 😅
Now that minad has closes the issue, I guess we can close this one too?
Hey, yeah, sorry, forgot about this one! Thank you for the help.
This is a continuation of the discussion from #126
The issue I was having was the fringe was not appearing on the transluded region. But it had the background color I set to
org-transclusion
and also the fringe in the source buffer.The
org-transclusion-content-insert
function seems to be setting theline-prefix
andwarp-prefix
for the corresponding region as text-properties for the transclusion region. But uses the overlays to modify that for the source region. After transcluding, when checking the text-properties of the tranclusion region,line-prefix
andwarp-prefix
are nil. I don't fully understand how font lock and text properties work, but I am assuming this is why the source buffer has the fringe and the tranclusion buffer doesn't. With the cursor on the tranclusion region, if I do the following:(which is using overlay to set the
line-prefix
andwarp-prefix
by extracting other values in the text properties) I get the fringe in the buffer.As a workaround, I am doing the following:
As mentioned in #126 it might not be trivial to use overlay instead of text-properties.