From mboxrd@z Thu Jan 1 00:00:00 1970 From: Holger Macht Subject: Re: Re: (org-entry-properties nil 'all) does not return inherited properties Date: Mon, 22 Mar 2010 22:56:22 +0100 Message-ID: <20100322215622.GC26505@homac> References: <20100322150100.GA21387@homac> <877hp48d4p.fsf@baal.ls.fi.upm.es> <20100322180630.GB26505@homac> <87vdcodss0.fsf@babel.ls.fi.upm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ntpbc-00021d-75 for emacs-orgmode@gnu.org; Mon, 22 Mar 2010 17:56:16 -0400 Received: from [140.186.70.92] (port=54014 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NtpbZ-00020F-C6 for emacs-orgmode@gnu.org; Mon, 22 Mar 2010 17:56:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NtpbX-0006Zu-Oa for emacs-orgmode@gnu.org; Mon, 22 Mar 2010 17:56:13 -0400 Received: from cantor2.suse.de ([195.135.220.15]:36948 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NtpbX-0006Zi-JA for emacs-orgmode@gnu.org; Mon, 22 Mar 2010 17:56:11 -0400 Content-Disposition: inline In-Reply-To: <87vdcodss0.fsf@babel.ls.fi.upm.es> 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: Emilio =?iso-8859-1?Q?Jes=FAs?= Gallego Arias Cc: emacs-orgmode@gnu.org On Mon 22. Mar - 21:07:43, Emilio Jes=FAs Gallego Arias wrote: > Holger Macht writes: >=20 > > On Mo 22. M=E4r - 18:44:38, Emilio Jes=FAs Gallego Arias wrote: > >> Holger Macht writes: > >>=20 > >> > (org-entry-properties nil 'all) does not return inherited properti= es > >> > added with a file directive like that: > >> > > >> > #+PROPERTY: propkey propval > >> > > >> > Is this by intention? If so, is there a method to get all the prop= erties > >> > of an item, also inherited ones? > >> > > >> > Currently I was just able to find (org-entry-get), but this only r= eturns > >> > one specific property of which I need to know the name. > >>=20 > >> See: > >>=20 > >> ,----[ C-h v org-use-property-inheritance RET ] > > > > Have you tried? At least this doesn't have an effect on > > (org-entry-properties in current git head. >=20 > Sorry Holger I misunderstood your question. I guess you should modify > org-entry-properties in order to include global properties like is done > in the inheritance case. This does exactly what I want, thanks for the pointer. However, I'm missing the overview to know what impact this might have. Just for reference: --- diff --git a/lisp/org.el b/lisp/org.el index aa22309..ce57451 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -12663,7 +12663,11 @@ things up because then unnecessary parsing is av= oided." (setq key (org-match-string-no-properties 1) value (org-trim (or (org-match-string-no-properties 2) ""))) (unless (member key excluded) - (push (cons key (or value "")) props))))) + (push (cons key (or value "")) props)))) + (when org-use-property-inheritance + (setq props (append org-file-properties props) + props (append org-global-properties props) + props (append org-global-properties-fixed props)))) (if clocksum (push (cons "CLOCKSUM" (org-columns-number-to-string (/ (float clocksum) 60.)