From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Inheritance of LOCATION when exporting ICal (Was: Re: Bug in org-export-icalendar) Date: Fri, 14 Nov 2008 08:02:00 +0100 Message-ID: <96502767-5F5B-45BE-AC76-C69CADC11678@uva.nl> References: <20081111.151722.205822299.harri.kiiskinen@utu.fi> <1CBCEE4B-7DAE-415F-9D6A-FD83DEA5CC07@uva.nl> <20081113.164113.208089520.harri.kiiskinen@utu.fi> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0tP9-0005Gw-2C for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 02:47:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0tP7-0005GK-MO for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 02:47:46 -0500 Received: from [199.232.76.173] (port=42717 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0tP7-0005GH-HH for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 02:47:45 -0500 Received: from mx20.gnu.org ([199.232.41.8]:54777) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L0tP7-0000HB-7p for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 02:47:45 -0500 Received: from ug-out-1314.google.com ([66.249.92.175]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0tP5-0001Nd-0J for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 02:47:43 -0500 Received: by ug-out-1314.google.com with SMTP id 36so1866434uga.17 for ; Thu, 13 Nov 2008 23:47:41 -0800 (PST) In-Reply-To: <20081113.164113.208089520.harri.kiiskinen@utu.fi> 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: Harri Kiiskinen Cc: emacs-orgmode@gnu.org Hi Harri, On Nov 13, 2008, at 3:41 PM, Harri Kiiskinen wrote: > From: Carsten Dominik > Subject: Re: [Orgmode] Bug in org-export-icalendar > Date: Tue, 11 Nov 2008 17:34:20 +0100 > >> yes, only times in time stamps will be used in iCalendar export. >> Times in the headline >> are too unpredictable. The agenda uses them as a service because >> nothing really bad can happen. But if you want consistency across >> applications, you should define times in a consistent way, i.e. in >> the stamp. > > Ok, explanation quite satisfactory. Second wish: > > When exporting to icalendar, would it be possible to make the property > LOCATION to respect the setting in org-use-property-inheritance? I > like to group seminars under one heading, so I could just set the > LOCATION property there, and still get it exported to the .ics file > for each of the sub-headings. > > If I understand correctly, the place to change is in org-exp.el, lines > 4336 and 4458: (org-entry-get nil "LOCATION") from nil to 'selective' > or something. almost correct, (org-entry-get nil "LOCATION" 'selective) would be the right thing to do. Why don't you try locally and let us know how it works? One problem is that if you have large file with N entries, using property inheritance will eventually make the time required for export scale as N^2, because for each matching entry, Org will have to scan back to top-level to find if it should inherit. On could use a different implementation to make sure that is scales as N, but the current algorithm does not. > Perhaps the selective inheritance could be allowed for DEADLINE > and SCHEDULED, too? I could imagine using this, too. Same problem as above, and I am no sure if it would break anything. Maybe maybe not. - Carsten > > > Best, > > Harri K