andorsk / d2-mode

emacs major mode for d2 graphs
GNU General Public License v3.0
73 stars 8 forks source link

Remove unnecessary use of shell-quote-argument #51

Closed akirak closed 2 weeks ago

akirak commented 2 months ago

Hello,

You don't have to shell-quote-argument the executable name when you pass it to call-process. Actually, it doesn't work on Windows where actual executable files are suffixed with .exe. It's better to pass the name without quoting, so call-process can find it from exec-path.