I've just installed the latest version of Orgmode (20170515) from the package list of elpa (M-x package-list-packages
, marked I
then x
).
Now, when I try to export an *.org file to a *.pdf by either pressing C-c C-e
or via Org menu, I get an error msg that says:
Symbol's function definition is void: org-define-error
What does it mean? How do I get the export buffer back? (I'm trying to export an org file to pdf via tex)
I'm on Windows 7 and I think I previously had Org 8.0 (can't remember...).
Can someone kindly please help me?
EDIT
Today, the command C-c C-e
now displays the buffer for export options (a set of keyboard combos to export in pdf or HTML) BUT when I select l o
I get this msg:
org-get-limited-outline-regexp: Variable binding depth exceeds max-specpdl-size
Anyone knows what this means? And how do I fix it?
EDIT 2
I added these lines to my .emacs file and told emacs to 'Evaluate the buffer'.
(setq max-specpdl-size 5) ; default is 1000, reduce the backtrace level
(setq debug-on-error t) ; now you should get a backtrace
This is the response:
Debugger entered--Lisp error: (void-variable speedbar)
eval(speedbar nil)
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)
I've purposely omitted typing in C-h a
as this was causing some other kind of error:
Debugger entered--Lisp error: (void-variable C-h)
eval-buffer() ; Reading at buffer position 840
call-interactively(eval-buffer nil nil)
command-execute(eval-buffer)
UPDATE 3
On Nick's suggestion I changed those line in my .emacs file. Now it looks like this:
(setq max-specpdl-size 5000) ; default is 1000, reduce the backtrace level
(setq debug-on-error t) ; now you should get a backtrace
;;C-h a
And this is what the buffer says following another attempt to export from org to pdf: (this is after recompiling all elpa installed pkgs)
emacs -Q
(see stackoverflow.com/questions/24725778/…)M-:
then typed in(byte-recompile-directory package-user-dir nil 'force)
. Some error came up but I proceeded to restart emacs. Next, I tried to export an existing org file but theVariable binding depth
issue came up again. Please see the latest Update 3 above, in the OP.Problems while trying to load feature "org-rmail"
(I suppose it's an email service? Anyways, I usually don't use it).(defun package-reinstall-activated () "Reinstall all activated packages." (interactive) (dolist (package-name package-activated-list) (when (package-installed-p package-name) (unless (ignore-errors ;some packages may fail to install (package-reinstall package-name) (warn "Package %s failed to reinstall" package-name))))))
I'm still not sure what went wrong or how to fix a similar problem next time...