emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* property list indentation and TODO state changes
@ 2015-09-03 13:09 George McNinch
  2015-09-05  8:40 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: George McNinch @ 2015-09-03 13:09 UTC (permalink / raw)
  To: emacs-orgmode

Rather than try to discuss the issue, I'll just give (hopefully
simple enough) steps which will reproduce it.

Visit an org-mode buffer, with the following contents:

#---------------
#+STARTUP: logdrawer
#+TODO: APPT(a) | DONE(d!)

* APPT <2015-09-03 Thu +1m> ack
  :PROPERTIES:
  :FOO:      Bar
  :END:
#---------------

With point on the line "* APPT ...", do C-t d i.e. (org-todo) and then
choose "d".

The file is then transformed as follows:

---------------
#+STARTUP: logdrawer
#+TODO: APPT(a) | DONE(d!)

* APPT <2015-10-03 Wed +1m> ack
:PROPERTIES:
  :FOO:      Bar 
  :END:
  :LOGBOOK:
  :LAST_REPEAT: [2015-09-03 Thu 09:01]
  - State "DONE"       from "APPT"       [2015-09-03 Thu 09:01]
  :END:
---------------

The behavior of the indentation on the line containing ":PROPERTIES:"
seems odd.

And I think the :LAST_REPEAT: line should have instead appeared in the
property list, rather than in the LOGBOOK.

Note that if instead the starting state is

---------------
#+STARTUP: logdrawer
#+TODO: APPT(a) | DONE(d!)

* APPT <2015-09-03 Wed +1m> ack
:PROPERTIES:
  :FOO:      Bar 
  :END:
  :LOGBOOK:
  - [2015-09-03 Thu] a comment
  :END:
---------------

(i..e there is "already a LOGBOOK") then C-t d results in

---------------
* APPT <2015-10-03 Sat +1m> ack
:PROPERTIES:
  :FOO:      Bar
  :LAST_REPEAT: [2015-09-03 Thu 09:04]
  :END:
  :LOGBOOK:
  - State "DONE"       from "APPT"       [2015-09-03 Thu 09:04]
  - [2015-09-03 Thu] a comment
  :END:
---------------

so the LAST_REPEAT works as expected, but the indentation is still odd.

org-version: 8.3.1 (from elpa).

Best,
george

-- 
   +=+=+   George McNinch <gmcninch(at)gmail.com>                        
   +=+=+   http://gmcninch.math.tufts.edu                             

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

* Re: property list indentation and TODO state changes
  2015-09-03 13:09 property list indentation and TODO state changes George McNinch
@ 2015-09-05  8:40 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-09-05  8:40 UTC (permalink / raw)
  To: George McNinch; +Cc: emacs-orgmode

Hello,

George McNinch <gmcninch@gmail.com> writes:

> Rather than try to discuss the issue, I'll just give (hopefully
> simple enough) steps which will reproduce it.
>
> Visit an org-mode buffer, with the following contents:
>
> #---------------
> #+STARTUP: logdrawer
> #+TODO: APPT(a) | DONE(d!)
>
> * APPT <2015-09-03 Thu +1m> ack
>   :PROPERTIES:
>   :FOO:      Bar
>   :END:
> #---------------
>
> With point on the line "* APPT ...", do C-t d i.e. (org-todo) and then
> choose "d".
>
> The file is then transformed as follows:
>
> ---------------
> #+STARTUP: logdrawer
> #+TODO: APPT(a) | DONE(d!)
>
> * APPT <2015-10-03 Wed +1m> ack
> :PROPERTIES:
>   :FOO:      Bar 
>   :END:
>   :LOGBOOK:
>   :LAST_REPEAT: [2015-09-03 Thu 09:01]
>   - State "DONE"       from "APPT"       [2015-09-03 Thu 09:01]
>   :END:
> ---------------
>
> The behavior of the indentation on the line containing ":PROPERTIES:"
> seems odd.
>
> And I think the :LAST_REPEAT: line should have instead appeared in the
> property list, rather than in the LOGBOOK.

Fixed. Thank you.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2015-09-05  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03 13:09 property list indentation and TODO state changes George McNinch
2015-09-05  8:40 ` Nicolas Goaziou

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