* lisp error: "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C"
@ 2011-12-19 18:55 Robert Lupton the Good
2011-12-19 22:29 ` Nick Dokos
2011-12-23 16:41 ` Bastien
0 siblings, 2 replies; 3+ messages in thread
From: Robert Lupton the Good @ 2011-12-19 18:55 UTC (permalink / raw
To: emacs-orgmode
Running org-export-as-latex on:
> #+STARTUP: beamer
> #+LaTeX_CLASS: beamer
>
> #+BEGIN_SRC C
> double tmp0 = yp[0];
> #+END_SRC
generates the following traceback. Adding a "* foo" line above the BEGIN_SRC avoids the problem.
Using org-mode from git; SHA1 0c09a9e7683c79c8525f87ccd1b7ba0255a94b1c
R
Debugger entered--Lisp error: (error "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C
\" 0 11 (fontified nil font-lock-fontified t org-category \"bug\") 11 13 (fontified nil font-lock-fontified t org-category \"bug\") 13 14 (fontified nil font-lock-fontified t org-category \"bug\"))")
signal(error ("unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C\n\" 0 11 (fontified nil font-lock-fontified t org-category \"bug\") 11 13 (fontified nil font-lock-fontified t org-category \"bug\") 13 14 (fontified nil font-lock-fontified t org-category \"bug\"))"))
error("unbalanced begin/end_%s blocks with %S" src #("#+BEGIN_SRC C\n" 0 11 (fontified nil font-lock-fontified t org-category "bug") 11 13 (fontified nil font-lock-fontified t org-category "bug") 13 14 (fontified nil font-lock-fontified t org-category "bug")))
byte-code("\306\307\211\211\211\211\211\211\211\211\211\211\x18\x19\x1a^[\x1c\x1d\x1e+\x1e,\x1e-\x1e.\x1e/\x1e0\310\311!\211\x1e1\205)\0\311K\x1e2\312\216\311\313M\210eb\210`\x15\314\x1e3\315\x0e3\307\306#\203X\x01\316\317\224!\x1e4\316\317\225!\x1e5\320\321!G\x1e-\322\323\324\320\325!\227!\"\x1e6\326\320\325!\227!\x1e,\327 \x1e7\330\216\331\320\332!\333\"*\x1a\321\x1e8\x0e9\206\200\0\334\n\235\x19\307\x1e:\335\x0e8!\204\255\0\315\x0e6\307\306#\203\255\0\320\321!\227\336\230\203\245\0\x0e8S\x168\202\204\0\x0e8T\x168\202\204\0\335\x0e8!\204\276\0\337\340\x0e,\x0e4`{#\210\316\317\225!\x16: \204\327\0\327 \x1e7\341\216\342\x0e5\317\224{!*\x13\x0e,\x0e/>\204\346\0\x0e,\x0e/B\x16/\327 \x1e7\343\216\311
\x0e4\"\210*\344\x0e,\x0e;\"\211\x1e<A@)\211\x16+\203?\x01\327 \x1e7\345\216\x0e,\x0e=>\203\x17\x01\346\202\x1d\x01\347\x0e+\v\n#*\211\x1e>\203>\x01\x0e4\x0e:|\210\x0e4b\210\x0e>c\210 \204>\x01\350\x0e4`\x0e-#\210)\x0e4\307\211\223\210\x0e5\307\211\223\210\x0e:\307\211\223\210. `\x15\2029\0)\311
d\"\210\351\352!.\x0f\207" [progress-marker preserve-indent headers body end start t nil fboundp interblock ((byte-code "\b\203\v\0\302 M\210\202\x0f\0\303\302!\210\302\207" [--cl-letf-bound-- --cl-letf-save-- interblock fmakunbound] 2)) #[(start end) "\301\302\b\"\207" [org-export-interblocks mapcar #[(pair) "\b\211\x19A@)\n\v\"\207" [pair x start end] 4]] 3] "^\\([ ]*\\)#\\+begin_\\(\\S-+\\)[ ]*\\(.*\\)?[
\n]" re-search-forward copy-marker 0 match-string 1 format "[
\n][ ]*#\\+\\(begin\\|end\\)_%s" regexp-quote 2 intern match-data ((byte-code "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-split-string 3 "[ ]+" "-i" zerop "end" error "unbalanced begin/end_%s blocks with %S" ((byte-code "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) org-remove-indentation ((byte-code "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) assoc ((byte-code "\301\b\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) "" apply indent-code-rigidly run-hooks org-export-blocks-postblock-hook func type indentation matched types case-fold-search --cl-letf-bound-- ...] 13)
org-export-blocks-preprocess()
org-export-preprocess-string(#("#+STARTUP: beamer\n#+LaTeX_CLASS: beamer\n\n#+BEGIN_SRC C\ndouble tmp0 = yp[0];\n#+END_SRC\n" 0 17 (fontified nil font-lock-fontified t org-category "bug") 17 18 (fontified nil font-lock-fontified t org-category "bug") 18 39 (fontified nil font-lock-fontified t org-category "bug") 39 40 (fontified nil font-lock-fontified t org-category "bug") 40 41 (fontified nil org-category "bug" :org-license-to-kill t) 41 52 (fontified nil font-lock-fontified t org-category "bug") 52 54 (fontified nil font-lock-fontified t org-category "bug") 54 55 (fontified nil font-lock-fontified t org-category "bug") 55 71 (fontified nil font-lock-fontified t org-category "bug" :org-license-to-kill t) 71 75 (fontified nil font-lock-fontified t org-category "bug" :org-license-to-kill t) 75 76 (fontified nil font-lock-fontified t org-category "bug" :org-license-to-kill t) 76 85 (fontified nil font-lock-fontified t org-category "bug") 85 86 (fontified nil org-category "bug")) :emph-multiline t :for-backend latex :comments nil :tags nil :priority nil :footnotes t :drawers nil :timestamps t :todo-keywords t :tasks t :add-text nil :skip-before-1st-heading nil :select-tags ("export") :exclude-tags ("noexport") :LaTeX-fragments nil)
org-export-as-latex(nil)
call-interactively(org-export-as-latex)
org-export(nil)
call-interactively(org-export nil nil)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: lisp error: "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C"
2011-12-19 18:55 lisp error: "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C" Robert Lupton the Good
@ 2011-12-19 22:29 ` Nick Dokos
2011-12-23 16:41 ` Bastien
1 sibling, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2011-12-19 22:29 UTC (permalink / raw
To: Robert Lupton the Good; +Cc: nicholas.dokos, emacs-orgmode
Robert Lupton the Good <rhl@astro.princeton.edu> wrote:
> Running org-export-as-latex on:
> > #+STARTUP: beamer
> > #+LaTeX_CLASS: beamer
> >=20
> > #+BEGIN_SRC C
> > double tmp0 =3D yp[0];
> > #+END_SRC
>
> generates the following traceback. Adding a "* foo" line above the =
> BEGIN_SRC avoids the problem.
>
Yup - Robert Goldman ran into this too a couple of weeks ago - see the thread at
http://thread.gmane.org/gmane.emacs.orgmode/50134
No resolution yet afaik: I'm sure Bastien would welcome a well-crafted
patch though.
Nick
> Using org-mode from git; SHA1 0c09a9e7683c79c8525f87ccd1b7ba0255a94b1c
>
> R
>
> Debugger entered--Lisp error: (error "unbalanced begin/end_src blocks =
> with #(\"#+BEGIN_SRC C
> \" 0 11 (fontified nil font-lock-fontified t org-category \"bug\") 11 13 =
> (fontified nil font-lock-fontified t org-category \"bug\") 13 14 =
> (fontified nil font-lock-fontified t org-category \"bug\"))")
> signal(error ("unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC =
> C\n\" 0 11 (fontified nil font-lock-fontified t org-category \"bug\") 11 =
> 13 (fontified nil font-lock-fontified t org-category \"bug\") 13 14 =
> (fontified nil font-lock-fontified t org-category \"bug\"))"))
> error("unbalanced begin/end_%s blocks with %S" src #("#+BEGIN_SRC C\n" =
> 0 11 (fontified nil font-lock-fontified t org-category "bug") 11 13 =
> (fontified nil font-lock-fontified t org-category "bug") 13 14 =
> (fontified nil font-lock-fontified t org-category "bug")))
> =
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: lisp error: "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C"
2011-12-19 18:55 lisp error: "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C" Robert Lupton the Good
2011-12-19 22:29 ` Nick Dokos
@ 2011-12-23 16:41 ` Bastien
1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2011-12-23 16:41 UTC (permalink / raw
To: Robert Lupton the Good; +Cc: emacs-orgmode
Hi Robert,
Robert Lupton the Good <rhl@astro.princeton.edu> writes:
> generates the following traceback. Adding a "* foo" line above the
> BEGIN_SRC avoids the problem.
This should be fixed now.
Thanks for reporting this,
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-23 16:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-19 18:55 lisp error: "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C" Robert Lupton the Good
2011-12-19 22:29 ` Nick Dokos
2011-12-23 16:41 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.