emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Sebastien Vauban
	<public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: ERT test for checking HTML export: void-variable org-export-filters-alist
Date: Fri, 06 Feb 2015 10:06:06 +0100	[thread overview]
Message-ID: <87siejz9xd.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <86386ka3mv.fsf@example.com> (Sebastien Vauban's message of "Thu, 05 Feb 2015 14:28:56 +0100")



Hello,

Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
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

      reply	other threads:[~2015-02-06  9:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30 14:38 ERT test for checking HTML export: void-variable org-export-filters-alist Sebastien Vauban
2015-01-30 14:54 ` Sebastien Vauban
2015-02-05 13:28   ` Sebastien Vauban
2015-02-06  9:06     ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87siejz9xd.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).