emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Puneeth <punchagan@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [BUG] Org-capturing items to clock
Date: Fri, 23 Jul 2010 16:12:01 +0530	[thread overview]
Message-ID: <AANLkTikAS2_AVRJMJ1WY1ZgKtYCOSOi+oN0XvA54=fs3@mail.gmail.com> (raw)

Hi all,

I've found a bug with capturing as item to a running clock. I reduced
my dot-emacs to the bare minumum(given below), but the problem
continues.

Here is how it goes.

+ refile.org is in state 0.
+ C-M-r t
+ TODO task One entered. Clock is running. I switch to firefox and
save the link. C-c C-c.
+ refile.org is in state 1. The link is correctly saved
+ C-M-r t (again)
+ TODO task Two entered. Clock is running. I switch to firefox and
save the link. C-c C-c.
+ refile.org is in state 1. The link is wrongly saved. The item is
appended to a wrong (existing list) instead of starting a new list.

If I change my capture template to make the link to be an entry
instead of an item, things work as expected.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;refile.org-state 0
* Tasks

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;refile.org-state 1
* Tasks
** TODO One
   CLOCK: [2010-07-23 Fri 15:57]--[2010-07-23 Fri 15:57] =>  0:00
- [[http://orgmode.org/][Org-Mode: Your Life in Plain Text]]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;refile.org-state 2
* Tasks
** TODO One
   CLOCK: [2010-07-23 Fri 15:57]--[2010-07-23 Fri 15:57] =>  0:00
- [[http://orgmode.org/][Org-Mode: Your Life in Plain Text]]
- [[http://orgmode.org/worg/][Hello Worg!]]
** TODO Two
   CLOCK: [2010-07-23 Fri 15:59]--[2010-07-23 Fri 16:00] =>  0:01

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;dot-emacs
;; Load up Org Mode and Babel
(setq load-path (cons "~/.emacs.d/elisp/org/lisp" load-path))
(setq load-path (cons "~/.emacs.d/elisp/org/contrib/lisp" load-path))

(require 'org-install)

(require 'org-capture)
(global-set-key (kbd "C-M-r") 'org-capture)

(server-start)
;; org-protocol
(require 'org-protocol)

(setq org-capture-templates
      '(("t" "task" entry
         (file+headline "refile.org" "Tasks")
         "* TODO %? \n\n\n  " :clock-in t :clock-resume t)
        ("x" "save relevant links" item
         (clock)
         "- [[%:link][%:description]]" :immediate-finish t)))

             reply	other threads:[~2010-07-23 10:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23 10:42 Puneeth [this message]
2010-07-25 15:37 ` [BUG] Org-capturing items to clock David Maus
2010-08-08  6:49 ` Carsten Dominik
2010-08-08  7:13   ` Puneeth

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='AANLkTikAS2_AVRJMJ1WY1ZgKtYCOSOi+oN0XvA54=fs3@mail.gmail.com' \
    --to=punchagan@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).