From cb5ca4206fc564146f3895866f7b0f868df25011 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 29 Apr 2017 10:25:57 +0200 Subject: [PATCH] org-clock: Fix failing tests * lisp/org-clock.el (org-clock-get-table-data): `org-get-heading' only accepts up to 2 arguments in Org 9.0. --- lisp/org-clock.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index a5636e215..87c9cd216 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -2798,7 +2798,9 @@ PROPERTIES: The list properties specified in the `:properties' parameter (when (and time (> time 0) (org-at-heading-p)) (let ((level (org-reduced-level (org-current-level)))) (when (<= level maxlevel) - (let* ((headline (org-get-heading t t t t)) + (let* ((headline (replace-regexp-in-string + (format "\\`%s[ \t]+" org-comment-string) "" + (nth 4 (org-heading-components)))) (hdl (if (not link) headline (let ((search