From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Crotti Subject: Exporting to html Date: Wed, 09 Feb 2011 10:53:33 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=40146 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pn6kG-0008M2-UR for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 04:53:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pn6kF-0006og-EW for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 04:53:56 -0500 Received: from lo.gmane.org ([80.91.229.12]:47002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pn6kF-0006oV-4p for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 04:53:55 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pn6kC-0006dR-7x for emacs-orgmode@gnu.org; Wed, 09 Feb 2011 10:53:52 +0100 Received: from ip1-201.halifax.rwth-aachen.de ([137.226.108.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Feb 2011 10:53:52 +0100 Received: from andrea.crotti.0 by ip1-201.halifax.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Feb 2011 10:53:52 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I have a quite huge file with a lot of code blocks in many possible languages. Now the problem is that I'm not able to export it to html/pdf. Some other times it happened that pdf export was not working, but it was quite easy to spot the mistake and fix it. But with html export I'm not understanding where is the error, since I don't get the line... The funny thing is that the 2 lines that I can see downthere from the debugger ("import static..." and "..jython..") are now *deleted* from the buffer. So where are they still coming from? (I also deleted the previously created html file). Maybe it would be useful to have some system to spot easily the line that causes trouble during exportation, and even better would be to see it visually in the org-buffer if something could cause troubles... Here below the backtrace.. Thanks! Debugger entered--Lisp error: (args-out-of-range 137 150) put-text-property(137 150 face font-lock-type-face) c-fontify-recorded-types-and-refs() #[(match-pos inside-macro) "`\306`\307\"\310=3D\203=00\311 !\204R\nSf\312= >\203|\neX\203$\313\202~\306\nS\314\"\211\315=3D\2035\316\202x\f\317=3D\204= C\nSf\320=3D\203H\321\202x\f\203Q\313\202x=0D\203\\\n)W\202`\n*W\203v\316\n= S+\322+\211T\314\315$\210)\202x\313)\202~\323=0E,\205\206=0B\313=3D-\324\n= =0B.#\211/\203R=0E/\325=3D\203\241`.\202M=0D\203\262`)V\203\274`)\202\274`*= V\203\274`*/@b\210=0B\203=01\nSf\326=3D\205=01\212\nSb\210\327 \210\330\331= !\332W\204=010\333=3D\205=01`1\334\323x\332W\203\n\335\323x\332W\203\n\3112= !\203\n\332\2251Y\203\n\336\202=011b\210\323)\205=01\3113!)\202=01\336\2114= \203C\212\327 \210o\204B`S+\322+\211T\314/A\203>\337\202?\340$\210))\341d4/= A#\210)\342 \210\323\207b\210\343\336\n\323#\2115\205\260=0E5\344=3D\203\2= 00\3226\2117@@)6\2117@A)\3078$\210\202\254=0E5\345=3D\203\237\3226\2117@@)6= \2117@A)\307\310$\210\202\254=0E5\346=3D\203\254\347\3506\"\210\3236\336\20= 7" [start-pos c-not-decl-init-keywords match-pos context type inside-macro = get-text-property face font-lock-keyword-face looking-at (40 44 91 60) argl= ist c-type c-decl-arg-start decl c-<>-arg-sep 60 <> put-text-property nil c= -forward-decl-or-cast-1 cast 40 c-backward-sws skip-syntax-backward "w_" 0 = pike-mode "-!%&*+/<=3D>^|~[]()" "`" t c-decl-type-start c-decl-id-start c-f= ont-lock-declarators c-fontify-recorded-types-and-refs c-forward-label goto= -target qt-1kwd-colon qt-2kwds-colon mapc #[... "\301@A\302\303$\207" [kw= d put-text-property face font-lock-keyword-face] 5] max-type-decl-end-befor= e-token max-type-decl-end -pos- c-recognize-<>-arglists c-restricted-<>-arg= lists last-cast-end decl-or-cast c-buffer-is-cc-mode pos ...] 6](0 nil) c-find-decl-spots(36 "[[:alpha:]_]" (nil font-lock-type-face font-lock-co= nstant-face font-lock-keyword-face) #[(match-pos inside-macro) "`\306`\307\= "\310=3D\203=00\311 !\204R\nSf\312>\203|\neX\203$\313\202~\306\nS\314\"\211= \315=3D\2035\316\202x\f\317=3D\204C\nSf\320=3D\203H\321\202x\f\203Q\313\202= x=0D\203\\\n)W\202`\n*W\203v\316\nS+\322+\211T\314\315$\210)\202x\313)\202~= \323=0E,\205\206=0B\313=3D-\324\n=0B.#\211/\203R=0E/\325=3D\203\241`.\202M= =0D\203\262`)V\203\274`)\202\274`*V\203\274`*/@b\210=0B\203=01\nSf\326=3D\2= 05=01\212\nSb\210\327 \210\330\331!\332W\204=010\333=3D\205=01`1\334\323x\3= 32W\203\n\335\323x\332W\203\n\3112!\203\n\332\2251Y\203\n\336\202=011b\210\= 323)\205=01\3113!)\202=01\336\2114\203C\212\327 \210o\204B`S+\322+\211T\314= /A\203>\337\202?\340$\210))\341d4/A#\210)\342 \210\323\207b\210\343\336\n\= 323#\2115\205\260=0E5\344=3D\203\200\3226\2117@@)6\2117@A)\3078$\210\202\25= 4=0E5\345=3D\203\237\3226\2117@@)6\2117@A)\307\310$\210\202\254=0E5\346=3D\= 203\254\347\3506\"\210\3236\336\207" [start-pos c-not-decl-init-keywords ma= tch-pos context type inside-macro get-text-property face font-lock-keyword-= face looking-at (40 44 91 60) arglist c-type c-decl-arg-start decl c-<>-arg= -sep 60 <> put-text-property nil c-forward-decl-or-cast-1 cast 40 c-backwar= d-sws skip-syntax-backward "w_" 0 pike-mode "-!%&*+/<=3D>^|~[]()" "`" t c-d= ecl-type-start c-decl-id-start c-font-lock-declarators c-fontify-recorded-t= ypes-and-refs c-forward-label goto-target qt-1kwd-colon qt-2kwds-colon mapc= #[... "\301@A\302\303$\207" [kwd put-text-property face font-lock-keywor= d-face] 5] max-type-decl-end-before-token max-type-decl-end -pos- c-recogni= ze-<>-arglists c-restricted-<>-arglists last-cast-end decl-or-cast c-buffer= -is-cc-mode pos ...] 6]) c-font-lock-declarations(36) font-lock-fontify-keywords-region(1 36 t) font-lock-default-fontify-region(1 36 t) font-lock-fontify-region(1 36 t) byte-code("\212\303 \304\216\305ed #\210\306 \210\307\211+\207" [save-mat= ch-data-internal verbose font-lock-fontified match-data ((byte-code "\301\= 302\"\207" [save-match-data-internal set-match-data evaporate] 3)) font-loc= k-fontify-region font-lock-after-fontify-buffer t] 4) font-lock-default-fontify-buffer() font-lock-fontify-buffer() org-export-format-source-code-or-example(html "java" "import static org.j= unit.Assert.*;\n\n" " " 0 nil) org-export-replace-src-segments-and-examples(html) org-export-preprocess-string(#("* Jython\n** Set up jython\n#+begin_src s= h\n wget http://netcologne.dl.sourceforge.net/project/jython/jython-dev/2.= 5.2b1/jython_installer-2.5.2b1.jar\n java -jar jython_installer-2.5.2b1.ja= r\n wget org-export-as-html(nil hidden) org-export-as-html-and-open(nil) call-interactively(org-export-as-html-and-open) org-export(nil) call-interactively(org-export nil nil)