From a144ee13c031bcb81feb6aacd5993818e8c4e355 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 16 Oct 2021 06:25:14 +0200 Subject: [PATCH] [Bugfix] Make sure we remove all text properties before outputting JSON data --- org-clock-waybar.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org-clock-waybar.el b/org-clock-waybar.el index 31cff71..9f5995e 100644 --- a/org-clock-waybar.el +++ b/org-clock-waybar.el @@ -122,7 +122,11 @@ value of `org-clock-waybar-not-clocked-in-text'." This function is ought to be used via Emacsclient: emacsclient --eval '(org-clock-waybar-output-task)'" - (org-clock-waybar--get-clocked-task-json)) + (let* ((output (org-clock-waybar--get-clocked-task-json)) + (start 0) + (end (length output))) + (set-text-properties start end nil output) + output)) (defun org-clock-waybar-setup () "Setup org-clock-waybar.