emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] error running source code? [6.34trans (release_6.34c.6.gcae0.dirty)]
@ 2010-01-20 10:35 "Martin G. Skjæveland"
  2010-01-26  7:07 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: "Martin G. Skjæveland" @ 2010-01-20 10:35 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 3703 bytes --]

Hi,

I pulled a fresh copy of org-mode this morning and got an error I did 
not have before the pull.

When I export the following to pdf

--------------------------------------------------begin
* test

#+begin_src java -n :exports none :tangle test.java
private void abcdefghi throws IOException
#+end_src

#+begin_src sh :results output :exports results
javac -cp "lib/jena/lib/*:lib/pellet/lib/*" test.java
#+end_src
--------------------------------------------------end

the error

   Invalid search bound (wrong side of point)

occurs. The backtrace is attached. Note that I do not get the error when 
reducing the string "abcdefghi" to "abcdefgh".

If I export the document without loading babel, I get no errors.

Let me know if I should do some git bisecting.

Thanks!
Martin

------------

Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
  of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.34trans (release_6.34c.6.gcae0.dirty)

current state:
==============
(setq
  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-after-todo-state-change-hook '(org-clock-out-if-current)
  org-babel-interpreters '("tex" "n3" "xml" "java" "python" "dot" "sh"
			  "emacs-lisp")
  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
  org-export-preprocess-hook '((lambda nil
			       (org-set-local
				(quote org-complex-heading-regexp)
				"^\\(\\*+\\)[ 	]+\\(?:\\(TODO\\|DONE\\)\\>\\)?\\(?:[ 
]*\\(\\[#.\\]\\)\\)?[ 	]*\\(.*?\\)\\(?:[ 
]+\\(:[[:alnum:]_@:]+:\\)\\)?[ 	]*$")
			       )
			      org-export-blocks-preprocess)
  org-tab-first-hook '(org-babel-hide-result-toggle-maybe
		      org-hide-block-toggle-maybe)
  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
  org-confirm-shell-link-function 'yes-or-no-p
  org-export-first-hook '(org-beamer-initialize-open-trackers)
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
		  org-cycle-show-empty-lines
		  org-optimize-window-after-visibility-change)
  org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
  org-export-latex-hyperref-format "\\myhref{%s}{%s}"
  org-use-speed-commands t
  org-mode-hook '((lambda nil
		  (org-add-hook (quote change-major-mode-hook)
		   (quote org-show-block-all) (quote append) (quote local))
		  )
		 (lambda nil
		  (org-add-hook (quote change-major-mode-hook)
		   (quote org-babel-show-result-all) (quote append)
		   (quote local))
		  )
		 org-babel-result-hide-spec org-babel-hide-all-hashes
		 #[nil "\300\301\302\303\304$\207"
		   [org-add-hook change-major-mode-hook org-show-block-all
		    append local]
		   5]
		 )
  org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe 
