From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: does #+PROPERTY still exist ? Date: Wed, 22 Sep 2010 03:36:46 -0400 Message-ID: <18525.1285141006@gamaville.dokosmarshall.org> References: <80iq1ygxq6.fsf@gmail.com> <16221.1285135855@gamaville.dokosmarshall.org> <87iq1yw9gd.fsf@noorul.maa.corp.collab.net> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54936 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyJsy-0001jJ-HT for emacs-orgmode@gnu.org; Wed, 22 Sep 2010 03:37:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyJsx-00028E-15 for emacs-orgmode@gnu.org; Wed, 22 Sep 2010 03:37:00 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:49724) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyJsw-000283-SX for emacs-orgmode@gnu.org; Wed, 22 Sep 2010 03:36:58 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L9500L1715BMWQM@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 22 Sep 2010 02:36:47 -0500 (CDT) In-reply-to: Message from Noorul Islam K M of "Wed\, 22 Sep 2010 12\:28\:42 +0530." <87iq1yw9gd.fsf@noorul.maa.corp.collab.net> 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: Noorul Islam K M Cc: =?us-ascii?Q?nt=3D5FBela=3D3DEFche=3D3F=3D3D=3F=3D?= , nicholas.dokos@hp.com, Org mode , =?us-ascii?Q?=3D=3Fus-ascii=3FQ=3F=3D3D=3D3Fiso-8859-1=3D3FQ=3D3FVince?= Noorul Islam K M wrote: > Nick Dokos writes: >=20 > > Vincent Bela=C3=AFche wrote: > > > >> In the org manual node `(org) Property syntax' one can read the > >> following: > >>=20 > >>=20 > >> --8<-------------coupez ici--------------d=C3=A9but-------------->8--- > >> If you want to set properties that can be inherited by any entry > >> in a file, use a line like=20 > >> #+PROPERTY: NDisks_ALL 1 2 3 4 > >> --8<-------------coupez ici---------------fin--------------->8--- > >>=20 > >> However this does not seem to work. > > > > In what way does it fail to work? > > > > AFAICT, it works as advertised: after inserting the above line, I try to > > insert a NDisks property with=20 > > > > C-c C-x p NDisks5 > > > > and it complains ("No match"). If I use e.g. 3 instead of 5, the > > property is inserted. > > >=20 > In the below example=20 >=20 > ---------------------------------------------------------------- > #+PROPERTY: Age 25 > #+COLUMNS: %25ITEM %Age >=20 > * Heading 1 > * Heading 2 > ---------------------------------------------------------------- >=20 > When I try to use column view to edit the property it is not using the > format that I mentioned at the file level. >=20 > But the following one works >=20 > ---------------------------------------------------------------- > * Heading 1 > :PROPERTIES: > :Age: 25 > :COLUMNS: %25ITEM %Age > :END: > * Heading 2 > ---------------------------------------------------------------- >=20 > Looks like the file level settings are not working. >=20 If I evaluate the form (org-entry-get (point) "Age" t) with the point at any heading, I get "25". OTOH, even with org-use-property-inheritance set to t, column view does not show it. Ergo, it's a column view bug. In org-columns-compute, I see ... (while (re-search-backward re beg t) (setq sumpos (match-beginning 0) last-level level level (org-outline-level) val (org-entry-get nil property) ... I suspect the val line needs to be val (org-entry-get nil property org-use-property-inheritance) instead. HTH, Nick