Closed jeanphilippegg closed 3 months ago
I have reviewed denote-link--prepare-backlinks
and I think it is fine. We only need the value of denote-directory
because the buttons need it to rebuild the absolute path. There is the revert-buffer-function
part that I do not understand, but I think it is ok as well.
I just pushed a commit to rewrite the comment. We can consider this issue closed!
Merged, thank you! I could not see the part related to denote-org-extras.el, but I will check again.
Merged, thank you! I could not see the part related to denote-org-extras.el, but I will check again.
You're welcome! denote-link--expand-identifiers
is used in denote-org-extras-dblock--get-missing-links
From: Jean-Philippe Gagné Guay @.***> Date: Sat, 31 Aug 2024 05:39:06 -0700
Merged, thank you! I could not see the part related to denote-org-extras.el, but I will check again.
You're welcome!
denote-link--expand-identifiers
is used indenote-org-extras-dblock--get-missing-links
Yes, this is fine. It does not use the FILES parameter.
-- Protesilaos Stavrou https://protesilaos.com
Yes, this is fine. It does not use the FILES parameter.
That was the point. It does not use the FILES parameter, but this parameter was added in one of the latest commits. But it is all sorted now! :)
From: Jean-Philippe Gagné Guay @.***> Date: Sat, 31 Aug 2024 18:50:15 -0700
Yes, this is fine. It does not use the FILES parameter.
That was the point. It does not use the FILES parameter, but this parameter was added in one of the latest commits. But it is all sorted now! :)
Yeah, sorry! I don't remember what I was trying to do. Maybe it was some experiment and then I left it there...
-- Protesilaos Stavrou https://protesilaos.com
I have reworked
denote-link-return-links
to limit the use ofwith-temp-buffer
to get what we need.You will notice that I reverted your last change to
denote-link-return-links
because you added a new parameter todenote-link--expand-identifiers
, but it is used indenote-org-extras.el
. It must have broken something there. I have keptdenote-link--expand-identifiers
because it is used there, but maybe we can usedenote-link-return-links
instead and remove it.denote-link-return-links
should also be more efficient now. Previously, for each notes we looped through all links in the file.This is ready to be merged. I will get to
denote-link--prepare-backlinks
tomorrow.