From: Robert Lupton the Good <rhl@astro.princeton.edu>
To: emacs-orgmode@gnu.org
Subject: lisp error: "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C"
Date: Mon, 19 Dec 2011 13:55:18 -0500 [thread overview]
Message-ID: <4DE1D190-A9AC-41D4-80E4-97C773BD35ED@astro.princeton.edu> (raw)
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)
next reply other threads:[~2011-12-19 18:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-19 18:55 Robert Lupton the Good [this message]
2011-12-19 22:29 ` lisp error: "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C" Nick Dokos
2011-12-23 16:41 ` Bastien
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=4DE1D190-A9AC-41D4-80E4-97C773BD35ED@astro.princeton.edu \
--to=rhl@astro.princeton.edu \
--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).