Roland Everaert <reveatw...@gmail.com> writes: > With the minimal-config, the org version is "Org-mode version 8.3beta > (release_8.3beta-40-g9cf3c4 @ > /home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/)". So I have created a file > that load only org-mode and my configuration. > > It begins like this: > > (let ((default-directory "~/.emacs.d/site-lisp/")) > (normal-top-level-add-to-load-path '(".")) > (normal-top-level-add-subdirs-to-load-path)) > > ;; Load Org-mode > (add-to-list 'load-path "~/.emacs.d/site-lisp/org-mode/lisp") > (add-to-list 'load-path "~/.emacs.d/site-lisp/org-mode/contrib/lisp") > (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode)) > > The right version of org-mode is loaded, but I have an error upon starting > emacs. Below is the backtrace: > > Debugger entered--Lisp error: (void-variable org-element-block-name-alist) > add-to-list(org-element-block-name-alist ("HTML" . > org-element-export-block-parser)) > ... > eval-buffer(#<buffer *load*-810741> nil > "/home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/ox-html.el" nil t) ; > Reading at buffer position 8239 > > load-with-code-conversion("/home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/ox-html.el" > "/home/reveatwork/.emacs.d/site-lisp/org-mode/lisp/ox-html.el" nil t) > require(ox-html) > eval-buffer(#<buffer *load*-207941> nil > "/home/reveatwork/.emacs.d/site-lisp/my-org-mode-config.el" nil t) ; Reading > at buffer position 21243 > > load-with-code-conversion("/home/reveatwork/.emacs.d/site-lisp/my-org-mode-config.el" > "/home/reveatwork/.emacs.d/site-lisp/my-org-mode-config.el" nil nil) > load("my-org-mode-config") > load-library("my-org-mode-config") > eval-buffer(#<buffer *load*> nil "/home/reveatwork/.emacs.d/init.el" nil > t) ; Reading at buffer position 6127 > load-with-code-conversion("/home/reveatwork/.emacs.d/init.el" > "/home/reveatwork/.emacs.d/init.el" t t) > load("/home/reveatwork/.emacs.d/init" t t)
org-element-block-name-alist is defined in org-element.el, so you need to load that file before you can use it. Find the place where you are setting it in your init.el and modify it as follows: --8<---------------cut here---------------start------------->8--- ... (require 'org-element) (add-to-list 'org-element-block-name-alist '("HTML" . org-element-export-block-parser)) ... --8<---------------cut here---------------end--------------->8--- But I don't think you need to modify it at all: I start with a minimal init file, do a (require 'ox-html) and org-element-block-name-alist already contains the HTML element above. This is with Org-mode version 8.3beta (release_8.3beta-40-g9cf3c4) YMMV of course if you are using a different version: there might be a bug that has been fixed more recently - I haven't checked. -- Nick