From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: How to include comments on export? org-exp-blocks.el? Date: Tue, 25 Oct 2011 08:13:40 +0530 Message-ID: <8162jd6bab.fsf@gmail.com> References: <14553.1319496752@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIWzf-00055n-Bz for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 22:44:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIWze-0005IU-95 for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 22:43:59 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:44291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIWze-0005IL-6V for emacs-orgmode@gnu.org; Mon, 24 Oct 2011 22:43:58 -0400 Received: by ggnh4 with SMTP id h4so44826ggn.0 for ; Mon, 24 Oct 2011 19:43:57 -0700 (PDT) In-Reply-To: <14553.1319496752@alphaville.americas.hpqcorp.net> (Nick Dokos's message of "Mon, 24 Oct 2011 18:52:32 -0400") 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org, Herbert Sitz > So I tried > > (add-hook 'org-export-preprocess-hook (function org-export-blocks-preprocess)) > > and I get the comment in the HTML output. Is it valid a valid xhtml? M-x nxml-mode C-c C-n (assumming rng validation is on) I find that it suffers from the same problem that cropped up wrt special blocks. See this thread http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg00046.html I think the comment blocks are better handled as special blocks instead of org-exp-blocks. ps: I think number of blocks and hooks in Org reflect number of people that worked on it :-) --