From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Should comments break paragraphs? Date: Wed, 17 Jul 2013 19:48:09 +0100 Message-ID: <874nbt6n12.fsf@ucl.ac.uk> References: <51E443F6.2050104@arfer.net> <87mwpnfybn.fsf@gmail.com> <51E47BC1.7010808@gmail.com> <87ip0byoqg.fsf@gmail.com> <87fvvev771.fsf@gmail.com> <87wqoqxznb.fsf@gmail.com> <87ppuitp8y.fsf@gmail.com> <87sizexuj9.fsf@gmail.com> <87li55lpqd.fsf@bzg.ath.cx> <87mwplk645.fsf@gmail.com> <87fvvdk3es.fsf@bzg.ath.cx> <87ip09k1d4.fsf@gmail.com> <878v15jqdy.fsf@bzg.ath.cx> <87ehaxjo2m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzWlt-0005vg-4Y for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 14:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzWls-0000nP-7N for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 14:48:17 -0400 Received: from am1ehsobe002.messaging.microsoft.com ([213.199.154.205]:40696 helo=am1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzWlr-0000nC-UI for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 14:48:16 -0400 In-Reply-To: <87ehaxjo2m.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 17 Jul 2013 15:47:13 +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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: [...] > (defun my-comment-removal (backend) > (delete-matching-lines "^[ \t]*#\\( \\|$\\)")) > (add-hook 'org-export-before-parsing-hook 'my-comment-removal) Nicolas, quick question as I am trying to understand the various hooks and filters that make up the (not so new anymore ;-) exporter. This little snippet works just fine for comment lines. However, I tried changing the regexp to one that matches an :ignoreheading: tag on a headline. This works when I do a LaTeX export but not an HTML one. Why would the behaviour be different in each case? I have tried using org-export-before-processing-hook as well but I get the same behaviour. I am soooo confused! Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.5-337-g9f3bed