summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2010-08-13 10:36:16 +0200
committerBastien Guerry <bzg@altern.org>2010-08-13 10:36:16 +0200
commit5b8e10aaed1fabb88daeec5be35d6b647deab932 (patch)
tree67af831ca0ddc26df21437dff1afafe10b78ab41
parent13a05628f465fa7fa25268d96bde7dcd0be3a942 (diff)
downloadorg-mode-5b8e10aaed1fabb88daeec5be35d6b647deab932.tar.gz
Bugfix in org-clock-set-current.
Don't try to get the filename as it break `org-clock-set-current' when trying to clock in from an indirect capture buffer.
-rw-r--r--lisp/org-clock.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index fb22c25..4fa0397 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1097,9 +1097,7 @@ the clocking selection, associated with the letter `d'."
"Task currently clocked in.")
(defun org-clock-set-current ()
"Set `org-clock-current-task' to the task currently clocked in."
- (setq org-clock-current-task
- (concat (nth 4 (org-heading-components))
- " (" (file-name-nondirectory (buffer-file-name)) ")")))
+ (setq org-clock-current-task (nth 4 (org-heading-components))))
(defun org-clock-delete-current ()
"Reset `org-clock-current-task' to nil."