emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: [patch] filing under current clocked item


From: Carsten Dominik
Subject: [Orgmode] Re: [patch] filing under current clocked item
Date: Fri, 25 Jun 2010 07:26:34 +0200

Applied, thanks (with some changes)

- Carsten

On Jun 24, 2010, at 11:20 PM, Puneeth wrote:

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

- Carsten






reply via email to

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