From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Girard Subject: [PATCH] Allow org-collector to display heading indentation Date: Fri, 30 Mar 2012 21:43:18 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=14dae9cdc2ada87fc804bc7b0e36 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDhjc-0000fM-71 for emacs-orgmode@gnu.org; Fri, 30 Mar 2012 15:43:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDhja-0003sc-Gm for emacs-orgmode@gnu.org; Fri, 30 Mar 2012 15:43:43 -0400 Received: from mail-vb0-f41.google.com ([209.85.212.41]:43681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDhja-0003sN-A4 for emacs-orgmode@gnu.org; Fri, 30 Mar 2012 15:43:42 -0400 Received: by vbbey12 with SMTP id ey12so768586vbb.0 for ; Fri, 30 Mar 2012 12:43:39 -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 --14dae9cdc2ada87fc804bc7b0e36 Content-Type: text/plain; charset=ISO-8859-1 Hi all, attached is a patch which adds a new parameter "indent" to the propview dynamic bloc, with the following behaviour: #+BEGIN_SRC org ,* Tree ,:PROPERTIES: ,:COLUMNS: %8ITEM %4prop1 %5prop2 ,:ID: tree ,:END: ,** A ,:PROPERTIES: ,:prop1: 10 ,:prop2: 20 ,:END: ,*** A1 ,:PROPERTIES: ,:prop1: 15 ,:prop2: 19 ,:END: ,*** A2 ,:PROPERTIES: ,:prop1: 20 ,:prop2: 18 ,:END: ,** B ,:PROPERTIES: ,:prop1: 25 ,:prop2: 10 ,:END: ,*** B1 ,:PROPERTIES: ,:prop1: 2 ,:prop2: 4 ,:END: ,*** B2 ,:PROPERTIES: ,:prop1: 3 ,:prop2: 5 ,:END: #+END_SRC #+BEGIN: propview :id tree :cols (ITEM prop1) :noquote t :indent t | ITEM | prop1 | |--------+-------| | Tree | 0 | | \- A | 10 | | \-- A1 | 15 | | \-- A2 | 20 | | \- B | 25 | | \-- B1 | 2 | | \-- B2 | 3 | |--------+-------| | | | #+END I wish the indentation to be displayed with nothing but spaces, but they would be trimmed by org-table guts ; so that's middly satisfying, but better than nothing :-) Cheers, Nicolas --14dae9cdc2ada87fc804bc7b0e36 Content-Type: application/octet-stream; name="org-collector.el.diff" Content-Disposition: attachment; filename="org-collector.el.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h0fmwbv50 ZGlmZiAtLWdpdCBhL2NvbnRyaWIvbGlzcC9vcmctY29sbGVjdG9yLmVsIGIvY29udHJpYi9saXNw L29yZy1jb2xsZWN0b3IuZWwKaW5kZXggYWQxOThlZC4uYmM5ZGZhZSAxMDA2NDQKLS0tIGEvY29u dHJpYi9saXNwL29yZy1jb2xsZWN0b3IuZWwKKysrIGIvY29udHJpYi9saXNwL29yZy1jb2xsZWN0 b3IuZWwKQEAgLTEyMSw2ICsxMjEsNyBAQCBwcmVjZWVkaW5nIHRoZSBkYmxvY2ssIHRoZW4gdXBk YXRlIHRoZSBjb250ZW50cyBvZiB0aGUgZGJsb2NrLiIKIAkgICAgKHNjb3BlIChwbGlzdC1nZXQg cGFyYW1zIDpzY29wZSkpCiAJICAgIChub3F1b3RlIChwbGlzdC1nZXQgcGFyYW1zIDpub3F1b3Rl KSkKIAkgICAgKGNvbG5hbWVzIChwbGlzdC1nZXQgcGFyYW1zIDpjb2xuYW1lcykpCisJICAgIChp bmRlbnQgKHBsaXN0LWdldCBwYXJhbXMgOmluZGVudCkpCiAJICAgIChjb250ZW50LWxpbmVzIChv cmctc3BsaXQtc3RyaW5nIChwbGlzdC1nZXQgcGFyYW1zIDpjb250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HRoZSBw cm9wZXJ0aWVzIGZyb20gZXZlcnkgaGVhZGVyCiAgIChsZXQqICgoaGVhZGVyLXByb3BzCiAJICAo bGV0ICgob3JnLXRydXN0LXNjYW5uZXItdGFncyB0KSBhbHN0KQogCSAgICAob3JnLW1hcC1lbnRy aWVzCi0JICAgICAocXVvdGUgKGNvbnMgKGNvbnMgIklURU0iIChvcmctZ2V0LWhlYWRpbmcgdCkp CisJICAgICAocXVvdGUgKGNvbnMgKGNvbnMgIklURU0iIAorCQkJCShsZXQgKChpdGVtIChvcmct Z2V0LWhlYWRpbmcgdCkpCisJCQkJICAgICAgKGxldmVsICgtIChvcmctY3VycmVudC1sZXZlbCkg MSkpKQorCQkJCSAgKGlmIChhbmQgaW5kZW50ICg+IGxldmVsIDApKQorCQkJCSAgICAgIChmb3Jt YXQgIlxcJXMgJXMiIAorCQkJCQkgICAgICAobWFrZS1zdHJpbmcgbGV2ZWwgPy0gKSBpdGVtKSBp dGVtKSkpCiAJCQkgIChvcmctcHJvcHZpZXctZ2V0LXdpdGgtaW5oZXJpdGVkIGluaGVyaXQpKSkK IAkgICAgIG1hdGNoIHNjb3BlKSkpCiAJIDs7IHJlYWQgcHJvcGVydHkgdmFsdWVzCg== --14dae9cdc2ada87fc804bc7b0e36--