From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: possible bug in adding properties to headlines with no properties Date: Fri, 28 Nov 2014 08:28:06 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuLbk-0003a4-BU for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 08:29:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuLbd-0004xI-Rl for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 08:29:12 -0500 Received: from plane.gmane.org ([80.91.229.3]:52840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuLbd-0004x6-Kz for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 08:29:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XuLbb-0001yx-KH for emacs-orgmode@gnu.org; Fri, 28 Nov 2014 14:29:03 +0100 Received: from c-67-186-28-151.hsd1.pa.comcast.net ([67.186.28.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Nov 2014 14:29:03 +0100 Received: from jkitchin by c-67-186-28-151.hsd1.pa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 Nov 2014 14:29:03 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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