I (think) I have a recipe to reproduce this: - Emacs 25 (emacs-25 branch from Git) - Org mode from latest Git (make sure that there's no ELC files from Emacs *24*, if it uses files from Emacs 24 it works fine (bug in byte compiler?)).
╭────[ r.el ] │ (add-to-list 'load-path "~/org-mode/lisp") │ (add-to-list 'load-path "~/org-mode/contrib/lisp") │ (require 'org) │ │ (find-file "~/r.org") │ │ (org-html-export-as-html) ╰──── ╭────[ $ ] │ emacs -Q -l r.el ╰──── Produces: ╭──── │ Wrong number of arguments: setq, 1 ╰──── Thanks!