emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jorge Morais <jorge13515@gmail.com>
To: Emacs-orgmode@gnu.org
Subject: Bug report: org-get-property-block returns nil if the entry does not start with the property drawer
Date: Tue, 25 Aug 2015 14:42:21 -0300	[thread overview]
Message-ID: <CACFJq+azz0fsJYSNGsswzDtc+S6Ga48uiV4jN4cd9BUnM27K=w@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 754 bytes --]

In Org mode's info, I could not find any requirement that the property
drawer must be the first thing in the entry.  However, this is the case in
recent versions of Org.  Things work OK in the following version:
Org-mode version 8.2.10 (8.2.10-42-g2e1bc4-elpa @
/home/jorge/.emacs.d/elpa/org-20150727/)
but things fail in recent versions, particularly 2015-08-24 (which I
uninstalled because it kept pestering me about many supposed "malformed
drawer"s because of this bug).

If have created a small file that reproduces this bug, and attached it to
this email.  In this file,
with old Org and point at the beginning of the drawer,
org-get-property-block returns
(33 . 52).
New Org returns nil.

This is Emacs 24.5 compiled from sources in Ubuntu 15.04.

[-- Attachment #1.2: Type: text/html, Size: 921 bytes --]

[-- Attachment #2: drawer-bug.org --]
[-- Type: application/octet-stream, Size: 59 bytes --]

* Dummy
  Dummy.
  :PROPERTIES:
  :LOCATION: Earth
  :END:

             reply	other threads:[~2015-08-25 17:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-25 17:42 Jorge Morais [this message]
2015-08-25 22:22 ` Bug report: org-get-property-block returns nil if the entry does not start with the property drawer Josiah Schwab
2015-08-25 23:59   ` Jorge

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='CACFJq+azz0fsJYSNGsswzDtc+S6Ga48uiV4jN4cd9BUnM27K=w@mail.gmail.com' \
    --to=jorge13515@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).