-
Notifications
You must be signed in to change notification settings - Fork 113
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
org-ql-select fails with user error when buffer-or-files is a buffer-name #258
Comments
Thanks, this is much easier for me to reason about. In this case, I'm leaning toward requiring string arguments to be filenames. While Emacs's internal functions do tend to accept buffer names or buffer objects as arguments, those are functions that work specifically on buffers, not buffers or files as we do here. And What do you think? |
This actually stemmed from duplicate items being passed when using the interactive functions. For example, if a file name and also the buffer object of that file is passed in the interactive functions as two different values. The proposal in #260 would resolve them both to string values to allow removing duplicate values. Which results in the buffer objects being converted to string representations before being passed to the Is there any reason to not take buffer-names as a parameter? On that note, should |
Okay, please, since we're starting over, let's get to the root problem first. But this issue isn't about duplicate items.
Let's be specific: the interactive form of the command
Yes, because having both files and buffers passed as strings requires disambiguation, which, as we've seen, can be complicated. And since buffers don't have to be passed as strings, there seems no reason for them to be.
I don't know what you mean. Anyway, please, let's stay focused in these discussions. If we start talking about related but separate issues, we'll end up having to start over again, again. If you want to discuss that, please open a separate issue. This issue, #258, is about whether |
The downside is making the code more complicated. If strings can be buffers or filenames, both cases must be accounted for, and that in various functions. The expansion/contraction of such arguments compounds that complexity. We've seen how awkward the code can be in the discussion about #228. IME the case of needing to run |
If my understanding of the current implementation is correct, that may make the code more complex? As I have described in #260, to account for the duplicate elements, I was resolving all values passed to |
Continuation from #228
When org-ql-select is called with a buffer-name, it results with error
To replicate:
Expected outcome:
buffer-or-files
is a non file buffer.The text was updated successfully, but these errors were encountered: