Compatibility with latest org-id version: advise org-id-find rather than overwriting id link #2432
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
There have been recent changes in org-mode to improve
org-id-open
to be able to apply search strings in id: links. But, org-roam overrides the:follow
parameter for id: links to its ownorg-roam-id-open
function and therefore misses this.The only change that
org-roam-id-open
makes is to try callingorg-roam-id-find
before falling back onorg-id-find
. This commit uses advice to do this directly, thereby integrating better withorg-id-open
.There was some discussion on the org-mode list about adding a custom variable to avoid using advice, but this accomplishes the result without requiring changes in org:
https://list.orgmode.org/87jzlxjiuf.fsf@localhost/