From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Edgington Subject: Re: proposal to have ignoreheading tags/properties Date: Sat, 2 Aug 2014 01:16:15 -0400 Message-ID: References: <87tx7qxahl.fsf@gmail.com> <87ppie2c2h.fsf@gmail.com> <871tutx4t4.fsf@gmail.com> <87mwdfzmox.fsf@nicolasgoaziou.fr> <87zjhdk63p.fsf@gmail.com> <87oaxtmg36.fsf@nicolasgoaziou.fr> <87y4wxvv61.fsf@gmail.com> <87k389bsza.fsf@gmail.com> <877g48jyd2.fsf@gmail.com> <87a97t9z1f.fsf@bzg.ath.cx> <878und1d6y.fsf@nicolasgoaziou.fr> <87wqawb5ig.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7bd6c6f650b71904ff9e9dfb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDRgg-0000FI-QN for emacs-orgmode@gnu.org; Sat, 02 Aug 2014 01:17:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDRgf-0006Q4-EJ for emacs-orgmode@gnu.org; Sat, 02 Aug 2014 01:16:58 -0400 In-Reply-To: <87wqawb5ig.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode , Eric Schulte , Nicolas Goaziou , Nicolas Girard --047d7bd6c6f650b71904ff9e9dfb Content-Type: text/plain; charset=UTF-8 Hi Bastien, I've attached a patch for ox-extra which doesn't yet include the option for choosing specific tag names (the 'ignore' tag is currently hard-coded). Feel free to modify / commit it. Regards, Mark On Tue, Jul 29, 2014 at 10:31 AM, Bastien wrote: > Hi Nicolas, > > Nicolas Goaziou writes: > >> Filters are _not_ meant to be in core since they are hardly a generic >> solution for a class of problem. They are entry points for user-level >> hacking. Generic patches should operate at the parse tree level, not >> using regexps. >> >> Eric's filter, like any other filter, has flaws that cannot be fixed. >> Useful filters ought to be published in Worg, not included in core. > > Fair enough. > > Still, can someone add Eric's solution to contrib/lisp/ox-extra.el? > > Thanks, > > -- > Bastien --047d7bd6c6f650b71904ff9e9dfb Content-Type: text/x-patch; charset=US-ASCII; name="0001-ox-extra.el-add-ignore-headlines-filter.patch" Content-Disposition: attachment; filename="0001-ox-extra.el-add-ignore-headlines-filter.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hychiuob0 RnJvbSA3YjYwZWVmY2IyMWMyYTYyYjFhYjdmMjQ4ZjZhMGI5OTNkODljYzRkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXJrIEVkZ2luZ3RvbiA8ZWRnaW1hckBnbWFpbC5jb20+CkRh dGU6IFNhdCwgMiBBdWcgMjAxNCAwMDozMjoyOSAtMDQwMApTdWJqZWN0OiBbUEFUQ0hdICogb3gt ZXh0cmEuZWw6IGFkZCBpZ25vcmUtaGVhZGxpbmVzIGZpbHRlcgoKLS0tCiBjb250cmliL2xpc3Av b3gtZXh0cmEuZWwgfCA4MiArKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysr KysrKysrKy0KIDEgZmlsZSBjaGFuZ2VkLCA4MSBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9uKC0p CgpkaWZmIC0tZ2l0IGEvY29udHJpYi9saXNwL294LWV4dHJhLmVsIGIvY29udHJpYi9saXNwL294 LWV4dHJhLmVsCmluZGV4IGY0ZjBiNzYuLjAxMzY4Y2IgMTAwNjQ0Ci0tLSBhL2NvbnRyaWIvbGlz cC9veC1leHRyYS5lbAorKysgYi9jb250cmliL2xpc3Avb3gtZXh0cmEuZWwKQEAgLTIzLDYgKzIz LDEyIEBACiA7OyBhcmUgbm90IHBhcnQgb2Ygb3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GhlYWRsaW5lcyB0byB0aGUgbGV2ZWwg b2YgdGhlCitwYXJlbnQuIgorICAob3JnLWVsZW1lbnQtbWFwIGRhdGEgJ2hlYWRsaW5lCisgICAg KGxhbWJkYSAob2JqZWN0KQorICAgICAgKHdoZW4gKG1lbWJlciAiaWdub3JlIiAob3JnLWVsZW1l bnQtcHJvcGVydHkgOnRhZ3Mgb2JqZWN0KSkKKyAgICAgICAgKGxldCAoKGxldmVsLXRvcCAob3Jn LWVsZW1lbnQtcHJvcGVydHkgOmxldmVsIG9iamVjdCkpCisgICAgICAgICAgICAgIGxldmVsLWRp ZmYpCisgICAgICAgICAgKG1hcGMgKGxhbWJkYSAoZWwpCisgICAgICAgICAgICAgICAgICA7OyBy ZWN1cnNpdmVseSBwcm9tb3RlIGFsbCBuZXN0ZWQgaGVhZGxpbmVzCisgICAgICAgICAgICAgICAg ICAob3JnLWVsZW1lbnQtbWFwIGVsICdoZWFkbGluZQorICAgICAgICAgICAgICAgICAgICAobGFt YmRhIChlbCkKKyAgICAgICAgICAgICAgICAgICAgICAod2hlbiAoZXF1YWwgJ2hlYWRsaW5lIChv cmctZWxlbWVudC10eXBlIGVsKSkKKyAgICAgICAgICAgICAgICAgICAgICAgICh1bmxlc3MgbGV2 ZWwtZGlmZgorICAgICAgICAgICAgICAgICAgICAgICAgICAoc2V0cSBsZXZlbC1kaWZmICgtIChv cmctZWxlbWVudC1wcm9wZXJ0eSA6bGV2ZWwgZWwpCisgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgbGV2ZWwtdG9wKSkpCisgICAgICAgICAgICAgICAgICAgICAg ICAob3JnLWVsZW1lbnQtcHV0LXByb3BlcnR5IGVsCisgICAgICAgICAgICAgICAgICAgICAgICAg IDpsZXZlbCAoLSAob3JnLWVsZW1lbnQtcHJvcGVydHkgOmxldmVsIGVsKQorICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgbGV2ZWwtZGlmZikpKSkpCisgICAg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