emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit)
@ 2013-03-19 23:41 John Hendy
  2013-03-19 23:48 ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: John Hendy @ 2013-03-19 23:41 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit)
  2013-03-19 23:41 Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit) John Hendy
@ 2013-03-19 23:48 ` Bastien
  2013-03-19 23:50   ` John Hendy
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2013-03-19 23:48 UTC (permalink / raw)
  To: John Hendy; +Cc: emacs-orgmode

Hi John,

how did you "pull"?  by using git pull or make update?  

Also, after pulling, did you run on of these?

~$ make 
~$ make autoloads

I miss the simplicity of having Org up and running after
a simple pull...

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit)
  2013-03-19 23:48 ` Bastien
@ 2013-03-19 23:50   ` John Hendy
  2013-03-19 23:59     ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: John Hendy @ 2013-03-19 23:50 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

On Tue, Mar 19, 2013 at 6:48 PM, Bastien <bzg@altern.org> wrote:
> Hi John,
>
> how did you "pull"?  by using git pull or make update?

- git pull
- make clean && make && make doc

I'm kind of glad you asked, as this used to (I think) be the "right"
method, but I have a vague notion that there's some built-in-org way
now?

I don't install to anywhere, so I'm only interested in compiling and
loading right from the git repo vs. scattering files all over.

All ears to documentation about a proper way, if there is one that's
now recommended.

>
> Also, after pulling, did you run on of these?
>
> ~$ make
> ~$ make autoloads
>
> I miss the simplicity of having Org up and running after
> a simple pull...
>
> --
>  Bastien

John

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit)
  2013-03-19 23:50   ` John Hendy
@ 2013-03-19 23:59     ` Bastien
  2013-03-20 15:16       ` John Hendy
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2013-03-19 23:59 UTC (permalink / raw)
  To: John Hendy; +Cc: emacs-orgmode

John Hendy <jw.hendy@gmail.com> writes:

> On Tue, Mar 19, 2013 at 6:48 PM, Bastien <bzg@altern.org> wrote:
>> Hi John,
>>
>> how did you "pull"?  by using git pull or make update?
>
> - git pull
> - make clean && make && make doc
>
> I'm kind of glad you asked, as this used to (I think) be the "right"
> method, but I have a vague notion that there's some built-in-org way
> now?

~$ make update 

will pull and make for you...

~$ make help
~$ make helpall 

are useful too.

> I don't install to anywhere, so I'm only interested in compiling and
> loading right from the git repo vs. scattering files all over.
>
> All ears to documentation about a proper way, if there is one that's
> now recommended.

I'd recommend ~$ make update

Oh, btw, I fixed the problem in master, was my fault, not the
installation fault... thanks for reporting this!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit)
  2013-03-19 23:59     ` Bastien
@ 2013-03-20 15:16       ` John Hendy
  2013-03-21  8:37         ` Achim Gratz
  0 siblings, 1 reply; 6+ messages in thread
From: John Hendy @ 2013-03-20 15:16 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

On Tue, Mar 19, 2013 at 6:59 PM, Bastien <bzg@altern.org> wrote:
> John Hendy <jw.hendy@gmail.com> writes:
>
>> On Tue, Mar 19, 2013 at 6:48 PM, Bastien <bzg@altern.org> wrote:
>>> Hi John,
>>>
>>> how did you "pull"?  by using git pull or make update?
>>
>> - git pull
>> - make clean && make && make doc
>>
>> I'm kind of glad you asked, as this used to (I think) be the "right"
>> method, but I have a vague notion that there's some built-in-org way
>> now?
>
> ~$ make update
>
> will pull and make for you...
>
> ~$ make help
> ~$ make helpall
>
> are useful too.

Awesome. Thanks for that -- didn't realize it would give org-specific info!

From the descriptions, I don't understand the difference between:
- make                - build Org ELisp and all documentation
- make autoloads      - create org-loaddefs.el to load Org in-place

Is =make= *also* making autoloads, and =make autoloads= is *only*
making the autoload files? Nevermind. Just did make and saw a whir of
"making autoloads" float across the screen.

At the very least, I learned that I don't have to explicitly do =make
doc= if I'm doing make :)

>
>> I don't install to anywhere, so I'm only interested in compiling and
>> loading right from the git repo vs. scattering files all over.
>>
>> All ears to documentation about a proper way, if there is one that's
>> now recommended.
>
> I'd recommend ~$ make update
>
> Oh, btw, I fixed the problem in master, was my fault, not the
> installation fault... thanks for reporting this!

Pull and re-make confirms the fix.

Thanks!
John

>
> --
>  Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit)
  2013-03-20 15:16       ` John Hendy
@ 2013-03-21  8:37         ` Achim Gratz
  0 siblings, 0 replies; 6+ messages in thread
From: Achim Gratz @ 2013-03-21  8:37 UTC (permalink / raw)
  To: emacs-orgmode

Am 20.03.2013 16:16, schrieb John Hendy:
>  From the descriptions, I don't understand the difference between:
> - make                - build Org ELisp and all documentation
> - make autoloads      - create org-loaddefs.el to load Org in-place
>
> Is =make= *also* making autoloads, and =make autoloads= is *only*
> making the autoload files?

Yes.

To be more precise, plain "make" does whatever is defined as the default 
target.  Unless you do something about it (and you probably should so 
you can be lazy and have plain "make" do whatever you usually want to be 
done), this is equivalent to "make oldorg".


Regards,
-- 
Achim.

(on the road :-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-21  8:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-19 23:41 Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit) John Hendy
2013-03-19 23:48 ` 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

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).