From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Subject: [patch] filing under current clocked item Date: Fri, 25 Jun 2010 02:50:48 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from [140.186.70.92] (port=58247 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORtrD-0005MO-4W for emacs-orgmode@gnu.org; Thu, 24 Jun 2010 17:21:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORtrC-0006ae-0l for emacs-orgmode@gnu.org; Thu, 24 Jun 2010 17:21:11 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:37601) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORtrB-0006aX-RY for emacs-orgmode@gnu.org; Thu, 24 Jun 2010 17:21:09 -0400 Received: by pzk30 with SMTP id 30so776058pzk.0 for ; Thu, 24 Jun 2010 14:21:08 -0700 (PDT) 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: 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, # 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