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=\203 \311 !\204R\nSf\312>\203|\neX\203$\313\202~\306\nS\314\"\211\315=\2035\316\202x\f\317=\204C\nSf\320=\203H\321\202x\f\203Q\313\202x \203\\\n)W\202`\n*W\203v\316\nS+\322+\211T\314\315$\210)\202x\313)\202~\323,\205\206\313=-\324\n.#\211/\203R/\325=\203\241`.\202M \203\262`)V\203\274`)\202\274`*V\203\274`*/@b\210\203\nSf\326=\205\212\nSb\210\327 \210\330\331!\332W\2040\333=\205`1\334\323x\332W\203\n\335\323x\332W\203\n\3112!\203\n\332\2251Y\203\n\336\2021b\210\323)\205\3113!)\202\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\2605\344=\203\200\3226\2117@@)6\2117@A)\3078$\210\202\2545\345=\203\237\3226\2117@@)6\2117@A)\307\310$\210\202\2545\346=\203\254\347\3506\"\210\3236\336\207" [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) 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-backward-sws skip-syntax-backward "w_" 0 pike-mode "-!%&*+/<=>^|~[]()" "`" t c-decl-type-start c-decl-id-start c-font-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" [kwd put-text-property face font-lock-keyword-face] 5] max-type-decl-end-before-token max-type-decl-end -pos- c-recognize-<>-arglists c-restricted-<>-arglists 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-constant-face font-lock-keyword-face) #[(match-pos inside-macro) "`\306`\307\"\310=\203 \311 !\204R\nSf\312>\203|\neX\203$\313\202~\306\nS\314\"\211\315=\2035\316\202x\f\317=\204C\nSf\320=\203H\321\202x\f\203Q\313\202x \203\\\n)W\202`\n*W\203v\316\nS+\322+\211T\314\315$\210)\202x\313)\202~\323,\205\206\313=-\324\n.#\211/\203R/\325=\203\241`.\202M \203\262`)V\203\274`)\202\274`*V\203\274`*/@b\210\203\nSf\326=\205\212\nSb\210\327 \210\330\331!\332W\2040\333=\205`1\334\323x\332W\203\n\335\323x\332W\203\n\3112!\203\n\332\2251Y\203\n\336\2021b\210\323)\205\3113!)\202\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\2605\344=\203\200\3226\2117@@)6\2117@A)\3078$\210\202\2545\345=\203\237\3226\2117@@)6\2117@A)\307\310$\210\202\2545\346=\203\254\347\3506\"\210\3236\336\207" [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) 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-backward-sws skip-syntax-backward "w_" 0 pike-mode "-!%&*+/<=>^|~[]()" "`" t c-decl-type-start c-decl-id-start c-font-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" [kwd put-text-property face font-lock-keyword-face] 5] max-type-decl-end-before-token max-type-decl-end -pos- c-recognize-<>-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-match-data-internal verbose font-lock-fontified match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) font-lock-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.junit.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 sh\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.jar\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) _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode