From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: ERT test for checking HTML export: void-variable org-export-filters-alist Date: Thu, 05 Feb 2015 14:28:56 +0100 Message-ID: <86386ka3mv.fsf@example.com> References: <86egqcz62v.fsf@example.com> <86r3ucxqrs.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, May I bump up this thread? Sebastien Vauban wrote: > Here is my code to do so: > > (require 'ox) > > (defun compare-org-html-export-files (orgfile) > "Compare current export of ORGFILE with HTML file already present on disk." > (let* ((base-name > (concat (file-name-directory orgfile) (file-name-base orgfile))) > (htmlfile (concat base-name ".html")) > htmlcontents) > (should > (equal > ;; new export > (with-temp-buffer > (insert-file-contents orgfile) > (setq htmlcontents (org-export-as 'html)) > (delete-region (point-min) (point-max)) > (insert htmlcontents) > (buffer-string)) > ;; old export > (with-temp-buffer > (insert-file-contents htmlfile) > (buffer-string)))))) > > Any idea why the variable `org-export-filters-alist' is said to be void, > while I explicitly load both `ox' (where it's defined) and `ox-html'? > > And adding the require of `ox' and/or `ox-html' inside the test (or the > defun `compare-org-html-export-files') does not change anything. Best regards, Seb -- Sebastien Vauban