From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuri Niyazov Subject: Re: Bug: bulk TODO state change creates a LOGBOOK state change note only for one task Date: Thu, 5 Feb 2015 08:38:25 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158ab6ad54083050e59eee1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJPRk-00088q-QX for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 11:38:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJPRj-000757-Iu for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 11:38:28 -0500 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:37961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJPRj-00074k-62 for emacs-orgmode@gnu.org; Thu, 05 Feb 2015 11:38:27 -0500 Received: by mail-lb0-f181.google.com with SMTP id u14so2683086lbd.12 for ; Thu, 05 Feb 2015 08:38:25 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Maxim Baz Cc: "emacs-orgmode@gnu.org" --089e0158ab6ad54083050e59eee1 Content-Type: text/plain; charset=UTF-8 I can confirm - this has happened to me too On Wednesday, February 4, 2015, Maxim Baz 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/) > > --089e0158ab6ad54083050e59eee1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I can confirm - this has=C2=A0happened to me too

On Wednesday, Febru= ary 4, 2015, Maxim Baz <z0rch.= coding@gmail.com> wrote:
The= important piece of org-mode configuration is:

=C2= =A0 =C2=A0 org-minimal.el

=C2=A0 =C2=A0 (setq= org-todo-keywords '(
=C2=A0 =C2=A0 =C2=A0 (sequence "TO= DO(t)" "NEXT(n!)" "|" "DONE(d)")))
=

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

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

It= works perfectly fine if I change a state of a single task.=C2=A0
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" r= ecord.

I expect org-mode to create such "stat= e 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.
<= br>
1.=C2=A0emacs -Q -l ~/org-minimal.el ~/test.org
2. Create 3 tasks:=C2=A0
=C2=A0 =C2=A0 * TODO task1
=C2=A0 =C2=A0 * TODO task2
=C2=A0 =C2=A0 * TODO task3
3. M-x -> org-agenda-file-to-= front
3. M-x -> org-agenda -> t
4. Mark those 3 t= asks
5. M-x -> org-agenda-bulk-action -> t -> NEXT
=

The ACTUAL contents of ~/test.org is:

=C2=A0 =C2=A0 * NEXT ta= sk1
=C2=A0 =C2=A0 * NEXT task2
=C2=A0 =C2=A0 * NEXT tas= k3
=C2=A0 =C2=A0 :LOGBOOK:
=C2=A0 =C2=A0 - S= tate "NEXT" =C2=A0 =C2=A0 =C2=A0 from "TODO" =C2=A0 =C2= =A0 =C2=A0 [2015-02-04 Wed 22:11]
=C2=A0 =C2=A0 :END:
=

The EXPECTED contents of ~/test.org is:

=C2=A0 =C2=A0 * NEXT = task1
=C2=A0 =C2=A0 :LOGBOOK:
=C2=A0 =C2=A0 - State &qu= ot;NEXT" =C2=A0 =C2=A0 =C2=A0 from "TODO" =C2=A0 =C2=A0 =C2= =A0 [2015-02-04 Wed 22:11]
=C2=A0 =C2=A0 :END:
=C2=A0 = =C2=A0 * NEXT task2
=C2=A0 =C2=A0 :LOGBOOK:
=C2=A0 =C2= =A0 - State "NEXT" =C2=A0 =C2=A0 =C2=A0 from "TODO" =C2= =A0 =C2=A0 =C2=A0 [2015-02-04 Wed 22:11]
=C2=A0 =C2=A0 :END:
=C2=A0 =C2=A0 * NEXT task3
=C2=A0 =C2=A0 :LOGBOO= K:
=C2=A0 =C2=A0 - State "NEXT" =C2=A0 =C2=A0 =C2=A0 fr= om "TODO" =C2=A0 =C2=A0 =C2=A0 [2015-02-04 Wed 22:11]
= =C2=A0 =C2=A0 :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 @ /ho= me/z0rch/.emacs.d/el-get/org-mode/lisp/)

--089e0158ab6ad54083050e59eee1--