diff --git a/gists.org b/gists.org index b145e64..1a84b96 100644 --- a/gists.org +++ b/gists.org @@ -609,7 +609,7 @@ An improved version was [[https://github.com/xenodium/dwim-shell-command/commit/ (interactive (append (list (read-command "Command: ")) (my/read-list))) (mapc (lambda (arg) - (with-demoted-errors "Error: %S" + (with-demoted-errors (funcall command arg))) arguments)) #+end_src diff --git a/gists/execute-command-repeatedly.el b/gists/execute-command-repeatedly.el index c67897a..f95bbe4 100644 --- a/gists/execute-command-repeatedly.el +++ b/gists/execute-command-repeatedly.el @@ -25,6 +25,6 @@ value." (interactive (append (list (read-command "Command: ")) (my/read-list))) (mapc (lambda (arg) - (with-demoted-errors "Error: %S" + (with-demoted-errors (funcall command arg))) arguments))