Skip to content

showterm.el: use new magick command by default, fallback to convert#3347

Open
drzv wants to merge 2 commits into
mthom:masterfrom
drzv:im7-compat2
Open

showterm.el: use new magick command by default, fallback to convert#3347
drzv wants to merge 2 commits into
mthom:masterfrom
drzv:im7-compat2

Conversation

@drzv
Copy link
Copy Markdown
Contributor

@drzv drzv commented May 26, 2026

A better fix for #3337

I used "convert" as a string in the fallback case instead of (executable-find "convert") because it provides a more useful error message in case neither command is found.

@triska
Copy link
Copy Markdown
Contributor

triska commented May 26, 2026

Thank you a lot!

I think this makes it worth considering to also revert #3338, because make-process requires Emacs version 25 or later, whereas start-process works also in much older Emacs versions.

@drzv
Copy link
Copy Markdown
Contributor Author

drzv commented May 26, 2026

Good point, I reverted that commit.

@triska
Copy link
Copy Markdown
Contributor

triska commented May 26, 2026

Thank you, almost perfect! Two small issues remain: First, this does not need let*, it suffices to use let. But even that is not necessary, we could write this for example as:

(start-process "convert" (current-buffer)
               (or (executable-find "magick") "convert"))
                            ...

@drzv
Copy link
Copy Markdown
Contributor Author

drzv commented May 26, 2026

I think it did need let*, but your solution is better either way. Thank you.

@triska
Copy link
Copy Markdown
Contributor

triska commented May 26, 2026

Ah yes, of course, completely right! Awesome, thank you a lot!

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