From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Lupton the Good Subject: lisp error: "unbalanced begin/end_src blocks with #(\"#+BEGIN_SRC C" Date: Mon, 19 Dec 2011 13:55:18 -0500 Message-ID: <4DE1D190-A9AC-41D4-80E4-97C773BD35ED@astro.princeton.edu> Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RciMt-0005U7-Rf for emacs-orgmode@gnu.org; Mon, 19 Dec 2011 13:55:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RciMp-0008RK-UN for emacs-orgmode@gnu.org; Mon, 19 Dec 2011 13:55:23 -0500 Received: from kay.astro.princeton.edu ([128.112.24.221]:50543 helo=mail.astro.princeton.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RciMp-0008RD-RK for emacs-orgmode@gnu.org; Mon, 19 Dec 2011 13:55:19 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.astro.princeton.edu (Postfix) with ESMTP id DE5621BC00958 for ; Mon, 19 Dec 2011 13:55:18 -0500 (EST) Received: from mail.astro.princeton.edu ([127.0.0.1]) by localhost (kay.astro.princeton.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wyNXGp3FdFlE for ; Mon, 19 Dec 2011 13:55:18 -0500 (EST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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. 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=18=19=1A=1B=1C= =1D=1E+=1E,=1E-=1E.=1E/=1E0\310\311!\211=1E1\205)=00\311K=1E2\312\216\311\= 313M\210eb\210`=15\314=1E3\315=0E3\307\306#\203X=01\316\317\224!=1E4\316\3= 17\225!=1E5\320\321!G=1E-\322\323\324\320\325!\227!\"=1E6\326\320\325!\227= !=1E,\327 = =1E7\330\216\331\320\332!\333\"*=1A\321=1E8=0E9\206\200=00\334\n\235=19\30= 7=1E:\335=0E8!\204\255=00\315=0E6\307\306#\203\255=00\320\321!\227\336\230= \203\245=00=0E8S=168\202\204=00=0E8T=168\202\204=00\335=0E8!\204\276=00\33= 7\340=0E,=0E4`{#\210\316\317\225!=16: \204\327=00\327 = =1E7\341\216\342=0E5\317\224{!*=13=0E,=0E/>\204\346=00=0E,=0E/B=16/\327 = =1E7\343\216\311 =0E4\"\210*\344=0E,=0E;\"\211=1E\203=17=01\346\202=1D=01\347=0E+=0B= \n#*\211=1E>\203>=01=0E4=0E:|\210=0E4b\210=0E>c\210 = \204>=01\350=0E4`=0E-#\210)=0E4\307\211\223\210=0E5\307\211\223\210=0E:\30= 7\211\223\210. `=15\2029=00)\311 d\"\210\351\352!.=0F\207" [progress-marker preserve-indent headers body = end start t nil fboundp interblock ((byte-code "=08\203=0B=00\302 = M\210\202=0F=00\303\302!\210\302\207" [--cl-letf-bound-- = --cl-letf-save-- interblock fmakunbound] 2)) #[(start end) = "\301\302=08\"\207" [org-export-interblocks mapcar #[(pair) "=08\211=19A@)= \n=0B\"\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=08\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=08\302\"\207" = [save-match-data-internal set-match-data evaporate] 3)) = org-remove-indentation ((byte-code "\301=08\302\"\207" = [save-match-data-internal set-match-data evaporate] 3)) assoc = ((byte-code "\301=08\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 =3D 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)