Skip to content

fix: wrong-argument when yanking on Emacs >31.0.50#375

Open
epireyn wants to merge 1 commit into
alexluigit:mainfrom
epireyn:fix/yank-emacs-31
Open

fix: wrong-argument when yanking on Emacs >31.0.50#375
epireyn wants to merge 1 commit into
alexluigit:mainfrom
epireyn:fix/yank-emacs-31

Conversation

@epireyn

@epireyn epireyn commented May 28, 2026

Copy link
Copy Markdown

When setting dirvish-yank-sources to 'all, it is interpreted as a custom function since all() is a builtin function in Emacs 31.0.50. The workaround used here is to check whether dirvish-yank-sources is neither "all", "session", "buffer" before calling the function associated to the symbol.

My knowledge of Emacs being limited, I could not make the check dynamic (the values are hard-coded). I'll be happy to change that with some pointers.

When setting `dirvish-yank-sources` to 'all, it is interpreted as a
custom function since `all()` is a builtin function in Emacs
31.0.50. The workaround used here is to check whether
`dirvish-yank-sources` is neither "all", "session", "buffer" before
calling the function associated to the symbol.
@TreeSnowFence

Copy link
Copy Markdown

Hey, as of right now the maintainer for the main branch of dirvish is seemingly inactive. In the meantime, me and latiagertrutis are working on a fork here: https://github.com/latiagertrutis/dirvish. You can open the pr there if you wish.

@epireyn

epireyn commented May 28, 2026

Copy link
Copy Markdown
Author

Thank you for the answer!

Indeed, I noticed so myself... It seems your mate has already fixed the issue with this commit. I'll be using the fork for now then, and leave this PR open for reference and if the maintainer ever comes back.

@TreeSnowFence

Copy link
Copy Markdown

No problem, I hope you have a nice day

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.

2 participants