emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Properties lost when closing, scheduling, etc.
@ 2017-10-10 14:28 John Goerzen
  2017-10-11  1:42 ` Richard Lawrence
  0 siblings, 1 reply; 6+ messages in thread
From: John Goerzen @ 2017-10-10 14:28 UTC (permalink / raw)
  To: emacs-orgmode

So I have a lot of cases where there is a :PROPERTIES: drawer.  It
contains, crucially, an ID (I use those for linking).  When I close a
task with C-c C-t and pick DONE, or when I schedule it with C-c C-s, it
will insert CLOSED: or SCHEDULED: lines ABOVE the :PROPERTIES: line.

Unfortunately, org-mode only recognizes the PROPERTIES when they occur
immediately after the headline.  So whenever I take an action on an item
like this, the properties become invisible to org-mode.  I can always
restore it by reordering the text.

How do I address this?

Thanks,

John

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

* Re: Properties lost when closing, scheduling, etc.
  2017-10-10 14:28 Properties lost when closing, scheduling, etc John Goerzen
@ 2017-10-11  1:42 ` Richard Lawrence
  2017-10-11  3:01   ` John Goerzen
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Lawrence @ 2017-10-11  1:42 UTC (permalink / raw)
  To: John Goerzen, emacs-orgmode

Hi John,
 
John Goerzen <jgoerzen@complete.org> writes:

> Unfortunately, org-mode only recognizes the PROPERTIES when they 
> occur immediately after the headline.  So whenever I take an 
> action on an item like this, the properties become invisible to 
> org-mode.   

What version of Org are you running?  This sounds like old 
behavior (or maybe a problematic mix of new and old behavior). 
PROPERTIES drawer syntax changed (incompatibly) in 8.3; see 
http://orgmode.org/Changes_old.html.

If you are running an older version, may want to try upgrading and 
then running the org-repair-property-drawers function defined on 
that page. 

Hope that helps!

Best,
Richard

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

* Re: Properties lost when closing, scheduling, etc.
  2017-10-11  1:42 ` Richard Lawrence
@ 2017-10-11  3:01   ` John Goerzen
  2017-10-11  6:55     ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: John Goerzen @ 2017-10-11  3:01 UTC (permalink / raw)
  To: Richard Lawrence, emacs-orgmode


On 10/10/2017 08:42 PM, Richard Lawrence wrote:
> Hi John,
>
> John Goerzen <jgoerzen@complete.org> writes:
>
>> Unfortunately, org-mode only recognizes the PROPERTIES when they
>> occur immediately after the headline.  So whenever I take an action
>> on an item like this, the properties become invisible to org-mode.   
>
> What version of Org are you running?  This sounds like old behavior
> (or maybe a problematic mix of new and old behavior). PROPERTIES
> drawer syntax changed (incompatibly) in 8.3; see
> http://orgmode.org/Changes_old.html.
Hi Richard,

Thanks for the reply!  I have 9.0.3.  (Bit embarrassed I omitted that
detail, sigh.)

So the documentation says PROPERTIES can be after a "planning line",
shich seems to be DEADLINE: or SCHEDULED: but not necessarily CLOSED:.

I attempted to validate this, both by evaulating (org-id-get) on the
spot and by using C-c l (which was what caused the problem to begin
with; it added a second PROPERTIES block, as I have
org-id-link-to-org-use-id set to 'create-if-interactive).  Now somehow I
cannot duplicate the problem.  So I don't know what the heck happened --
I know it DID happen -- but it's possible this is a PEBKAC issue anyhow.

I cannot make it misbehave with either SCHEDULED or CLOSED in my testing
now.

- John

>
> If you are running an older version, may want to try upgrading and
> then running the org-repair-property-drawers function defined on that
> page.
> Hope that helps!
>
> Best,
> Richard

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

* Re: Properties lost when closing, scheduling, etc.
  2017-10-11  3:01   ` John Goerzen
@ 2017-10-11  6:55     ` Eric S Fraga
  2017-10-11 12:46       ` John Goerzen
  0 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2017-10-11  6:55 UTC (permalink / raw)
  To: John Goerzen; +Cc: emacs-orgmode

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

On Tuesday, 10 Oct 2017 at 22:01, John Goerzen wrote:
> I cannot make it misbehave with either SCHEDULED or CLOSED in my testing
> now.

Maybe try org-lint to see if there are more subtle errors in your
file(s)?

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-98-g0b8316

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

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

* Re: Properties lost when closing, scheduling, etc.
  2017-10-11  6:55     ` Eric S Fraga
@ 2017-10-11 12:46       ` John Goerzen
  2017-10-11 15:19         ` John Goerzen
  0 siblings, 1 reply; 6+ messages in thread
From: John Goerzen @ 2017-10-11 12:46 UTC (permalink / raw)
  To: Richard Lawrence, emacs-orgmode

On 10/11/2017 01:55 AM, Eric S Fraga wrote:
> On Tuesday, 10 Oct 2017 at 22:01, John Goerzen wrote:
>> I cannot make it misbehave with either SCHEDULED or CLOSED in my testing
>> now.
> Maybe try org-lint to see if there are more subtle errors in your
> file(s)?
>
Ah ha!  So it looks like the real problem was that I had some :LOGBOOK:
drawers above :PROPERTIES: drawers.  I think that would do it.

Thanks for the help.

- John

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

* Re: Properties lost when closing, scheduling, etc.
  2017-10-11 12:46       ` John Goerzen
@ 2017-10-11 15:19         ` John Goerzen
  0 siblings, 0 replies; 6+ messages in thread
From: John Goerzen @ 2017-10-11 15:19 UTC (permalink / raw)
  To: Richard Lawrence, emacs-orgmode

And I should add - the cause of :LOGBOOK: being above :PROPERTIES: on
those particular tasks may be a bug in an Asana-to-Org converter I
wrote, rather than org itself.  So I apologize doubly for the noise.

John

On 10/11/2017 07:46 AM, John Goerzen wrote:
> On 10/11/2017 01:55 AM, Eric S Fraga wrote:
>> On Tuesday, 10 Oct 2017 at 22:01, John Goerzen wrote:
>>> I cannot make it misbehave with either SCHEDULED or CLOSED in my testing
>>> now.
>> Maybe try org-lint to see if there are more subtle errors in your
>> file(s)?
>>
> Ah ha!  So it looks like the real problem was that I had some :LOGBOOK:
> drawers above :PROPERTIES: drawers.  I think that would do it.
>
> Thanks for the help.
>
> - John
>

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

end of thread, other threads:[~2017-10-11 15:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-10 14:28 Properties lost when closing, scheduling, etc John Goerzen
2017-10-11  1:42 ` Richard Lawrence
2017-10-11  3:01   ` John Goerzen
2017-10-11  6:55     ` Eric S Fraga
2017-10-11 12:46       ` John Goerzen
2017-10-11 15:19         ` John Goerzen

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