From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ERT test for checking HTML export: void-variable org-export-filters-alist Date: Fri, 06 Feb 2015 10:06:06 +0100 Message-ID: <87siejz9xd.fsf@nicolasgoaziou.fr> References: <86egqcz62v.fsf@example.com> <86r3ucxqrs.fsf@example.com> <86386ka3mv.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJeqf-0005hg-GW for emacs-orgmode@gnu.org; Fri, 06 Feb 2015 04:05:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJeqa-0006sz-GZ for emacs-orgmode@gnu.org; Fri, 06 Feb 2015 04:05:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:50311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJeqa-0006qW-Ab for emacs-orgmode@gnu.org; Fri, 06 Feb 2015 04:05:08 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YJeqY-0006te-E8 for emacs-orgmode@gnu.org; Fri, 06 Feb 2015 10:05:06 +0100 In-Reply-To: <86386ka3mv.fsf@example.com> (Sebastien Vauban's message of "Thu, 05 Feb 2015 14:28:56 +0100") 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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, Sebastien Vauban writes: >> 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. I cannot reproduce it. Regards, -- Nicolas Goaziou