* [patch] filing under current clocked item
@ 2010-06-24 21:20 Puneeth
2010-06-25 5:26 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Puneeth @ 2010-06-24 21:20 UTC (permalink / raw)
To: Org Mode, Carsten Dominik
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] filing under current clocked item
2010-06-24 21:20 [patch] filing under current clocked item Puneeth
@ 2010-06-25 5:26 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-06-25 5:26 UTC (permalink / raw)
To: Puneeth; +Cc: Org Mode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-25 17:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-24 21:20 [patch] filing under current clocked item Puneeth
2010-06-25 5:26 ` Carsten Dominik
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.