emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [patch] filing under current clocked item


From: Puneeth
Subject: [Orgmode] [patch] filing under current clocked item
Date: Fri, 25 Jun 2010 02:50:48 +0530

Hi,

The capture template

  ("t" "task" entry
   (clock)
   "* TODO %? %^G:\n  ")

is giving me the error

  org-find-base-buffer-visiting: Wrong type argument: stringp,
#<buffer refile.org>

The patch below fixes it.

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index decf50a..0942e8b 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -585,7 +585,8 @@ already gone."
        (if (and (markerp org-clock-hd-marker)
                 (marker-buffer org-clock-hd-marker))
            (progn (set-buffer (org-capture-target-buffer
-                               (marker-buffer org-clock-hd-marker)))
+                               (buffer-file-name (marker-buffer
+                                                  org-clock-hd-marker))))
                   (goto-char org-clock-hd-marker))
          (error "No running clock that could be used as capture target")))


Thanks,
Puneeth



reply via email to

[Prev in Thread] Current Thread [Next in Thread]