From 3a233aa6d94f27d4c4c11fb7a679a47b97001a2c Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Wed, 19 Mar 2014 10:48:44 +0100 Subject: [PATCH] org-clock.el (org-clock-get-table-data): Bugfix * org-clock.el (org-clock-get-table-data): When :link is `t' in the clocktable parameters, bracket links in the clocktable should only contain their description, other C-c C-o will try to open the bracket link at point instead of the headline. Thanks to Alexey Lebedeff for providing a preliminary patch for this. --- lisp/org-clock.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index fa50f9dda..6a3951a75 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -2705,9 +2705,12 @@ TIME: The sum of all time spend in this tree, in minutes. This time (format "file:%s::%s" (buffer-file-name) (save-match-data - (org-make-org-heading-search-string - (match-string 2)))) - (match-string 2))) + (match-string 2))) + (org-make-org-heading-search-string + (replace-regexp-in-string + org-bracket-link-regexp + "\\3" + (match-string 2))))) tsp (when timestamp (setq props (org-entry-properties (point))) (or (cdr (assoc "SCHEDULED" props)) -- 2.11.4.GIT