diff options
author | Levin Du <zslevin@gmail.com> | 2012-09-21 15:42:38 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-09-21 15:42:38 +0200 |
commit | 996a49dd4469c319655c31522b1f96991f2fae70 (patch) | |
tree | 9cd5681aa799b503c03ac2ef5c0595201fe82f8a | |
parent | 5a5abba09f81aa7a2f7dc7d2daceb834b53287e8 (diff) | |
download | org-mode-996a49dd4469c319655c31522b1f96991f2fae70.tar.gz |
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
-rw-r--r-- | lisp/org-clock.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 91f1c63..82865fe 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))) |