emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nikolai Weibull <now@disu.se>
To: emacs-orgmode@gnu.org
Subject: Org-get-property-block can’t handle preceding drawers
Date: Wed, 31 Jan 2018 21:01:52 +0100	[thread overview]
Message-ID: <m2lggder0v.fsf@disu.se> (raw)

Hi!

I’m doing some restructuring of my Org files and I’m getting a lot 
of claims that I have malformed drawers.  Some of these files are 
quite old, so at first this seemed like a reasonable problem, but 
when I looked closer everything looked fine.  The problem was that 
I had :LOGBOOK: drawers before quite a few of my :PROPERTY: 
drawers and apparently org-get-property-block is /completely/ 
unaware of this possibility.  At first I figured that the rules 
had changed and that the :PROPERTY: drawer must come first, but 
then I tried it out and Org would gladly create a new :LOGBOOK: 
drawer for an entry that already had a :PROPERTY: drawer and place 
the :LOGBOOK: drawer first.

Now, what’s worse is that the whole “you have a malformed drawers, 
should I fix it?” functionality in org-buffer-property-keys will 
not actually move the :PROPERTY: drawer to the location that it 
expects, it simply creates an empty :PROPERTY: drawer instead and 
leaves the “misplaced” one where it was.

What’s going on here?

  Nikolai       

             reply	other threads:[~2018-01-31 20:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-31 20:01 Nikolai Weibull [this message]
2018-01-31 20:12 ` Org-get-property-block can’t handle preceding drawers Nicolas Goaziou
2018-01-31 20:52   ` Nikolai Weibull

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=m2lggder0v.fsf@disu.se \
    --to=now@disu.se \
    --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).