From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Schmitt Subject: Re: PROPERTIES before the first headline Date: Wed, 17 Feb 2010 15:01:58 +0100 Message-ID: <4B7BF6D6.4030603@cs.tu-berlin.de> References: <4B7B6EA2.7030606@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhkU5-0003ha-Bx for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 09:02:33 -0500 Received: from [140.186.70.92] (port=57014 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhkU3-0003hQ-KF for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 09:02:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhkU2-0007ha-Kg for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 09:02:31 -0500 Received: from mail.cs.tu-berlin.de ([130.149.17.13]:41849) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhkU2-0007hS-F1 for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 09:02:30 -0500 Received: from localhost (localhost [127.0.0.1]) by localhost-12225.cs.tu-berlin.de (Postfix) with ESMTP id C053E3564F for ; Wed, 17 Feb 2010 15:02:24 +0100 (MET) In-Reply-To: <4B7B6EA2.7030606@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christian Wittern Cc: Org Mode Mailing List Hi Christian, you forgot the colon after PROPERTY, i.e. the following line at the beginning of the buffer does work: #+PROPERTY: myprop don't ask (don't forget to refresh the buffer setup by typing C-c C-c with the cursor in that line). Then the call (org-entry-get (point) "myprop" t) returns "don't ask". Note the third argument (t), which allows inheritance. Hth, Stephan Also sprach Christian Wittern: > Hi there, > > Extending my use of org-mode has left > me running into another wall: I would > like to set some custom properties > globally for the whole file, before > everything else. There does not seem > to be a way to do this > > #+PROPERTY myprop don't ask > > and having the :PROPERTY: drawer after > the #+ lines also does not seem to > work: Whenever I try to use the API > functions to get at the property, I am > told that I am before the first > headling (which I know). So, is this > behavior intentional? And if yes, is > there a way to work around this? > > All the best, > > Christian > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode