From mboxrd@z Thu Jan 1 00:00:00 1970 From: Edward DeMeulle Subject: Re: Export of property key:value Date: Sat, 27 Jul 2013 16:44:17 -0700 Message-ID: <87ppu38t66.fsf@demeulle.org> References: <87ppujgh3v.fsf@demeulle.org> <87mwpnypdn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3EA9-0006z9-C7 for emacs-orgmode@gnu.org; Sat, 27 Jul 2013 19:44:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3EA1-0003Dm-V7 for emacs-orgmode@gnu.org; Sat, 27 Jul 2013 19:44:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:46423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3EA1-0003DV-OB for emacs-orgmode@gnu.org; Sat, 27 Jul 2013 19:44:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V3E9z-0000T5-TA for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 01:44:27 +0200 Received: from pool-71-119-32-205.lsanca.fios.verizon.net ([71.119.32.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Jul 2013 01:44:27 +0200 Received: from ed by pool-71-119-32-205.lsanca.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Jul 2013 01:44:27 +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 Thanks for the info. I took it up as a challenge to finally learn a little elisp. This is what I have so far, which appears to work as long as I expand the entire subtree to be exported. I'd appreciate any criticism since I really don't know if I'm handling things the best possible way. (defun ewd/export-properties (backend) "Export all property names listed in EXPORT_PROPERTIES in the format: - : after each heading of specified level NOTE: 1st value in EXPORT_PROPERTIES is heading level" (if (org-entry-get (point) "EXPORT_PROPERTIES") (let* ( (export_properties (split-string (org-entry-get (point) "EXPORT_PROPERTIES") " ")) (export-level (string-to-number (car export_properties))) (export-list (cdr export_properties)) ) (org-map-entries (lambda () (next-line) (open-line 1) (dolist (prop export-list) (if (= export-level (car (org-heading-components))) (progn (insert "- " prop ": " (if (org-entry-get (point) prop) (org-entry-get (point) prop) "N/A")) (newline))))))))) (add-hook 'org-export-before-processing-hook 'ewd/export-properties)