emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Puneeth <punchagan@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [patch] filing under current clocked item
Date: Fri, 25 Jun 2010 07:26:34 +0200	[thread overview]
Message-ID: <6FFF8713-AD18-4C41-88AD-8955CE7D662B@gmail.com> (raw)
In-Reply-To: <AANLkTikTAuQlRRsRFi5vYXcM3mWXYvMK87q1gx7pYmjP@mail.gmail.com>

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	other threads:[~2010-06-25 17:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24 21:20 [patch] filing under current clocked item Puneeth
2010-06-25  5:26 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6FFF8713-AD18-4C41-88AD-8955CE7D662B@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=punchagan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).