emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: emacs-orgmode@gnu.org
Subject: possible bug in adding properties to headlines with no properties
Date: Fri, 28 Nov 2014 08:28:06 -0500	[thread overview]
Message-ID: <m2r3wnjvyx.fsf@andrew.cmu.edu> (raw)

I noticed an undesirable behavior in setting a property on a headline
with no properties, but which contains a code block that generates
headlines with properties. When I try to set a property with C-c C-x p,
the property gets put in the wrong place (inside the code block). It is
a small issue, but I thought I would report. 

If the headline already has a PROPERTIES drawer then it seems to work fine.

Here is an example.

* bug in setting properties?
 <- put cursor here, C-c C-x p add property

The property goes in the code block below
 
#+BEGIN_SRC emacs-lisp
(format "** %s
  :PROPERTIES:
  :ID: %s
  :END:
%s" "A headline" "some id" "some body text")
#+END_SRC
#+RESULTS:
: ** A headline
:   :PROPERTIES:
:   :ID: some id
:   :END:
: some body text

-- 
-----------------------------------
John Kitchin
http://kitchingroup.cheme.cmu.edu

             reply	other threads:[~2014-11-28 13:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28 13:28 John Kitchin [this message]
2014-11-28 16:57 ` possible bug in adding properties to headlines with no properties Charles C. Berry
2014-11-28 19:35   ` John Kitchin

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=m2r3wnjvyx.fsf@andrew.cmu.edu \
    --to=jkitchin@andrew.cmu.edu \
    --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).