From: John Hendy <jw.hendy@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit)
Date: Tue, 19 Mar 2013 18:41:06 -0500 [thread overview]
Message-ID: <CA+M2ft8xvPv8Rqyzv765PUvB+FkFXDXZjS9rxcsoYwRz1TS8cg@mail.gmail.com> (raw)
I haven't changed my setup since getting the new exporter up and going
after pulling yesterday. Here's the problem section:
#+begin_src emacs-lisp
(require 'ox-latex)
(require 'ox-html)
;;(require 'ox-beamer)
;;(require 'ox-md)
(require 'ox-odt)
(require 'ox-taskjuggler)
(add-to-list 'org-latex-classes
'("beamer"
"\\documentclass\[presentation\]\{beamer\}"
("\\section\{%s\}" . "\\section*\{%s\}")
("\\subsection\{%s\}" . "\\subsection*\{%s\}")
("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
(setq org-latex-tables-booktabs t)
#+end_src
If I uncomment requiring either ox-beamer or ox-md, I get this error:
#+begin_src error
Warning (initialization): An error occurred while loading
`/home/jwhendy/.emacs':
Wrong type argument: symbolp, ((TEX . org-element-export-block-parser)
(LATEX . org-element-export-block-parser) (HTML .
org-element-export-block-parser) (ASCII .
org-element-export-block-parser) (CENTER .
org-element-center-block-parser) (COMMENT .
org-element-comment-block-parser) (EXAMPLE .
org-element-example-block-parser) (QUOTE .
org-element-quote-block-parser) (SRC . org-element-src-block-parser)
(VERSE . org-element-verse-block-parser))
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
#+end_src
Running `emacs --debug-init` yields (this was with ox-md uncommented;
I could re-run with ox-beamer instead if desired):
#+begin_src debug
Debugger entered--Lisp error: (wrong-type-argument symbolp (("TEX" .
org-element-export-block-parser) ("LATEX" .
org-element-export-block-parser) ("HTML" .
org-element-export-block-parser) ("ASCII" .
org-element-export-block-parser) ("CENTER" .
org-element-center-block-parser) ("COMMENT" .
org-element-comment-block-parser) ("EXAMPLE" .
org-element-example-block-parser) ("QUOTE" .
org-element-quote-block-parser) ("SRC" . org-element-src-block-parser)
("VERSE" . org-element-verse-block-parser)))
add-to-list((("TEX" . org-element-export-block-parser) ("LATEX" .
org-element-export-block-parser) ("HTML" .
org-element-export-block-parser) ("ASCII" .
org-element-export-block-parser) ("CENTER" .
org-element-center-block-parser) ("COMMENT" .
org-element-comment-block-parser) ("EXAMPLE" .
org-element-example-block-parser) ("QUOTE" .
org-element-quote-block-parser) ("SRC" . org-element-src-block-parser)
("VERSE" . org-element-verse-block-parser)) ("MD" .
org-element-export-block-parser))
#[(name) "\302\b \303B\"\207" [org-element-block-name-alist name
add-to-list org-element-export-block-parser] 4]("MD")
mapc(#[(name) "\302\b \303B\"\207" [org-element-block-name-alist name
add-to-list org-element-export-block-parser] 4] ("MD" "MARKDOWN"))
org-export-define-derived-backend(md html :export-block ("MD"
"MARKDOWN") :filters-alist ((:filter-parse-tree .
org-md-separate-elements)) :menu-entry (109 "Export to Markdown" ((77
"To temporary buffer" (lambda (a s v b) (org-md-export-as-markdown a s
v))) (109 "To file" (lambda (a s v b) (org-md-export-to-markdown a s
v))) (111 "To file and open" (lambda (a s v b) (if a
(org-md-export-to-markdown t s v) (org-open-file
(org-md-export-to-markdown nil s v))))))) :translate-alist ((bold .
org-md-bold) (code . org-md-verbatim) (underline . org-md-verbatim)
(comment lambda (&rest args) "") (comment-block lambda (&rest args)
"") (example-block . org-md-example-block) (fixed-width .
org-md-example-block) (footnote-definition . ignore)
(footnote-reference . ignore) (headline . org-md-headline)
(horizontal-rule . org-md-horizontal-rule) (inline-src-block .
org-md-verbatim) (italic . org-md-italic) (item . org-md-item)
(line-break . org-md-line-break) (link . org-md-link) (paragraph .
org-md-paragraph) (plain-list . org-md-plain-list) (plain-text .
org-md-plain-text) (quote-block . org-md-quote-block) (quote-section .
org-md-example-block) (section . org-md-section) (src-block .
org-md-example-block) (template . org-md-template) (verbatim .
org-md-verbatim)))
require(ox-md)
eval-buffer(#<buffer *load*<2>> nil
"/home/jwhendy/org/aux/emacs-config.el" nil t) ; Reading at buffer
position 281
load-with-code-conversion("/home/jwhendy/org/aux/emacs-config.el"
"/home/jwhendy/org/aux/emacs-config.el" nil nil)
load("/home/jwhendy/org/aux/emacs-config.el" nil nil t)
load-file("~/org/aux/emacs-config.el")
org-babel-load-file("~/org/aux/emacs-config.org")
eval-buffer(#<buffer *load*> nil "/home/jwhendy/.emacs" nil t) ;
Reading at buffer position 520
load-with-code-conversion("/home/jwhendy/.emacs" "/home/jwhendy/.emacs" t t)
load("~/.emacs" t t)
#[0 "\b\205\262
#+end_src
I don't know git very well. If someone can provide a way to view what
commit I was on most recently before today's pull, I can provide that.
From doing `ls -l` in my git repo, it appears I pulled yesterday. I
pulled this afternoon after Bastien announced that =:width Xpx= is now
the format for html export. That appears to be this one:
commit eff59a15d76647ce8282626b9eb463dc3706d56e
Author: Bastien Guerry <bzg@altern.org>
Date: Tue Mar 19 19:35:44 2013 +0100
As one last check, I created a config with *only* the bit pasted above
setting exporter options. I then set my .emacs to load that instead of
my full orgmode file config. Same errors.
Let me know if I can provide further information.
Best regards,
John
next reply other threads:[~2013-03-19 23:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 23:41 John Hendy [this message]
2013-03-19 23:48 ` Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit) Bastien
2013-03-19 23:50 ` John Hendy
2013-03-19 23:59 ` Bastien
2013-03-20 15:16 ` John Hendy
2013-03-21 8:37 ` Achim Gratz
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=CA+M2ft8xvPv8Rqyzv765PUvB+FkFXDXZjS9rxcsoYwRz1TS8cg@mail.gmail.com \
--to=jw.hendy@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).