From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [patch] filing under current clocked item Date: Fri, 25 Jun 2010 07:26:34 +0200 Message-ID: <6FFF8713-AD18-4C41-88AD-8955CE7D662B@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=54226 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSD8F-0004TW-2C for emacs-orgmode@gnu.org; Fri, 25 Jun 2010 13:56:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OS2h1-0003is-GS for emacs-orgmode@gnu.org; Fri, 25 Jun 2010 02:47:16 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:54624) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OS2h1-0003ij-1f for emacs-orgmode@gnu.org; Fri, 25 Jun 2010 02:47:15 -0400 Received: by wyb39 with SMTP id 39so1329349wyb.0 for ; Thu, 24 Jun 2010 23:47:14 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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, > # > > 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