emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: George McNinch <gmcninch@gmail.com>
To: emacs-orgmode@gnu.org
Subject: property list indentation and TODO state changes
Date: Thu, 03 Sep 2015 09:09:38 -0400	[thread overview]
Message-ID: <82zj131wfh.fsf@jobim-via-gmail.com> (raw)

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                             

             reply	other threads:[~2015-09-03 13:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-03 13:09 George McNinch [this message]
2015-09-05  8:40 ` property list indentation and TODO state changes Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=82zj131wfh.fsf@jobim-via-gmail.com \
    --to=gmcninch@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).