branch: externals/detached commit 1fcffef0fa2eb52b0aad18e7b752bf00aa929397 Author: Niklas Eklund <niklas.ekl...@posteo.net> Commit: Niklas Eklund <niklas.ekl...@posteo.net>
Update detached's dired integration Make sure to remove the potential trailing & which originates from users calling dired-do-async-shell-command. This is not required since the program will be launched in a detached process. --- detached-dired.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/detached-dired.el b/detached-dired.el index 673b1321d9..6b353a7742 100644 --- a/detached-dired.el +++ b/detached-dired.el @@ -38,7 +38,9 @@ (lambda (command) (detached-start-session command) nil))) - (apply dired-do-shell-command args))) + (pcase-let* ((`(,command ,arg ,file-list) args) + (modified-args `(,(string-remove-suffix " &" command) ,arg ,file-list))) + (apply dired-do-shell-command modified-args)))) (provide 'detached-dired)