emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: bulk TODO state change creates a LOGBOOK state change note only for one task
@ 2015-02-04 21:41 Maxim Baz
  2015-02-05 16:38 ` Yuri Niyazov
  2015-02-06  8:54 ` Nicolas Goaziou
  0 siblings, 2 replies; 4+ messages in thread
From: Maxim Baz @ 2015-02-04 21:41 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1761 bytes --]

The important piece of org-mode configuration is:

    org-minimal.el

    (setq org-todo-keywords '(
      (sequence "TODO(t)" "NEXT(n!)" "|" "DONE(d)")))

So I expect the following note to appear in LOGBOOK once I change the state
from TODO to NEXT:

    :LOGBOOK:
    - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
    :END:

It works perfectly fine if I change a state of a single task.
But if select multiple TODO tasks in Agenda view and change all of them to
NEXT in bulk, only the last task will have such "state change" record.

I expect org-mode to create such "state change" note in LOGBOOK drawer for
every task I'm changing.

Now I'll describe my steps in a bit more detailed way, and afterwards you
will find the system information I use.

1. emacs -Q -l ~/org-minimal.el ~/test.org
2. Create 3 tasks:
    * TODO task1
    * TODO task2
    * TODO task3
3. M-x -> org-agenda-file-to-front
3. M-x -> org-agenda -> t
4. Mark those 3 tasks
5. M-x -> org-agenda-bulk-action -> t -> NEXT

The ACTUAL contents of ~/test.org is:

    * NEXT task1
    * NEXT task2
    * NEXT task3
    :LOGBOOK:
    - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
    :END:

The EXPECTED contents of ~/test.org is:

    * NEXT task1
    :LOGBOOK:
    - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
    :END:
    * NEXT task2
    :LOGBOOK:
    - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
    :END:
    * NEXT task3
    :LOGBOOK:
    - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
    :END:

Emacs: GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of
2015-01-09 on lgw01-32
Package: Org-mode version 8.3beta (release_8.3beta-794-g55c070 @
/home/z0rch/.emacs.d/el-get/org-mode/lisp/)

[-- Attachment #2: Type: text/html, Size: 2872 bytes --]

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

* Re: Bug: bulk TODO state change creates a LOGBOOK state change note only for one task
  2015-02-04 21:41 Bug: bulk TODO state change creates a LOGBOOK state change note only for one task Maxim Baz
@ 2015-02-05 16:38 ` Yuri Niyazov
  2015-02-06  8:54 ` Nicolas Goaziou
  1 sibling, 0 replies; 4+ messages in thread
From: Yuri Niyazov @ 2015-02-05 16:38 UTC (permalink / raw)
  To: Maxim Baz; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1996 bytes --]

I can confirm - this has happened to me too

On Wednesday, February 4, 2015, Maxim Baz <z0rch.coding@gmail.com> wrote:

> The important piece of org-mode configuration is:
>
>     org-minimal.el
>
>     (setq org-todo-keywords '(
>       (sequence "TODO(t)" "NEXT(n!)" "|" "DONE(d)")))
>
> So I expect the following note to appear in LOGBOOK once I change the
> state from TODO to NEXT:
>
>     :LOGBOOK:
>     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
>     :END:
>
> It works perfectly fine if I change a state of a single task.
> But if select multiple TODO tasks in Agenda view and change all of them to
> NEXT in bulk, only the last task will have such "state change" record.
>
> I expect org-mode to create such "state change" note in LOGBOOK drawer for
> every task I'm changing.
>
> Now I'll describe my steps in a bit more detailed way, and afterwards you
> will find the system information I use.
>
> 1. emacs -Q -l ~/org-minimal.el ~/test.org
> 2. Create 3 tasks:
>     * TODO task1
>     * TODO task2
>     * TODO task3
> 3. M-x -> org-agenda-file-to-front
> 3. M-x -> org-agenda -> t
> 4. Mark those 3 tasks
> 5. M-x -> org-agenda-bulk-action -> t -> NEXT
>
> The ACTUAL contents of ~/test.org is:
>
>     * NEXT task1
>     * NEXT task2
>     * NEXT task3
>     :LOGBOOK:
>     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
>     :END:
>
> The EXPECTED contents of ~/test.org is:
>
>     * NEXT task1
>     :LOGBOOK:
>     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
>     :END:
>     * NEXT task2
>     :LOGBOOK:
>     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
>     :END:
>     * NEXT task3
>     :LOGBOOK:
>     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
>     :END:
>
> Emacs: GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of
> 2015-01-09 on lgw01-32
> Package: Org-mode version 8.3beta (release_8.3beta-794-g55c070 @
> /home/z0rch/.emacs.d/el-get/org-mode/lisp/)
>
>

