Skip to content

Allow org-ql-refile to handle values for org-refile-targets where the symbol in a given cons cell has a variable value#488

Open
apc wants to merge 2 commits intoalphapapa:masterfrom
apc:apc-patch-1
Open

Allow org-ql-refile to handle values for org-refile-targets where the symbol in a given cons cell has a variable value#488
apc wants to merge 2 commits intoalphapapa:masterfrom
apc:apc-patch-1

Conversation

@apc
Copy link

@apc apc commented Feb 12, 2025

This fixes #487. We simply add a test to make sure files-spec has a function value before applying funcall to it, and handle the case where files-spec has a variable value separately.

apc added 2 commits February 11, 2025 21:03
…efile-targets`

As per the documentation of `org-refile-targets`, each specification of the files in a given cons cell can be a list of files "or a symbol whose function or variable value will be used..." This ensures `org-refile-targets` can handle the case where the specification is a symbol with a variable value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

org-ql-refile makes assumptions about org-refile-targets that conflict with the latter's docstring

1 participant