From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Wishon Subject: Question about adding to inherited properties Date: Wed, 18 Apr 2012 16:05:13 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba30903282e3f004bdfc1698 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKdw8-0005mv-Em for emacs-orgmode@gnu.org; Wed, 18 Apr 2012 19:05:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKdw5-0000NP-3M for emacs-orgmode@gnu.org; Wed, 18 Apr 2012 19:05:20 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:35818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKdw4-0000N6-S9 for emacs-orgmode@gnu.org; Wed, 18 Apr 2012 19:05:17 -0400 Received: by lbbgg6 with SMTP id gg6so418908lbb.0 for ; Wed, 18 Apr 2012 16:05:14 -0700 (PDT) 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 --90e6ba30903282e3f004bdfc1698 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Org-mode Community, I can't get the example in section 7.1 of the org-mode manual to work as I expect. Perhaps someone can help me see what I'm doing wrong. I tried creating this buffer: * CD collection ** Classic :PROPERTIES: :GENRES: Classic :END: *** Goldberg Variations :PROPERTIES: :Title: Goldberg Variations :Composer: J.S. Bach :Artist: Glen Gould :Publisher: Deutsche Grammophon :NDisks: 1 :GENRES+: Baroque :END: Then I set the org-use-property-inheritance variable to include GENRES. Then I wrote the following function (defun bill-test (property) "print all inheirited properties" (interactive "MProperty: ") (message (concat property " =3D " (org-entry-get (point) property t)))) Which prints "GENRES =3D Baroque" when I run it with the point on Goldberg Variations, based on the manual I expected this to print "GENRES =3D Classi= c Baroque=94. While I think they should all do the same thing, I also tried the following ways of calling org-entry-get just in case all with the same result. (org-entry-get (point) property 'selective) (org-entry-get nil property t) (org-entry-get nil property 'selective) I'm using org-version 7.8.09 on Windows with emacs "GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601) of 2011-03-10 on 3249CTO". Any pointers about what I'm doing wrong would be great. Thanks, ~>Bill --90e6ba30903282e3f004bdfc1698 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Org-mode Community,

I can't get the example in section 7.1 of= the org-mode manual to work as I expect.=A0 Perhaps someone can help me se= e what I'm doing wrong.=A0

I tried creating this buffer:
* CD collection
** Classic
=A0:PROPERTIES:
=A0:GENRES: Classic
= =A0:END:
*** Goldberg Variations
=A0:PROPERTIES:
=A0:Title:=A0=A0= =A0 Goldberg Variations
=A0:Composer: J.S. Bach
=A0:Artist:=A0=A0 Gle= n Gould
=A0:Publisher: Deutsche Grammophon
=A0:NDisks:=A0=A0 1
=A0:GENRES+:=A0=A0 Baroque
=A0:END:

Then I= set the org-use-property-inheritance variable to include GENRES.

Th= en I wrote the following function

(defun bill-test (property)
=A0= "print all inheirited properties"
=A0 (interactive "MProperty: ")
=A0 (message (concat property = " =3D " (org-entry-get (point) property t))))

Which prints= "GENRES =3D Baroque" when I run it with the point on Goldberg Va= riations, based on the manual I expected this to print "GENRES =3D Cla= ssic Baroque=94.

While I think they should all do the same thing, I also = tried the following ways of calling org-entry-get just in case all with the= same result.
(org-entry-get (point) property 'selective)
(org-en= try-get nil property t)
(org-entry-get nil property 'selective)

I'm using org-versio= n 7.8.09 on Windows with emacs "GNU Emacs 23.3.1 (i386-mingw-nt6.1.760= 1) of 2011-03-10 on 3249CTO".

Any pointers about what I'm d= oing wrong would be great.

Thanks,
~>Bill
--90e6ba30903282e3f004bdfc1698--