From: Puneeth <punchagan@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>,
Carsten Dominik <carsten.dominik@gmail.com>
Subject: [patch] filing under current clocked item
Date: Fri, 25 Jun 2010 02:50:48 +0530 [thread overview]
Message-ID: <AANLkTikTAuQlRRsRFi5vYXcM3mWXYvMK87q1gx7pYmjP@mail.gmail.com> (raw)
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
next reply other threads:[~2010-06-24 21:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-24 21:20 Puneeth [this message]
2010-06-25 5:26 ` [patch] filing under current clocked item Carsten Dominik
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=AANLkTikTAuQlRRsRFi5vYXcM3mWXYvMK87q1gx7pYmjP@mail.gmail.com \
--to=punchagan@gmail.com \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).