From 996a49dd4469c319655c31522b1f96991f2fae70 Mon Sep 17 00:00:00 2001 From: Levin Du Date: Fri, 21 Sep 2012 15:42:38 +0200 Subject: [PATCH] org-clock.el (org-clock-in): Fix bug in setting the clock heading * org-clock.el (org-clock-in): Fix bug in setting the clock heading. TINYCHANGE --- lisp/org-clock.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 91f1c6370..82865fe35 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1172,7 +1172,8 @@ make this the default behavior.)" (cond ((and org-clock-heading-function (functionp org-clock-heading-function)) (funcall org-clock-heading-function)) - ((looking-at org-complex-heading-regexp) + ((and (looking-at org-complex-heading-regexp) + (match-string 4)) (replace-regexp-in-string "\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1" (match-string 4)))