[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] possible bug in adding properties to headlines with no properties
From: |
John Kitchin |
Subject: |
[O] possible bug in adding properties to headlines with no properties |
Date: |
Fri, 28 Nov 2014 08:28:06 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin) |
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
- [O] possible bug in adding properties to headlines with no properties,
John Kitchin <=