org-babel-hash-at-point
			  org-babel-execute-src-block-maybe)
  org-confirm-elisp-link-function 'yes-or-no-p
  org-export-interblocks '((lob org-babel-exp-lob-one-liners)
			  (src org-babel-exp-inline-src-blocks))
  org-occur-hook '(org-first-headline-recenter)
  org-from-is-user-regexp "\\<Martin G\\. Skjæveland\\>"
  org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
			       org-beamer-auto-fragile-frames
			       org-beamer-place-default-actions-for-lists)
  org-metadown-hook '(org-babel-pop-to-session-maybe)
  org-export-blocks '((src org-babel-exp-src-blocks nil)
		     (comment org-export-blocks-format-comment t)
		     (ditaa org-export-blocks-format-ditaa nil)
		     (dot org-export-blocks-format-dot nil))
  )

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: backtrace.log --]
[-- Type: text/x-log; name="backtrace.log", Size: 13725 bytes --]

Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)")
  re-search-backward("^[ 	]*#\\+begin_src[ 	]+\\(tex\\|n3\\|xml\\|java\\|python\\|dot\\|sh\\|emacs-lisp\\)[ 	]*\\([^\":\n]*\"[^\"\n*]*\"[^\":\n]*\\|[^\":\n]*\\)\\([^\n]*\\)\n\\([^\0]+?\\)#\\+end_src" 123 t)
  (and (re-search-backward org-babel-src-block-regexp progress-marker t) (setq progress-marker (match-end 0)) (org-babel-exp-do-export (org-babel-get-src-block-info) (quote block)))
  (or (and (re-search-backward org-babel-src-block-regexp progress-marker t) (setq progress-marker ...) (org-babel-exp-do-export ... ...)) (save-excursion (forward-line 0) (and ... ... ...)) (and (re-search-backward org-block-regexp progress-marker t) (setq progress-marker ...) (match-string 0)) (error "Unmatched block [bug in `org-babel-exp-src-blocks']."))
  org-babel-exp-src-blocks(#("javac -cp \"lib/jena/lib/*:lib/pellet/lib/*\" test.java" 0 53 (fontified nil font-lock-fontified t)) #("sh" 0 2 (font-lock-fontified t fontified nil)) #(":results" 0 8 (font-lock-fontified t fontified nil)) #("output" 0 6 (font-lock-fontified t fontified nil)) #(":exports" 0 8 (font-lock-fontified t fontified nil)) #("results" 0 7 (font-lock-fontified t fontified nil)))
  apply(org-babel-exp-src-blocks #("javac -cp \"lib/jena/lib/*:lib/pellet/lib/*\" test.java" 0 53 (fontified nil font-lock-fontified t)) (#("sh" 0 2 (font-lock-fontified t fontified nil)) #(":results" 0 8 (font-lock-fontified t fontified nil)) #("output" 0 6 (font-lock-fontified t fontified nil)) #(":exports" 0 8 (font-lock-fontified t fontified nil)) #("results" 0 7 (font-lock-fontified t fontified nil))))
  (if (memq type org-export-blocks-witheld) "" (apply func body headers))
  (progn (if (memq type org-export-blocks-witheld) "" (apply func body headers)))
  (unwind-protect (progn (if ... "" ...)) (set-match-data save-match-data-internal (quote evaporate)))
  (let ((save-match-data-internal ...)) (unwind-protect (progn ...) (set-match-data save-match-data-internal ...)))
  (save-match-data (if (memq type org-export-blocks-witheld) "" (apply func body headers)))
  (replace-match (save-match-data (if ... "" ...)) t t)
  (progn (replace-match (save-match-data ...) t t) (unless preserve-indent (indent-code-rigidly ... ... indentation)))
  (if (setq func (cadr ...)) (progn (replace-match ... t t) (unless preserve-indent ...)))
  (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\r\n]\\([^\0]*?\\)[\r\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation (length ...)) (setq type (intern ...)) (setq headers (save-match-data ...)) (setq body (match-string 4)) (setq preserve-indent (or org-src-preserve-indentation ...)) (unless preserve-indent (setq body ...)) (unless (memq type types) (setq types ...)) (save-match-data (interblock start ...)) (if (setq func ...) (progn ... ...)) (setq start (match-end 0)))
  (progn (fset (quote interblock) (function* ...)) (goto-char (point-min)) (setq start (point)) (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\r\n]\\([^\0]*?\\)[\r\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... ...) (save-match-data ...) (if ... ...) (setq start ...)) (interblock start (point-max)))
  (unwind-protect (progn (fset ... ...) (goto-char ...) (setq start ...) (while ... ... ... ... ... ... ... ... ... ... ...) (interblock start ...)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
  (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect (progn ... ... ... ... ...) (if --cl-letf-bound-- ... ...)))
  (letf ((... ...)) (goto-char (point-min)) (setq start (point)) (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\r\n]\\([^\0]*?\\)[\r\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... ...) (save-match-data ...) (if ... ...) (setq start ...)) (interblock start (point-max)))
  (letf* ((... ...)) (goto-char (point-min)) (setq start (point)) (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\r\n]\\([^\0]*?\\)[\r\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... ...) (save-match-data ...) (if ... ...) (setq start ...)) (interblock start (point-max)))
  (flet ((interblock ... ...)) (goto-char (point-min)) (setq start (point)) (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\r\n]\\([^\0]*?\\)[\r\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... ...) (save-match-data ...) (if ... ...) (setq start ...)) (interblock start (point-max)))
  (let ((case-fold-search t) (types ...) indentation type func start body headers preserve-indent progress-marker) (flet (...) (goto-char ...) (setq start ...) (while ... ... ... ... ... ... ... ... ... ... ...) (interblock start ...)))
  (save-window-excursion (let (... ... indentation type func start body headers preserve-indent progress-marker) (flet ... ... ... ... ...)))
  org-export-blocks-preprocess()
  run-hooks(org-export-preprocess-hook)
  (save-current-buffer (set-buffer (get-buffer-create " org-mode-tmp")) (erase-buffer) (insert string) (setq case-fold-search t) (let (...) (remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search t) (org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) (org-export-preprocess-apply-macros) (run-hooks (quote org-export-preprocess-after-macros-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-export-replace-src-segments-and-examples backend) (org-export-protect-colon-examples) (when (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq target-alist (org-export-define-heading-targets target-alist)) (org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers) backend) (when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... ... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert ... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist (org-export-handle-invisible-targets target-alist)) (run-hooks (quote org-export-preprocess-before-selecting-backend-code-hook)) (org-export-select-backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks (quote org-export-preprocess-after-blockquote-hook)) (unless (plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq target-alist (org-export-attach-captions-and-attributes backend target-alist)) (org-export-mark-radio-links) (org-export-concatenate-multiline-links) (run-hooks (quote org-export-preprocess-before-normalizing-links-hook)) (org-export-normalize-links) (org-export-target-internal-links target-alist) (when (plist-get parameters :emph-multiline) (org-export-concatenate-multiline-emphasis)) (when org-export-table-remove-special-lines (org-export-remove-special-table-lines)) (run-hooks (quote org-export-preprocess-before-backend-specifics-hook)) (when latexp (require ... nil) (org-export-latex-preprocess parameters)) (when asciip (org-export-ascii-preprocess parameters)) (when htmlp (org-export-html-preprocess parameters)) (when docbookp (require ... nil) (org-export-docbook-preprocess parameters)) ...)
  (with-current-buffer (get-buffer-create " org-mode-tmp") (erase-buffer) (insert string) (setq case-fold-search t) (let (...) (remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search t) (org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) (org-export-preprocess-apply-macros) (run-hooks (quote org-export-preprocess-after-macros-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-export-replace-src-segments-and-examples backend) (org-export-protect-colon-examples) (when (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq target-alist (org-export-define-heading-targets target-alist)) (org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers) backend) (when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... ... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert ... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist (org-export-handle-invisible-targets target-alist)) (run-hooks (quote org-export-preprocess-before-selecting-backend-code-hook)) (org-export-select-backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks (quote org-export-preprocess-after-blockquote-hook)) (unless (plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq target-alist (org-export-attach-captions-and-attributes backend target-alist)) (org-export-mark-radio-links) (org-export-concatenate-multiline-links) (run-hooks (quote org-export-preprocess-before-normalizing-links-hook)) (org-export-normalize-links) (org-export-target-internal-links target-alist) (when (plist-get parameters :emph-multiline) (org-export-concatenate-multiline-emphasis)) (when org-export-table-remove-special-lines (org-export-remove-special-table-lines)) (run-hooks (quote org-export-preprocess-before-backend-specifics-hook)) (when latexp (require ... nil) (org-export-latex-preprocess parameters)) (when asciip (org-export-ascii-preprocess parameters)) (when htmlp (org-export-html-preprocess parameters)) (when docbookp (require ... nil) (org-export-docbook-preprocess parameters)) ...)
  (let* ((htmlp ...) (asciip ...) (latexp ...) (docbookp ...) (backend ...) (archived-trees ...) (inhibit-read-only t) (drawers org-drawers) (outline-regexp "\\*+ ") target-alist rtn) (setq org-export-target-aliases nil) (setq org-export-preferred-target-alist nil) (setq org-export-code-refs nil) (with-current-buffer (get-buffer-create " org-mode-tmp") (erase-buffer) (insert string) (setq case-fold-search t) (let ... ...) (org-export-kill-licensed-text) (let ... ...) (setq case-fold-search t) (org-install-letbind) (run-hooks ...) (org-export-preprocess-apply-macros) (run-hooks ...) (untabify ... ...) (org-export-handle-include-files) (run-hooks ...) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags ... ...) (run-hooks ...) (org-export-replace-src-segments-and-examples backend) (org-export-protect-colon-examples) (when ... ...) (setq target-alist ...) (org-export-remove-or-extract-drawers drawers ... backend) (when ... ... ...) (when ... ... ...) (org-export-remove-headline-metadata parameters) (setq target-alist ...) (run-hooks ...) (org-export-select-backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks ...) (unless ... ...) (setq target-alist ...) (org-export-mark-radio-links) (org-export-concatenate-multiline-links) (run-hooks ...) (org-export-normalize-links) (org-export-target-internal-links target-alist) (when ... ...) (when org-export-table-remove-special-lines ...) (run-hooks ...) (when latexp ... ...) (when asciip ...) (when htmlp ...) (when docbookp ... ...) ...) (kill-buffer " org-mode-tmp") rtn)
  org-export-preprocess-string(#("* test\n\n#+begin_src java -n :exports none :tangle test.java          \nprivate void abcdefghi throws IOException \n#+end_src\n\n#+begin_src sh :results output :exports results\njavac -cp \"lib/jena/lib/*:lib/pellet/lib/*\" test.java\n#+end_src\n" 0 2 (fontified nil) 2 6 (fontified nil) 6 8 (fontified nil) 8 69 (fontified nil font-lock-fontified t) 69 70 (fontified nil font-lock-fontified t) 70 112 (fontified nil font-lock-fontified t) 112 113 (fontified nil font-lock-fontified t) 113 122 (fontified nil font-lock-fontified t) 122 124 (fontified nil) 124 171 (fontified nil font-lock-fontified t) 171 172 (fontified nil font-lock-fontified t) 172 225 (fontified nil font-lock-fontified t) 225 226 (fontified nil font-lock-fontified t) 226 235 (fontified nil font-lock-fontified t) 235 236 (fontified nil)) :emph-multiline t :for-LaTeX t :comments nil :tags not-in-toc :priority nil :footnotes t :drawers nil :timestamps t :todo-keywords t :add-text nil :skip-before-1st-heading nil :select-tags ("export") :exclude-tags ("noexport") :LaTeX-fragments nil)
  org-export-as-latex(nil nil nil nil nil nil)
  org-export-as-pdf(nil)
  org-export-as-pdf-and-open(nil)
  call-interactively(org-export-as-pdf-and-open nil nil)

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [babel] error running source code? [6.34trans (release_6.34c.6.gcae0.dirty)]
  2010-01-20 10:35 [babel] error running source code? [6.34trans (release_6.34c.6.gcae0.dirty)] "Martin G. Skjæveland"
@ 2010-01-26  7:07 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2010-01-26  7:07 UTC (permalink / raw)
  To: Martin G. Skjæveland; +Cc: emacs-orgmode

Hi Martin,

Thanks for reporting this bug.  I just pushed up a fix.

Best -- Eric

"Martin G. Skjæveland" <martige@ifi.uio.no> writes:

> Hi,
>
> I pulled a fresh copy of org-mode this morning and got an error I did
> not have before the pull.
>
> When I export the following to pdf
>
> --------------------------------------------------begin
> * test
>
> #+begin_src java -n :exports none :tangle test.java
> private void abcdefghi throws IOException
> #+end_src
>
> #+begin_src sh :results output :exports results
> javac -cp "lib/jena/lib/*:lib/pellet/lib/*" test.java
> #+end_src
> --------------------------------------------------end
>
> the error
>
>   Invalid search bound (wrong side of point)
>
> occurs. The backtrace is attached. Note that I do not get the error
> when reducing the string "abcdefghi" to "abcdefgh".
>
> If I export the document without loading babel, I get no errors.
>
> Let me know if I should do some git bisecting.
>
> Thanks!
> Martin
>
> ------------
>
> Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
>  of 2009-09-27 on palmer, modified by Debian
> Package: Org-mode version 6.34trans (release_6.34c.6.gcae0.dirty)
>
> current state:
> ==============
> (setq
>  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>  org-metaup-hook '(org-babel-load-in-session-maybe)
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>  org-babel-interpreters '("tex" "n3" "xml" "java" "python" "dot" "sh"
> 			  "emacs-lisp")
>  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>  org-export-preprocess-hook '((lambda nil
> 			       (org-set-local
> 				(quote org-complex-heading-regexp)
> 				"^\\(\\*+\\)[
> ]+\\(?:\\(TODO\\|DONE\\)\\>\\)?\\(?:[ ]*\\(\\[#.\\]\\)\\)?[
> ]*\\(.*?\\)\\(?:[ ]+\\(:[[:alnum:]_@:]+:\\)\\)?[ 	]*$")
> 			       )
> 			      org-export-blocks-preprocess)
>  org-tab-first-hook '(org-babel-hide-result-toggle-maybe
> 		      org-hide-block-toggle-maybe)
>  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
>  org-confirm-shell-link-function 'yes-or-no-p
>  org-export-first-hook '(org-beamer-initialize-open-trackers)
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
> 		  org-cycle-show-empty-lines
> 		  org-optimize-window-after-visibility-change)
>  org-export-preprocess-before-normalizing-links-hook
> (org-remove-file-link-modifiers)
>  org-export-latex-hyperref-format "\\myhref{%s}{%s}"
>  org-use-speed-commands t
>  org-mode-hook '((lambda nil
> 		  (org-add-hook (quote change-major-mode-hook)
> 		   (quote org-show-block-all) (quote append) (quote local))
> 		  )
> 		 (lambda nil
> 		  (org-add-hook (quote change-major-mode-hook)
> 		   (quote org-babel-show-result-all) (quote append)
> 		   (quote local))
> 		  )
> 		 org-babel-result-hide-spec org-babel-hide-all-hashes
> 		 #[nil "\300\301\302\303\304$\207"
> 		   [org-add-hook change-major-mode-hook org-show-block-all
> 		    append local]
> 		   5]
> 		 )
>  org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe
> org-babel-hash-at-point
> 			  org-babel-execute-src-block-maybe)
>  org-confirm-elisp-link-function 'yes-or-no-p
>  org-export-interblocks '((lob org-babel-exp-lob-one-liners)
> 			  (src org-babel-exp-inline-src-blocks))
>  org-occur-hook '(org-first-headline-recenter)
>  org-from-is-user-regexp "\\<Martin G\\. Skjæveland\\>"
>  org-export-preprocess-before-selecting-backend-code-hook
> (org-beamer-select-beamer-code)
>  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
> 			       org-beamer-auto-fragile-frames
> 			       org-beamer-place-default-actions-for-lists)
>  org-metadown-hook '(org-babel-pop-to-session-maybe)
>  org-export-blocks '((src org-babel-exp-src-blocks nil)
> 		     (comment org-export-blocks-format-comment t)
> 		     (ditaa org-export-blocks-format-ditaa nil)
> 		     (dot org-export-blocks-format-dot nil))
>  )
>
> Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)")
>   re-search-backward("^[ 	]*#\\+begin_src[ 	]+\\(tex\\|n3\\|xml\\|java\\|python\\|dot\\|sh\\|emacs-lisp\\)[ 	]*\\([^\":\n]*\"[^\"\n*]*\"[^\":\n]*\\|[^\":\n]*\\)\\([^\n]*\\)\n\\([^]+?\\)#\\+end_src" 123 t)
>   (and (re-search-backward org-babel-src-block-regexp progress-marker t) (setq progress-marker (match-end 0)) (org-babel-exp-do-export (org-babel-get-src-block-info) (quote block)))
>   (or (and (re-search-backward org-babel-src-block-regexp progress-marker t) (setq progress-marker ...) (org-babel-exp-do-export ... ...)) (save-excursion (forward-line 0) (and ... ... ...)) (and (re-search-backward org-block-regexp progress-marker t) (setq progress-marker ...) (match-string 0)) (error "Unmatched block [bug in `org-babel-exp-src-blocks']."))
>   org-babel-exp-src-blocks(#("javac -cp \"lib/jena/lib/*:lib/pellet/lib/*\" test.java" 0 53 (fontified nil font-lock-fontified t)) #("sh" 0 2 (font-lock-fontified t fontified nil)) #(":results" 0 8 (font-lock-fontified t fontified nil)) #("output" 0 6 (font-lock-fontified t fontified nil)) #(":exports" 0 8 (font-lock-fontified t fontified nil)) #("results" 0 7 (font-lock-fontified t fontified nil)))
>   apply(org-babel-exp-src-blocks #("javac -cp \"lib/jena/lib/*:lib/pellet/lib/*\" test.java" 0 53 (fontified nil font-lock-fontified t)) (#("sh" 0 2 (font-lock-fontified t fontified nil)) #(":results" 0 8 (font-lock-fontified t fontified nil)) #("output" 0 6 (font-lock-fontified t fontified nil)) #(":exports" 0 8 (font-lock-fontified t fontified nil)) #("results" 0 7 (font-lock-fontified t fontified nil))))
>   (if (memq type org-export-blocks-witheld) "" (apply func body headers))
>   (progn (if (memq type org-export-blocks-witheld) "" (apply func body headers)))
>   (unwind-protect (progn (if ... "" ...)) (set-match-data save-match-data-internal (quote evaporate)))
>   (let ((save-match-data-internal ...)) (unwind-protect (progn ...) (set-match-data save-match-data-internal ...)))
>   (save-match-data (if (memq type org-export-blocks-witheld) "" (apply func body headers)))
>   (replace-match (save-match-data (if ... "" ...)) t t)
>   (progn (replace-match (save-match-data ...) t t) (unless preserve-indent (indent-code-rigidly ... ... indentation)))
>   (if (setq func (cadr ...)) (progn (replace-match ... t t) (unless preserve-indent ...)))
>   (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\n]\\([^]*?\\)[\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation (length ...)) (setq type (intern ...)) (setq headers (save-match-data ...)) (setq body (match-string 4)) (setq preserve-indent (or org-src-preserve-indentation ...)) (unless preserve-indent (setq body ...)) (unless (memq type types) (setq types ...)) (save-match-data (interblock start ...)) (if (setq func ...) (progn ... ...)) (setq start (match-end 0)))
>   (progn (fset (quote interblock) (function* ...)) (goto-char (point-min)) (setq start (point)) (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\n]\\([^]*?\\)[\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... ...) (save-match-data ...) (if ... ...) (setq start ...)) (interblock start (point-max)))
>   (unwind-protect (progn (fset ... ...) (goto-char ...) (setq start ...) (while ... ... ... ... ... ... ... ... ... ... ...) (interblock start ...)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
>   (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect (progn ... ... ... ... ...) (if --cl-letf-bound-- ... ...)))
>   (letf ((... ...)) (goto-char (point-min)) (setq start (point)) (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\n]\\([^]*?\\)[\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... ...) (save-match-data ...) (if ... ...) (setq start ...)) (interblock start (point-max)))
>   (letf* ((... ...)) (goto-char (point-min)) (setq start (point)) (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\n]\\([^]*?\\)[\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... ...) (save-match-data ...) (if ... ...) (setq start ...)) (interblock start (point-max)))
>   (flet ((interblock ... ...)) (goto-char (point-min)) (setq start (point)) (while (re-search-forward "^\\([ 	]*\\)#\\+begin_\\(\\S-+\\)[ 	]*\\(.*\\)?[\n]\\([^]*?\\)[\n][ 	]*#\\+end_\\S-+.*" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... ...) (save-match-data ...) (if ... ...) (setq start ...)) (interblock start (point-max)))
>   (let ((case-fold-search t) (types ...) indentation type func start body headers preserve-indent progress-marker) (flet (...) (goto-char ...) (setq start ...) (while ... ... ... ... ... ... ... ... ... ... ...) (interblock start ...)))
>   (save-window-excursion (let (... ... indentation type func start body headers preserve-indent progress-marker) (flet ... ... ... ... ...)))
>   org-export-blocks-preprocess()
>   run-hooks(org-export-preprocess-hook)
>   (save-current-buffer (set-buffer (get-buffer-create " org-mode-tmp")) (erase-buffer) (insert string) (setq case-fold-search t) (let (...) (remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search t) (org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) (org-export-preprocess-apply-macros) (run-hooks (quote org-export-preprocess-after-macros-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-export-replace-src-segments-and-examples backend) (org-export-protect-colon-examples) (when (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq target-alist (org-export-define-heading-targets target-alist)) (org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers) backend) (when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... ... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert ... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist (org-export-handle-invisible-targets target-alist)) (run-hooks (quote org-export-preprocess-before-selecting-backend-code-hook)) (org-export-select-backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks (quote org-export-preprocess-after-blockquote-hook)) (unless (plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq target-alist (org-export-attach-captions-and-attributes backend target-alist)) (org-export-mark-radio-links) (org-export-concatenate-multiline-links) (run-hooks (quote org-export-preprocess-before-normalizing-links-hook)) (org-export-normalize-links) (org-export-target-internal-links target-alist) (when (plist-get parameters :emph-multiline) (org-export-concatenate-multiline-emphasis)) (when org-export-table-remove-special-lines (org-export-remove-special-table-lines)) (run-hooks (quote org-export-preprocess-before-backend-specifics-hook)) (when latexp (require ... nil) (org-export-latex-preprocess parameters)) (when asciip (org-export-ascii-preprocess parameters)) (when htmlp (org-export-html-preprocess parameters)) (when docbookp (require ... nil) (org-export-docbook-preprocess parameters)) ...)
>   (with-current-buffer (get-buffer-create " org-mode-tmp") (erase-buffer) (insert string) (setq case-fold-search t) (let (...) (remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search t) (org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) (org-export-preprocess-apply-macros) (run-hooks (quote org-export-preprocess-after-macros-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-export-replace-src-segments-and-examples backend) (org-export-protect-colon-examples) (when (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq target-alist (org-export-define-heading-targets target-alist)) (org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers) backend) (when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... ... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert ... "\n")) (org-export-remove-headline-metadata parameters) (setq target-alist (org-export-handle-invisible-targets target-alist)) (run-hooks (quote org-export-preprocess-before-selecting-backend-code-hook)) (org-export-select-backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks (quote org-export-preprocess-after-blockquote-hook)) (unless (plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq target-alist (org-export-attach-captions-and-attributes backend target-alist)) (org-export-mark-radio-links) (org-export-concatenate-multiline-links) (run-hooks (quote org-export-preprocess-before-normalizing-links-hook)) (org-export-normalize-links) (org-export-target-internal-links target-alist) (when (plist-get parameters :emph-multiline) (org-export-concatenate-multiline-emphasis)) (when org-export-table-remove-special-lines (org-export-remove-special-table-lines)) (run-hooks (quote org-export-preprocess-before-backend-specifics-hook)) (when latexp (require ... nil) (org-export-latex-preprocess parameters)) (when asciip (org-export-ascii-preprocess parameters)) (when htmlp (org-export-html-preprocess parameters)) (when docbookp (require ... nil) (org-export-docbook-preprocess parameters)) ...)
>   (let* ((htmlp ...) (asciip ...) (latexp ...) (docbookp ...) (backend ...) (archived-trees ...) (inhibit-read-only t) (drawers org-drawers) (outline-regexp "\\*+ ") target-alist rtn) (setq org-export-target-aliases nil) (setq org-export-preferred-target-alist nil) (setq org-export-code-refs nil) (with-current-buffer (get-buffer-create " org-mode-tmp") (erase-buffer) (insert string) (setq case-fold-search t) (let ... ...) (org-export-kill-licensed-text) (let ... ...) (setq case-fold-search t) (org-install-letbind) (run-hooks ...) (org-export-preprocess-apply-macros) (run-hooks ...) (untabify ... ...) (org-export-handle-include-files) (run-hooks ...) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags ... ...) (run-hooks ...) (org-export-replace-src-segments-and-examples backend) (org-export-protect-colon-examples) (when ... ...) (setq target-alist ...) (org-export-remove-or-extract-drawers drawers ... backend) (when ... ... ...) (when ... ... ...) (org-export-remove-headline-metadata parameters) (setq target-alist ...) (run-hooks ...) (org-export-select-backend-specific-text backend) (org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks ...) (unless ... ...) (setq target-alist ...) (org-export-mark-radio-links) (org-export-concatenate-multiline-links) (run-hooks ...) (org-export-normalize-links) (org-export-target-internal-links target-alist) (when ... ...) (when org-export-table-remove-special-lines ...) (run-hooks ...) (when latexp ... ...) (when asciip ...) (when htmlp ...) (when docbookp ... ...) ...) (kill-buffer " org-mode-tmp") rtn)
>   org-export-preprocess-string(#("* test\n\n#+begin_src java -n :exports none :tangle test.java          \nprivate void abcdefghi throws IOException \n#+end_src\n\n#+begin_src sh :results output :exports results\njavac -cp \"lib/jena/lib/*:lib/pellet/lib/*\" test.java\n#+end_src\n" 0 2 (fontified nil) 2 6 (fontified nil) 6 8 (fontified nil) 8 69 (fontified nil font-lock-fontified t) 69 70 (fontified nil font-lock-fontified t) 70 112 (fontified nil font-lock-fontified t) 112 113 (fontified nil font-lock-fontified t) 113 122 (fontified nil font-lock-fontified t) 122 124 (fontified nil) 124 171 (fontified nil font-lock-fontified t) 171 172 (fontified nil font-lock-fontified t) 172 225 (fontified nil font-lock-fontified t) 225 226 (fontified nil font-lock-fontified t) 226 235 (fontified nil font-lock-fontified t) 235 236 (fontified nil)) :emph-multiline t :for-LaTeX t :comments nil :tags not-in-toc :priority nil :footnotes t :drawers nil :timestamps t :todo-keywords t :add-text nil :skip-before-1st-heading nil :select-tags ("export") :exclude-tags ("noexport") :LaTeX-fragments nil)
>   org-export-as-latex(nil nil nil nil nil nil)
>   org-export-as-pdf(nil)
>   org-export-as-pdf-and-open(nil)
>   call-interactively(org-export-as-pdf-and-open 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-26  7:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-20 10:35 [babel] error running source code? [6.34trans (release_6.34c.6.gcae0.dirty)] "Martin G. Skjæveland"
2010-01-26  7:07 ` Eric Schulte

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).