From mboxrd@z Thu Jan 1 00:00:00 1970 From: egallego@babel.ls.fi.upm.es (Emilio =?utf-8?Q?Jes=C3=BAs?= Gallego Arias) Subject: Re: (org-entry-properties nil 'all) does not return inherited properties Date: Mon, 22 Mar 2010 18:44:38 +0100 Message-ID: <877hp48d4p.fsf@baal.ls.fi.upm.es> References: <20100322150100.GA21387@homac> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NtlgO-0007ki-6q for emacs-orgmode@gnu.org; Mon, 22 Mar 2010 13:44:56 -0400 Received: from [140.186.70.92] (port=50289 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NtlgM-0007kS-Uc for emacs-orgmode@gnu.org; Mon, 22 Mar 2010 13:44:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NtlgL-0004LL-7A for emacs-orgmode@gnu.org; Mon, 22 Mar 2010 13:44:54 -0400 Received: from lo.gmane.org ([80.91.229.12]:60806) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NtlgK-0004Kv-Qq for emacs-orgmode@gnu.org; Mon, 22 Mar 2010 13:44:53 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NtlgH-0006as-Uh for emacs-orgmode@gnu.org; Mon, 22 Mar 2010 18:44:49 +0100 Received: from baal.ls.fi.upm.es ([138.100.12.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Mar 2010 18:44:49 +0100 Received: from egallego by baal.ls.fi.upm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Mar 2010 18:44:49 +0100 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: emacs-orgmode@gnu.org Holger Macht writes: > (org-entry-properties nil 'all) does not return inherited properties > added with a file directive like that: > > #+PROPERTY: propkey propval > > Is this by intention? If so, is there a method to get all the properties > of an item, also inherited ones? > > Currently I was just able to find (org-entry-get), but this only returns > one specific property of which I need to know the name. See: ,----[ C-h v org-use-property-inheritance RET ] | org-use-property-inheritance is a variable defined in `org.el'. | Its value is nil | | Documentation: | Non-nil means properties apply also for sublevels. | | This setting is chiefly used during property searches. Turning it on can | cause significant overhead when doing a search, which is why it is not | on by default. | | When nil, only the properties directly given in the current entry count. | When t, every property is inherited. The value may also be a list of | properties that should have inheritance, or a regular expression matching | properties that should be inherited. | | However, note that some special properties use inheritance under special | circumstances (not in searches). Examples are CATEGORY, ARCHIVE, COLUMNS, | and the properties ending in "_ALL" when they are used as descriptor | for valid values of a property. | | Note for programmers: | When querying an entry with `org-entry-get', you can control if inheritance | should be used. By default, `org-entry-get' looks only at the local | properties. You can request inheritance by setting the inherit argument | to t (to force inheritance) or to `selective' (to respect the setting | in this variable). | | You can customize this variable. | | [back] `---- Regards, Emilio