From 02d96875ab24a643fe7114975e91737bc8d02293 Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Mon, 14 Jan 2019 11:01:11 +0100 Subject: [PATCH] Log taskwarrior shell commands to messages buffer --- taskwarrior.el | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/taskwarrior.el b/taskwarrior.el index 65e1902..8536826 100644 --- a/taskwarrior.el +++ b/taskwarrior.el @@ -87,13 +87,14 @@ (taskwarrior-update-buffer new-filter)))) (defun taskwarrior--shell-command (command &optional filter modifications miscellaneous) - ;; Taskwarrior - (shell-command-to-string - (format "task %s %s %s %s" - (or filter "") - command - (or modifications "") - (or miscellaneous "")))) + (let ((cmd (format "task %s %s %s %s" + (or filter "") + command + (or modifications "") + (or miscellaneous "")))) + (progn + (message cmd) + (shell-command-to-string cmd)))) (defun taskwarrior-export (filter) "Export taskwarrior entries as JSON"