From mboxrd@z Thu Jan 1 00:00:00 1970 From: visayafan Subject: What's wrong with org-export-html-final-hook in 8.x Date: Tue, 14 May 2013 22:16:14 +0800 Message-ID: <87ip2lode9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcGcL-0004jW-B7 for emacs-orgmode@gnu.org; Tue, 14 May 2013 10:54:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcGcF-0008EZ-65 for emacs-orgmode@gnu.org; Tue, 14 May 2013 10:54:17 -0400 Received: from plane.gmane.org ([80.91.229.3]:60529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcGYM-0007De-1H for emacs-orgmode@gnu.org; Tue, 14 May 2013 10:50:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UcGYG-0008PU-EG for emacs-orgmode@gnu.org; Tue, 14 May 2013 16:50:04 +0200 Received: from 1.80.135.8 ([1.80.135.8]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 May 2013 16:50:04 +0200 Received: from visayafan by 1.80.135.8 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 May 2013 16:50:04 +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 Recently I upgrade my Org Mode from 7.8.11 to the latest 8.0.2 and find org-export-html-final-hook doesn't work. ------------------------------ (add-hook 'org-export-html-final-hook 'org-delete-!!!) (defun org-delete-!!! () (interactive) (goto-char (point-min)) (while (re-search-forward "AAAAA" nil t) (replace-match "<")) (goto-char (point-min)) (while (re-search-forward "BBBBB" nil t) (replace-match ">"))) ------------------------------ I need this piece of code because when I export my org note to html I want something like AAAAAfont color="red"BBBBBthis is redAAAAA/fontBBBBB change to this is red then I will have red color. but now it doen't work. I find this org-hook link http://orgmode.org/worg/org-configs/org-hooks.html, but this page doesn't seem to help, it says nothing about the upgrade thing. So, can anybody help about this? Any help would be very appreciated. Sorry for my broken English :) visayafan --