emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>
To: emacs-orgmode@gnu.org
Subject: Bug: Order of drawers is important [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)]
Date: Mon, 18 Apr 2022 11:54:12 +0200	[thread overview]
Message-ID: <87v8v6k98b.fsf@pc04.fritz.box> (raw)

I have this example org file and started with "emacs -Q":

---8<---
* Headline
  :CLOCK:
  CLOCK: [2022-04-18 Mo 11:17]--[2022-04-18 Mo 11:17] =>  0:00
  :END:
  :PROPERTIES:
  :CREATED:  [2022-04-18 Mo 11:17]
  :END:

  - Some text
--->8---

When I try to set a property "C-c C-x p" or "M-x org-set-property", this
message is displayed:

>Malformed drawer at 93, repair? (y or n) y

Answering yes, inserts an empty drawer at the beginning of the entry,
and then continues to query the property name and value.

Moving the :PROPERTIES: drawer to the beginning fixes this issue and a
new property is inserted without any complaints.

---8<---
* Headline
  :PROPERTIES:
  :CREATED:  [2022-04-18 Mo 11:17]
  :END:
  :CLOCK:
  CLOCK: [2022-04-18 Mo 11:17]--[2022-04-18 Mo 11:17] =>  0:00
  :END:

  - Some text
--->8---

I would expect, that the order of drawers doesn't matter.

Kind regards, Olaf

------------------------------------------------------------------------

Emacs  : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14)
 of 2020-03-26, modified by Debian
Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)
OS: Ubuntu 20.04


             reply	other threads:[~2022-04-18  9:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-18  9:54 Olaf Dietsche [this message]
2022-04-18 10:05 ` Bug: Order of drawers is important [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)] Ihor Radchenko
2022-04-18 17:33   ` Olaf Dietsche
2022-04-18 20:26     ` Nick Dokos
2022-04-19  2:22     ` Ihor Radchenko
2022-04-19 12:32       ` Olaf Dietsche

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=87v8v6k98b.fsf@pc04.fritz.box \
    --to=olaf+list.orgmode@olafdietsche.de \
    --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).