From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem with org-mode after upgradiing to org 8 Date: Thu, 17 Jul 2014 09:15:23 -0400 Message-ID: <87y4vsqg7o.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7lXS-0007FF-DD for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 09:16:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7lXA-0005e4-NN for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 09:15:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:44430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7lXA-0005ds-Gk for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 09:15:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X7lX7-0007up-Fg for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 15:15:37 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2014 15:15:37 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2014 15:15:37 +0200 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: emacs-orgmode@gnu.org Roland Everaert 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(# 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(# 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(# 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