From d3d80e6e38ad4e4b273593679d1b51655b5b5d9f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 11 Mar 2021 06:08:03 +0100 Subject: [PATCH] Fix the docstring of get-clocked-task-json --- org-clock-waybar.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/org-clock-waybar.el b/org-clock-waybar.el index cd8b9e4..c3d3986 100644 --- a/org-clock-waybar.el +++ b/org-clock-waybar.el @@ -59,10 +59,11 @@ "Coding system of the file `org-clock-waybar-filename'.") (defun org-clock-waybar--get-clocked-task-json (buffer) - "Save the current clocked-in task’s title and category to BUFFER. + "Save the currently clocked-in task’s data to BUFFER. -The output is in JSON format. If there is no clocked in task, both title and -category will be a JSON null value." +The output is in JSON format constructed in a way so Waybar can process it. +If there is no clocked in task, alt becomes empty and text will be set to +'Not clocked in'." (let ((category (when org-clock-current-task (get-text-property 0 'org-category org-clock-current-task))) (title (when org-clock-current-task