From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: SUMMARY: [Feature Request] Make property-drawers exportable Date: Wed, 25 Sep 2013 14:12:41 +0200 Message-ID: <87bo3ht806.fsf@gmail.com> References: <8738shvzaj.fsf@gmail.com> <87ppvkiz8b.fsf@gmail.com> <87vc5cviu6.fsf@gmail.com> <871u80imo6.fsf@gmail.com> <33429FE3-CAA5-4F58-8536-135F96CA9C11@gmail.com> <406B4BB5-5A38-44EB-AC97-DEA17644164C@gmail.com> <3EAEACD0-1B99-40B7-8A5D-AE491C9F8528@gmail.com> <87a9j115m0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOnxo-0004qX-DZ for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 08:13:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOnxh-0002Ix-1v for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 08:13:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:37130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOnxg-0002Iq-RJ for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 08:12:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VOnxd-00023n-B5 for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 14:12:53 +0200 Received: from g231232115.adsl.alicedsl.de ([92.231.232.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Sep 2013 14:12:53 +0200 Received: from tjolitz by g231232115.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Sep 2013 14:12:53 +0200 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 Nicolas Goaziou writes: Hello, > There may be a slightly different option available: we can introduce > a new defcustom, e.g., `org-export-with-node-properties' (what symbol to > use for short item in OPTIONS?), which will trigger the following > behaviour: > > - when t, export completely all property drawers as examples; > > - when nil, do not export property drawers (default value); > > - when set to a list of strings, export property drawers as examples > but only include properties matching these strings; with the last option as "list of strings or regexp's" this would be exactly what I would have needed in some practical use cases, and it seems to be just natural given the dual nature of property drawers (storage for Org-mode-internal data and storage for use-case related data). With 'strings or regexp's' I mean that it should be possible to match on key-prefixes, like FOO in the following example * My Header :PROPERTIES: :CUSTOM_ID: ABC123 :FOO_BAR: 13 :FOO_FOO: bar bar :END: no matter if the user actually has to give a regexp or if ox.el takes care of bulding a regexp from a given string like ,---------------------------------------------- | (let ((rgxp (concat strg "[_-[:word:]]*")))) `---------------------------------------------- or so... -- cheers, Thorsten