From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Baz Subject: Bug: bulk TODO state change creates a LOGBOOK state change note only for one task Date: Wed, 04 Feb 2015 21:41:35 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134a3b2380ea0050e4a0ded Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ7ha-0002nn-4i for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 16:41:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ7hY-0007Ip-T4 for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 16:41:38 -0500 Received: from mail-qc0-x22f.google.com ([2607:f8b0:400d:c01::22f]:56302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ7hY-0007Ig-O3 for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 16:41:36 -0500 Received: by mail-qc0-f175.google.com with SMTP id c9so3600535qcz.6 for ; Wed, 04 Feb 2015 13:41:35 -0800 (PST) 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: emacs-orgmode@gnu.org --001a1134a3b2380ea0050e4a0ded Content-Type: text/plain; charset=UTF-8 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/) --001a1134a3b2380ea0050e4a0ded Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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= "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:

=
=C2=A0 =C2=A0 :LOGBOOK:
=C2=A0 =C2=A0 - State "NEX= T" =C2=A0 =C2=A0 =C2=A0 from "TODO" =C2=A0 =C2=A0 =C2=A0 [20= 15-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= " record.

I expect org-mode to create such &q= uot;state change" note in LOGBOOK drawer for every task I'm changi= ng.

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

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 tasks
5. M-x -> org-agenda-bulk-action -> t -> NEXT

=
The ACTUAL contents of ~/test.org is:


=C2=A0 =C2=A0 * NEXT task1
=C2=A0 =C2=A0 :LOGBOOK:
=C2=A0 =C2=A0 - State "NEXT" =C2=A0 =C2=A0 =C2=A0 from "T= ODO" =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 :LOG= BOOK:
=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 :LOGBOOK:
=C2=A0 =C2=A0 - State "NEXT&quo= t; =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:

Emacs: GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of 2= 015-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/)

--001a1134a3b2380ea0050e4a0ded--