[-- Attachment #2: Type: text/html, Size: 3148 bytes --]

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

* Re: Bug: bulk TODO state change creates a LOGBOOK state change note only for one task
  2015-02-04 21:41 Bug: bulk TODO state change creates a LOGBOOK state change note only for one task Maxim Baz
  2015-02-05 16:38 ` Yuri Niyazov
@ 2015-02-06  8:54 ` Nicolas Goaziou
  2015-02-06 10:52   ` Maxim Baz
  1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2015-02-06  8:54 UTC (permalink / raw)
  To: Maxim Baz; +Cc: emacs-orgmode

Hello,

Maxim Baz <z0rch.coding@gmail.com> writes:

> I expect org-mode to create such "state change" note in LOGBOOK drawer for
> every task I'm changing.
>
> Now I'll describe my steps in a bit more detailed way, and afterwards you
> will find the system information I use.
>
> 1. emacs -Q -l ~/org-minimal.el ~/test.org
> 2. Create 3 tasks:
>     * TODO task1
>     * TODO task2
>     * TODO task3
> 3. M-x -> org-agenda-file-to-front
> 3. M-x -> org-agenda -> t
> 4. Mark those 3 tasks
> 5. M-x -> org-agenda-bulk-action -> t -> NEXT
>
> The ACTUAL contents of ~/test.org is:
>
>     * NEXT task1
>     * NEXT task2
>     * NEXT task3
>     :LOGBOOK:
>     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
>     :END:
>
> The EXPECTED contents of ~/test.org is:
>
>     * NEXT task1
>     :LOGBOOK:
>     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
>     :END:
>     * NEXT task2
>     :LOGBOOK:
>     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
>     :END:
>     * NEXT task3
>     :LOGBOOK:
>     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
>     :END:

This should be fixed. Thank you.


Regards,

-- 
Nicolas Goaziou

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

* Re: Bug: bulk TODO state change creates a LOGBOOK state change note only for one task
  2015-02-06  8:54 ` Nicolas Goaziou
@ 2015-02-06 10:52   ` Maxim Baz
  0 siblings, 0 replies; 4+ messages in thread
From: Maxim Baz @ 2015-02-06 10:52 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]

> This should be fixed. Thank you.

I confirm, it works as expected now. Thanks for the fast support!

On Fri Feb 06 2015 at 9:54:24 AM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Maxim Baz <z0rch.coding@gmail.com> writes:
>
> > I expect org-mode to create such "state change" note in LOGBOOK drawer
> for
> > every task I'm changing.
> >
> > Now I'll describe my steps in a bit more detailed way, and afterwards you
> > will find the system information I use.
> >
> > 1. emacs -Q -l ~/org-minimal.el ~/test.org
> > 2. Create 3 tasks:
> >     * TODO task1
> >     * TODO task2
> >     * TODO task3
> > 3. M-x -> org-agenda-file-to-front
> > 3. M-x -> org-agenda -> t
> > 4. Mark those 3 tasks
> > 5. M-x -> org-agenda-bulk-action -> t -> NEXT
> >
> > The ACTUAL contents of ~/test.org is:
> >
> >     * NEXT task1
> >     * NEXT task2
> >     * NEXT task3
> >     :LOGBOOK:
> >     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
> >     :END:
> >
> > The EXPECTED contents of ~/test.org is:
> >
> >     * NEXT task1
> >     :LOGBOOK:
> >     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
> >     :END:
> >     * NEXT task2
> >     :LOGBOOK:
> >     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
> >     :END:
> >     * NEXT task3
> >     :LOGBOOK:
> >     - State "NEXT"       from "TODO"       [2015-02-04 Wed 22:11]
> >     :END:
>
> This should be fixed. Thank you.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 2684 bytes --]

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

end of thread, other threads:[~2015-02-06 10:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-04 21:41 Bug: bulk TODO state change creates a LOGBOOK state change note only for one task Maxim Baz
2015-02-05 16:38 ` Yuri Niyazov
2015-02-06  8:54 ` Nicolas Goaziou
2015-02-06 10:52   ` Maxim Baz

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