[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Problem with org-mode after upgradiing to org 8
From: |
Nick Dokos |
Subject: |
Re: [O] Problem with org-mode after upgradiing to org 8 |
Date: |
Thu, 17 Jul 2014 09:15:23 -0400 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3.50 (gnu/linux) |
Roland Everaert <address@hidden> 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
- Re: [O] Problem with org-mode after upgradiing to org 8, John Hendy, 2014/07/01
- Re: [O] Problem with org-mode after upgradiing to org 8, Roland Everaert, 2014/07/03
- Re: [O] Problem with org-mode after upgradiing to org 8, Roland Everaert, 2014/07/04
- Re: [O] Problem with org-mode after upgradiing to org 8, John Hendy, 2014/07/04
- Re: [O] Problem with org-mode after upgradiing to org 8, Roland Everaert, 2014/07/14
- Re: [O] Problem with org-mode after upgradiing to org 8, John Hendy, 2014/07/14
- Re: [O] Problem with org-mode after upgradiing to org 8, Sean O'Halpin, 2014/07/15
- Re: [O] Problem with org-mode after upgradiing to org 8, Roland Everaert, 2014/07/17
- Re: [O] Problem with org-mode after upgradiing to org 8, Roland Everaert, 2014/07/17
- Re: [O] Problem with org-mode after upgradiing to org 8,
Nick Dokos <=