emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Org-capturing items to clock
@ 2010-07-23 10:42 Puneeth
  2010-07-25 15:37 ` David Maus
  2010-08-08  6:49 ` Carsten Dominik
  0 siblings, 2 replies; 4+ messages in thread
From: Puneeth @ 2010-07-23 10:42 UTC (permalink / raw)
  To: emacs-orgmode

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)))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] Org-capturing items to clock
  2010-07-23 10:42 [BUG] Org-capturing items to clock Puneeth
@ 2010-07-25 15:37 ` David Maus
  2010-08-08  6:49 ` Carsten Dominik
  1 sibling, 0 replies; 4+ messages in thread
From: David Maus @ 2010-07-25 15:37 UTC (permalink / raw)
  To: Puneeth; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 639 bytes --]

Puneeth wrote:
>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.

I can confirm this with

Org-mode version 7.01trans (release_7.01g.24.g6b5cf)

on

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of
2010-05-16 on raven, modified by Debian

The list item with the link is placed above the second task's
headline in the capture buffer.[1]

Best,
  -- David

[1] Screenshot: http://s10.directupload.net/images/user/100725/ukiomdma.png
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] Org-capturing items to clock
  2010-07-23 10:42 [BUG] Org-capturing items to clock Puneeth
  2010-07-25 15:37 ` David Maus
@ 2010-08-08  6:49 ` Carsten Dominik
  2010-08-08  7:13   ` Puneeth
  1 sibling, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2010-08-08  6:49 UTC (permalink / raw)
  To: Puneeth; +Cc: emacs-orgmode

Hi,

I think this bug has been fixed with Bernd's patch.  Can you
please try and confirm?

Thanks!

- Carsten

On Jul 23, 2010, at 12:42 PM, Puneeth wrote:

> 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)))
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] Org-capturing items to clock
  2010-08-08  6:49 ` Carsten Dominik
@ 2010-08-08  7:13   ` Puneeth
  0 siblings, 0 replies; 4+ messages in thread
From: Puneeth @ 2010-08-08  7:13 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Hi,

On Sun, Aug 8, 2010 at 12:19 PM, Carsten Dominik
<carsten.dominik@gmail.com> wrote:
> Hi,
>
> I think this bug has been fixed with Bernd's patch.  Can you
> please try and confirm?

No. It doesn't seem to have been fixed.
I have been able to reproduce it with the exact method as sent in the
previous mail.

I'm at Org-mode version 7.01trans (release_7.01h.90.gdff9)

-- Puneeth

> Thanks!
>
> - Carsten
>
> On Jul 23, 2010, at 12:42 PM, Puneeth wrote:
>
>> 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)))
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-08 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 10:42 [BUG] Org-capturing items to clock Puneeth
2010-07-25 15:37 ` David Maus
2010-08-08  6:49 ` Carsten Dominik
2010-08-08  7:13   ` Puneeth

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).