emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Problem with org-mode after upgradiing to org 8
Date: Thu, 17 Jul 2014 09:15:23 -0400	[thread overview]
Message-ID: <87y4vsqg7o.fsf@gmail.com> (raw)
In-Reply-To: CACdPZ9LFKu_zKF_=6rQtFFO4JCU3jDnvTiHJtgsiNSOS3MFRmA@mail.gmail.com

Roland Everaert <reveatwork@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

      parent reply	other threads:[~2014-07-17 13:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-30  9:24 Problem with org-mode after upgradiing to org 8 Roland Everaert
2014-06-30  9:48 ` Roland Everaert
2014-06-30 11:39   ` John Hendy
     [not found]     ` <CACdPZ9KzWcrCagO6mJABCj_6YXFRND93z8DENv+PjZ-pYLQ7Tg@mail.gmail.com>
2014-07-01 15:55       ` John Hendy
2014-07-03  8:10         ` Roland Everaert
2014-07-04 10:55           ` Roland Everaert
2014-07-04 14:21             ` John Hendy
2014-07-14 11:05               ` Roland Everaert
2014-07-14 18:34                 ` John Hendy
2014-07-15 20:30                 ` Sean O'Halpin
2014-07-17  9:06                   ` Roland Everaert
2014-07-17 13:06                     ` Roland Everaert
2014-07-17 13:15                     ` Nick Dokos [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=87y4vsqg7o.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.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).