mode emacs won't export

I admit I'm a total emacs and org-mode newbie. It worked great for me, but suddenly I'm having the following problem.

Say I open a file test.org with emacs

$ emacs test.org

The file contains:

* one
* two
** a
** b

When I try to export with Cx Ce I get the following error message:

Debugger entered--Lisp error: (void-variable b)
  eval(b nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)

I just found out about org-mode and was immediately ecstatic about it. Within minutes I could refactor my plain text notes for org-mode, including math formulas and export them to latex and from there pdf. I used Cx Ce o as explained here: http://orgmode.org/manual/LaTeX_002fPDF-export-commands.html

This worked great on both the GNU Emacs 23.3.1 that I have on my Mac OS X Terminal as well as with the newest Emacs release 24.1 which I had installed as a standalone .app

Unfortunately this didn't last very long and I got the error message described above, even for the most simple org files. What strikes me, that both installations of emacs started having this problem at the same time. I even deleted my, slightly modified, .emacs file in the home directory but that didn't help either.

It seems like emacs always fails wie evaluating the last line. If I delete it

* one
* two
** a

The error message is:

Debugger entered--Lisp error: (void-variable a)
  eval(a)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)

Any help is very much appreciated! I very much like org-mode and would love to learn el. However, at the moment I don't even know how to write more than two lines of LISP. Googling for this error message leaded to descriptions of problems that seemed to be totally unrelated.


Use Cc Ce h (you indicate you are pressing Cx Ce) to export to HTML and Cc Ce p to export to PDF. If you are using a menu bar, take a look under the "Org" menu, item "Export/Publish...(Cc Ce)"

(Cx Ce evaluates an elisp expression...those error messages are complaining about evaluation of **a and **b as elisp expressions...)


You can also use Mx and invoke the output method for the buffer using the interactive function name that matches the style you want, eg

M-x org-export-as-html
M-x org-export-as-pdf
M-x org-export-as-latex

etc. Use tab to auto-complete the names. You may find this method simpler to remember while still learning your way around org-mode.

链接地址: http://www.djcxy.com/p/30634.html

上一篇: 我如何“链接”一个非

下一篇: 模式emacs不会导出