* LaTeX export crashes
@ 2011-10-13 20:22 Ken Williams
2011-10-14 13:51 ` Sebastien Vauban
0 siblings, 1 reply; 10+ messages in thread
From: Ken Williams @ 2011-10-13 20:22 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Hi, the following document makes a LaTeX export (C-c C-e d) crash with "Args out of range: "", -1, 0". After that,
------------------
#+TITLE: Test doc
#+AUTHOR: Ken Williams
Some stuff.
#+begin_src R
5+5
#+end_src
------------------
Is this a known problem?
If I either omit the R source block, or add a top-level outline element to the document, then the export succeeds. For now as a workaround I guess I'll add a header.
Thanks,
-Ken
CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of any kind is strictly prohibited. If you are not the intended recipient, please contact the sender via reply e-mail and destroy all copies of the original message. Thank you.
^ permalink raw reply [flat|nested] 10+ messages in thread
* LaTeX export crashes
@ 2011-10-13 21:48 Ken Williams
2011-10-17 21:22 ` Ken Williams
0 siblings, 1 reply; 10+ messages in thread
From: Ken Williams @ 2011-10-13 21:48 UTC (permalink / raw)
To: emacs-orgmode
Hi, the following document makes a LaTeX export (C-c C-e d) crash with
"Args out of range: "", -1, 0". After that, exporting (to any format)
dies with the same error.
------------------
#+TITLE: Test doc
#+AUTHOR: Ken Williams
Some stuff.
#+begin_src R
5+5
#+end_src
------------------
Is this a known problem?
If I either omit the R source block, or add a top-level outline
element to the document, then the export succeeds. For now as a
workaround I guess I'll add a header.
Thanks,
-Ken
Emacs : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600)
of 2011-03-10 on 3249CTO
Package: Org-mode version 7.7
current state:
==============
(setq
org-log-done 'time
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-babel-load-languages '((emacs-lisp) (R . t))
org-metaup-hook '(org-babel-load-in-session-maybe)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-alphabetical-lists t
org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
org-export-html-style "<style type=\"text/css\">\n
<!--/*--><![CDATA[/*><!--*/\n .src {
background-color: #F5FFF5; position: relative; overflow: visible;
margin-right: auto; }\n .src:before { position: absolute;
top: -15px; background: #ffffff; padding: 1px; border: 1px solid
#000000; font-size: small; }\n .src-sh:before { content: 'sh';
}\n .src-bash:before { content: 'sh'; }\n .src-R:before {
content: 'R'; }\n .src-perl:before { content: 'Perl'; }\n
.src-sql:before { content: 'SQL'; }\n .example {
background-color: #FFF5F5; }\n /*]]>*/-->\n</style>"
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-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe)
org-src-mode-hook '(org-src-babel-configure-edit-buffer
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-babel-pre-tangle-hook '(save-buffer)
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-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local]
5]
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook
org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-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-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp nil
org-export-babel-evaluate nil
org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
org-confirm-babel-evaluate nil
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-block nil) (comment
org-export-blocks-format-comment t)
(ditaa org-export-blocks-format-ditaa nil) (dot
org-export-blocks-format-dot nil))
)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: LaTeX export crashes
2011-10-13 20:22 Ken Williams
@ 2011-10-14 13:51 ` Sebastien Vauban
0 siblings, 0 replies; 10+ messages in thread
From: Sebastien Vauban @ 2011-10-14 13:51 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hi Ken,
Ken Williams wrote:
> Hi, the following document makes a LaTeX export (C-c C-e d) crash with "Args
> out of range: "", -1, 0". After that,
>
> ------------------
> #+TITLE: Test doc
> #+AUTHOR: Ken Williams
>
> Some stuff.
>
> #+begin_src R
> 5+5
> #+end_src
> ------------------
>
> Is this a known problem?
Works for me, with Org-mode version 7.7 (release_7.7.381.ge8629.dirty).
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: LaTeX export crashes
2011-10-13 21:48 LaTeX export crashes Ken Williams
@ 2011-10-17 21:22 ` Ken Williams
2011-10-17 21:52 ` Nick Dokos
0 siblings, 1 reply; 10+ messages in thread
From: Ken Williams @ 2011-10-17 21:22 UTC (permalink / raw)
To: emacs-orgmode
On Thu, Oct 13, 2011 at 4:48 PM, Ken Williams <kenahoo@gmail.com> wrote:
> Hi, the following document makes a LaTeX export (C-c C-e d) crash with
> "Args out of range: "", -1, 0". After that, exporting (to any format)
> dies with the same error.
> [snip]
Then Sebastien Vauban wrote:
> Works for me, with Org-mode version 7.7 (release_7.7.381.ge8629.dirty).
Here's a full stack trace, does this make it any more evident what's going on?
-Ken
Debugger entered--Lisp error: (args-out-of-range "" -1 0)
substring("" -1)
(string= "\n" (substring body sub-length))
(if (string= "\n" (substring body sub-length)) (substring body 0
sub-length) body)
(let* ((body ...) (sub-length ...)) (if (string= "\n" ...)
(substring body 0 sub-length) body))
(org-babel-clean-text-properties (let* (... ...) (if ... ... body)))
(let* ((block-indentation ...) (lang ...) (lang-headers ...)
(switches ...) (body ...) (preserve-indentation ...)) (list lang
(with-temp-buffer ...) (org-babel-merge-params
org-babel-default-header-args ... ... ... ...) switches
block-indentation))
org-babel-parse-src-block-match()
(setq info (org-babel-parse-src-block-match))
(save-excursion (goto-char head) (setq info
(org-babel-parse-src-block-match)) (setq indent (car ...)) (setq info
(butlast info)) (while (and ... ...) (setf ... ...)) (when (looking-at
org-babel-src-name-w-name-regexp) (setq name ...) (when ... ...)))
(if (setq head (org-babel-where-is-src-block-head)) (save-excursion
(goto-char head) (setq info ...) (setq indent ...) (setq info ...)
(while ... ...) (when ... ... ...)) (when (save-excursion ... ...)
(setq info ...)))
(let ((case-fold-search t) head info name indent) (if (setq head
...) (save-excursion ... ... ... ... ... ...) (when ... ...)) (when
(and info ...) (setf ... ...)) (when info (append info ...)))
org-babel-get-src-block-info(light)
(let* ((info ...) (lang ...) (raw-params ...) hash) (when info (when
... ... ...) (setf ... ...) (org-babel-exp-do-export info ... hash)))
(save-excursion (goto-char (match-beginning 0)) (let* (... ... ...
hash) (when info ... ... ...)))
org-babel-exp-src-block("" #("R" 0 1 (font-lock-fontified t fontified nil)))
apply(org-babel-exp-src-block "" #("R" 0 1 (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)))
(let ((replacement ...)) (when replacement (delete-region
match-start match-end) (goto-char match-start) (insert replacement)
(unless preserve-indent ...)))
(progn (let (...) (when replacement ... ... ... ...)))
(if (setq func (cadr ...)) (progn (let ... ...)))
(when (setq func (cadr ...)) (let (...) (when replacement ... ... ... ...)))
(let* ((match-start ...) (body-start ...) (indentation ...)
(inner-re ...) (type ...) (headers ...) (balanced 1) (preserve-indent
...) match-end) (while (and ... ...) (if ... ... ...)) (when (not ...)
(error "unbalanced begin/end_%s blocks with %S" type ...)) (setq
match-end (match-end 0)) (unless preserve-indent (setq body ...))
(unless (memq type types) (setq types ...)) (save-match-data
(interblock start match-start)) (when (setq func ...) (let ... ...)))
(while (re-search-forward beg-re nil t) (let* (... ... ... ... ...
... ... ... match-end) (while ... ...) (when ... ...) (setq match-end
...) (unless preserve-indent ...) (unless ... ...) (save-match-data
...) (when ... ...)) (setq start (point)))
(let ((beg-re "^\\([ ]*\\)#\\+begin_\\(\\S-+\\)[ ]*\\(.*\\)?[
\n]")) (while (re-search-forward beg-re nil t) (let* ... ... ... ...
... ... ... ...) (setq start ...)))
(progn (fset (quote interblock) (function* ...)) (goto-char
(point-min)) (setq start (point)) (let (...) (while ... ... ...))
(interblock start (point-max)) (run-hooks (quote
org-export-blocks-postblock-hook)))
(unwind-protect (progn (fset ... ...) (goto-char ...) (setq start
...) (let ... ...) (interblock start ...) (run-hooks ...)) (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)) (let
(...) (while ... ... ...)) (interblock start (point-max)) (run-hooks
(quote org-export-blocks-postblock-hook)))
(letf* ((... ...)) (goto-char (point-min)) (setq start (point)) (let
(...) (while ... ... ...)) (interblock start (point-max)) (run-hooks
(quote org-export-blocks-postblock-hook)))
(flet ((interblock ... ...)) (goto-char (point-min)) (setq start
(point)) (let (...) (while ... ... ...)) (interblock start
(point-max)) (run-hooks (quote org-export-blocks-postblock-hook)))
(let ((case-fold-search t) (types ...) matched indentation type func
start end body headers preserve-indent progress-marker) (flet (...)
(goto-char ...) (setq start ...) (let ... ...) (interblock start ...)
(run-hooks ...)))
(save-window-excursion (let (... ... matched indentation type func
start end body headers preserve-indent progress-marker) (flet ... ...
... ... ... ...)))
org-export-blocks-preprocess()
(progn (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-clone-local-variables source-buffer
"^\\(org-\\|orgtbl-\\)") (org-install-letbind) (run-hooks (quote
org-export-preprocess-hook)) (untabify (point-min) (point-max))
(org-export-handle-include-files-recurse) (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-remove-tasks (plist-get parameters :tasks)) (when
(plist-get parameters :footnotes) (org-footnote-normalize nil
parameters)) (org-export-mark-list-end)
(org-export-preprocess-apply-macros) (run-hooks (quote
org-export-preprocess-after-macros-hook))
(org-export-blocks-preprocess) (org-export-mark-list-properties)
(org-export-replace-src-segments-and-examples)
(org-export-protect-colon-examples)
(org-export-convert-protected-spaces) (setq target-alist
(org-export-define-heading-targets target-alist)) (run-hooks (quote
org-export-preprocess-after-headline-targets-hook))
(org-export-remember-html-container-classes)
(org-export-remove-or-extract-drawers drawers (plist-get parameters
:drawers)) (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)
(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 target-alist))
(org-export-mark-radio-links) (run-hooks (quote
org-export-preprocess-after-radio-targets-hook))
(org-export-concatenate-multiline-links) (run-hooks (quote
org-export-preprocess-before-normalizing-links-hook))
(org-export-normalize-links) ...)
(unwind-protect (progn (erase-buffer) (insert string) (setq
case-fold-search t) (let ... ...) (org-export-kill-licensed-text) (let
... ...) (setq case-fold-search t) (org-clone-local-variables
source-buffer "^\\(org-\\|orgtbl-\\)") (org-install-letbind)
(run-hooks ...) (untabify ... ...)
(org-export-handle-include-files-recurse) (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-remove-tasks ...) (when ... ...)
(org-export-mark-list-end) (org-export-preprocess-apply-macros)
(run-hooks ...) (org-export-blocks-preprocess)
(org-export-mark-list-properties)
(org-export-replace-src-segments-and-examples)
(org-export-protect-colon-examples)
(org-export-convert-protected-spaces) (setq target-alist ...)
(run-hooks ...) (org-export-remember-html-container-classes)
(org-export-remove-or-extract-drawers drawers ...) (when ... ... ...)
(when ... ... ...) (org-export-remove-headline-metadata parameters)
(setq target-alist ...) (run-hooks ...)
(org-export-select-backend-specific-text)
(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) (run-hooks
...) (org-export-concatenate-multiline-links) (run-hooks ...)
(org-export-normalize-links) ...) (and (buffer-name temp-buffer)
(kill-buffer temp-buffer)))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) (and
... ...)))
(with-current-buffer temp-buffer (unwind-protect (progn ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... ... ...) (and ... ...)))
(let ((temp-buffer ...)) (with-current-buffer temp-buffer
(unwind-protect ... ...)))
(with-temp-buffer (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-clone-local-variables source-buffer
"^\\(org-\\|orgtbl-\\)") (org-install-letbind) (run-hooks (quote
org-export-preprocess-hook)) (untabify (point-min) (point-max))
(org-export-handle-include-files-recurse) (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-remove-tasks (plist-get parameters :tasks)) (when
(plist-get parameters :footnotes) (org-footnote-normalize nil
parameters)) (org-export-mark-list-end)
(org-export-preprocess-apply-macros) (run-hooks (quote
org-export-preprocess-after-macros-hook))
(org-export-blocks-preprocess) (org-export-mark-list-properties)
(org-export-replace-src-segments-and-examples)
(org-export-protect-colon-examples)
(org-export-convert-protected-spaces) (setq target-alist
(org-export-define-heading-targets target-alist)) (run-hooks (quote
org-export-preprocess-after-headline-targets-hook))
(org-export-remember-html-container-classes)
(org-export-remove-or-extract-drawers drawers (plist-get parameters
:drawers)) (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)
(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 target-alist))
(org-export-mark-radio-links) (run-hooks (quote
org-export-preprocess-after-radio-targets-hook))
(org-export-concatenate-multiline-links) (run-hooks (quote
org-export-preprocess-before-normalizing-links-hook))
(org-export-normalize-links) ...)
(let* ((org-export-current-backend ...) (archived-trees ...)
(inhibit-read-only t) (drawers org-drawers) (source-buffer ...)
target-alist rtn) (setq org-export-target-aliases nil
org-export-preferred-target-alist nil org-export-id-target-alist nil
org-export-code-refs nil) (with-temp-buffer (erase-buffer) (insert
string) (setq case-fold-search t) (let ... ...)
(org-export-kill-licensed-text) (let ... ...) (setq case-fold-search
t) (org-clone-local-variables source-buffer "^\\(org-\\|orgtbl-\\)")
(org-install-letbind) (run-hooks ...) (untabify ... ...)
(org-export-handle-include-files-recurse) (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-remove-tasks ...) (when ... ...)
(org-export-mark-list-end) (org-export-preprocess-apply-macros)
(run-hooks ...) (org-export-blocks-preprocess)
(org-export-mark-list-properties)
(org-export-replace-src-segments-and-examples)
(org-export-protect-colon-examples)
(org-export-convert-protected-spaces) (setq target-alist ...)
(run-hooks ...) (org-export-remember-html-container-classes)
(org-export-remove-or-extract-drawers drawers ...) (when ... ... ...)
(when ... ... ...) (org-export-remove-headline-metadata parameters)
(setq target-alist ...) (run-hooks ...)
(org-export-select-backend-specific-text)
(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) (run-hooks
...) (org-export-concatenate-multiline-links) (run-hooks ...)
(org-export-normalize-links) ...) rtn)
org-export-preprocess-string(#("#+TITLE: Test doc\n#+AUTHOR: Ken
Williams\n\nSome stuff.\n\n#+begin_src R\n5+5\n#+end_src\n" 0 8
(fontified nil font-lock-fontified t) 8 9 (fontified nil) 9 17
(fontified nil font-lock-fontified t) 17 18 (fontified nil) 18 27
(fontified nil font-lock-fontified t) 27 28 (fontified nil) 28 40
(fontified nil font-lock-fontified t) 40 41 (fontified nil) 41 55
(fontified nil :org-license-to-kill t) 55 68 (fontified nil
font-lock-fontified t) 68 69 (fontified nil font-lock-fontified t) 69
72 (fontified nil font-lock-fontified t :org-license-to-kill t) 72 73
(fontified nil font-lock-fontified t :org-license-to-kill t) 73 82
(fontified nil font-lock-fontified t) 82 83 (fontified nil))
:emph-multiline t :for-backend latex :comments nil :tags not-in-toc
: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 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)
(if (and bg (nth 2 ass) (not ...) (not ...)) (let (...)
(set-process-sentinel p ...) (message "Background process \"%s\":
started" p)) (if subtree-p (progn ... ...)) (call-interactively (nth 1
ass)) (when (and bpos ...) (let ... ... ... ... ...)))
(let* ((bg ...) (subtree-p ...) (help "[t] insert the export
option template\n[v] limit export to visible part of outline
tree\n[1] switch buffer/subtree export\n[SPC] publish enclosing
subtree (with LaTeX_CLASS or EXPORT_FILE_NAME prop)\n\n[a/n/u] export
as ASCII/Latin-1/UTF-8 [A/N/U] to temporary buffer\n\n[h]
export as HTML [H] to temporary buffer [R] export region\n[b]
export as HTML and open in browser\n\n[l] export as LaTeX [L] to
temporary buffer\n[p] export as LaTeX and process to PDF
[d] ... and open PDF file\n\n[D] export as DocBook [V] export as
DocBook, process to PDF, and open\n\n[o] export as OpenDocumentText
[O] ... and open\n\n[j] export as TaskJuggler
[J] ... and open\n\n[m] export as Freemind mind
map\n[x] export as XOXO\n[g] export using Wes Hardaker's generic
exporter\n\n[i] export current file as iCalendar file\n[I] export all
agenda files as iCalendar files [c] ...as one combined file\n\n[F]
publish current file [P] publish current project\n[X] publish
a project... [E] publish every projects") (cmds ...) r1 r2
ass (cpos ...) (cbuf ...) bpos) (save-excursion (save-window-excursion
... ... ... ... ... ...)) (redisplay) (and bpos (goto-char bpos))
(setq r2 (if ... ... r1)) (unless (setq ass ...) (error "No command
associated with key %c" r1)) (if (and bg ... ... ...) (let ... ...
...) (if subtree-p ...) (call-interactively ...) (when ... ...)))
org-export(nil)
call-interactively(org-export nil nil)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: LaTeX export crashes
2011-10-17 21:22 ` Ken Williams
@ 2011-10-17 21:52 ` Nick Dokos
2011-10-17 22:13 ` Nick Dokos
2011-10-18 1:13 ` Ken Williams
0 siblings, 2 replies; 10+ messages in thread
From: Nick Dokos @ 2011-10-17 21:52 UTC (permalink / raw)
To: Ken Williams; +Cc: nicholas.dokos, emacs-orgmode
Ken Williams <kenahoo@gmail.com> wrote:
> On Thu, Oct 13, 2011 at 4:48 PM, Ken Williams <kenahoo@gmail.com> wrote:
> > Hi, the following document makes a LaTeX export (C-c C-e d) crash with
> > "Args out of range: "", -1, 0". After that, exporting (to any format)
> > dies with the same error.
> > [snip]
>
> Then Sebastien Vauban wrote:
> > Works for me, with Org-mode version 7.7 (release_7.7.381.ge8629.dirty).
>
> Here's a full stack trace, does this make it any more evident what's going on?
>
Not really: you have not mentioned what version you are using. Chances are
you are running an older version which has the problem, Seb is running
a recent 7.7 which does not exhibit the problem (I tried it too: works for
me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
So upgrade to latest and see if you can reproduce the problem.
Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: LaTeX export crashes
2011-10-17 21:52 ` Nick Dokos
@ 2011-10-17 22:13 ` Nick Dokos
2011-10-18 1:13 ` Ken Williams
1 sibling, 0 replies; 10+ messages in thread
From: Nick Dokos @ 2011-10-17 22:13 UTC (permalink / raw)
To: Ken Williams, emacs-orgmode; +Cc: nicholas.dokos
Nick Dokos <nicholas.dokos@hp.com> wrote:
> Ken Williams <kenahoo@gmail.com> wrote:
>
> > On Thu, Oct 13, 2011 at 4:48 PM, Ken Williams <kenahoo@gmail.com> wrote:
> > > Hi, the following document makes a LaTeX export (C-c C-e d) crash with
> > > "Args out of range: "", -1, 0". After that, exporting (to any format)
> > > dies with the same error.
> > > [snip]
> >
> > Then Sebastien Vauban wrote:
> > > Works for me, with Org-mode version 7.7 (release_7.7.381.ge8629.dirty).
> >
> > Here's a full stack trace, does this make it any more evident what's going on?
> >
>
> Not really: you have not mentioned what version you are using. Chances are
> you are running an older version which has the problem, Seb is running
> a recent 7.7 which does not exhibit the problem (I tried it too: works for
> me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
> So upgrade to latest and see if you can reproduce the problem.
>
BTW, I suspect that commit 597e1eb4fe7b2674c2d5233f215217f7b35e4035 is what
fixed this problem. Given that this was done on Sept. 13, you need to run
something later than that to pick up the fix (or cherry pick the patch and
apply it to your version, but I wouldn't recommend this course of action).
The recommendation stands: upgrade!
Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: LaTeX export crashes
2011-10-17 21:52 ` Nick Dokos
2011-10-17 22:13 ` Nick Dokos
@ 2011-10-18 1:13 ` Ken Williams
2011-10-18 1:31 ` Nick Dokos
1 sibling, 1 reply; 10+ messages in thread
From: Ken Williams @ 2011-10-18 1:13 UTC (permalink / raw)
To: nicholas.dokos; +Cc: emacs-orgmode
On Mon, Oct 17, 2011 at 4:52 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Ken Williams <kenahoo@gmail.com> wrote:
>
>> Here's a full stack trace, does this make it any more evident what's going on?
>>
>
> Not really: you have not mentioned what version you are using.
I did post my complete config, which this message was a direct reply to:
http://article.gmane.org/gmane.emacs.orgmode/47841
I probably confused matters by posting first without my config, from
the wrong address, so I thought it wouldn't make it to the list.
> Chances are you are running an older version which has the problem, Seb is running
> a recent 7.7 which does not exhibit the problem (I tried it too: works for
> me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
> So upgrade to latest and see if you can reproduce the problem.
Nope, I'm already running 7.7.
-Ken
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: LaTeX export crashes
2011-10-18 1:13 ` Ken Williams
@ 2011-10-18 1:31 ` Nick Dokos
2011-10-18 1:36 ` Nick Dokos
2011-10-18 1:50 ` Ken Williams
0 siblings, 2 replies; 10+ messages in thread
From: Nick Dokos @ 2011-10-18 1:31 UTC (permalink / raw)
To: Ken Williams; +Cc: nicholas.dokos, emacs-orgmode
Ken Williams <kenahoo@gmail.com> wrote:
> On Mon, Oct 17, 2011 at 4:52 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> > Ken Williams <kenahoo@gmail.com> wrote:
> >
> >> Here's a full stack trace, does this make it any more evident what's going on?
> >>
> >
> > Not really: you have not mentioned what version you are using.
>
> I did post my complete config, which this message was a direct reply to:
>
> http://article.gmane.org/gmane.emacs.orgmode/47841
>
> I probably confused matters by posting first without my config, from
> the wrong address, so I thought it wouldn't make it to the list.
>
Sorry about that - not sure what I did: I searched the list and found a
thread but it did not have a config but I may not have gone back far
enough.
> > Chances are you are running an older version which has the problem, Seb is running
> > a recent 7.7 which does not exhibit the problem (I tried it too: works for
> > me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
> > So upgrade to latest and see if you can reproduce the problem.
>
> Nope, I'm already running 7.7.
>
> -Ken
>
As I pointed out in the subsequent message, that's not good enough: 7.7 came out
on July 28 and the fix (at least what I *think* is the fix) did not go in until
September 13.
Nick
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: LaTeX export crashes
2011-10-18 1:31 ` Nick Dokos
@ 2011-10-18 1:36 ` Nick Dokos
2011-10-18 1:50 ` Ken Williams
1 sibling, 0 replies; 10+ messages in thread
From: Nick Dokos @ 2011-10-18 1:36 UTC (permalink / raw)
To: Ken Williams, emacs-orgmode; +Cc: nicholas.dokos
Nick Dokos <nicholas.dokos@hp.com> wrote:
> Ken Williams <kenahoo@gmail.com> wrote:
>
> > On Mon, Oct 17, 2011 at 4:52 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> > > Ken Williams <kenahoo@gmail.com> wrote:
> > >
> > >> Here's a full stack trace, does this make it any more evident what's going on?
> > >>
> > >
> > > Not really: you have not mentioned what version you are using.
> >
> > I did post my complete config, which this message was a direct reply to:
> >
> > http://article.gmane.org/gmane.emacs.orgmode/47841
> >
> > I probably confused matters by posting first without my config, from
> > the wrong address, so I thought it wouldn't make it to the list.
> >
Yup - that's what it was. I found the *other* thread:
http://thread.gmane.org/gmane.emacs.orgmode/47842
>
> Sorry about that - not sure what I did: I searched the list and found a
> thread but it did not have a config but I may not have gone back far
> enough.
>
> > > Chances are you are running an older version which has the problem, Seb is running
> > > a recent 7.7 which does not exhibit the problem (I tried it too: works for
> > > me as well with Org-mode version 7.7 (release_7.7.392.g35d92)).
> > > So upgrade to latest and see if you can reproduce the problem.
> >
> > Nope, I'm already running 7.7.
> >
> > -Ken
> >
>
> As I pointed out in the subsequent message, that's not good enough: 7.7 came out
> on July 28 and the fix (at least what I *think* is the fix) did not go in until
> September 13.
>
> Nick
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: LaTeX export crashes
2011-10-18 1:31 ` Nick Dokos
2011-10-18 1:36 ` Nick Dokos
@ 2011-10-18 1:50 ` Ken Williams
1 sibling, 0 replies; 10+ messages in thread
From: Ken Williams @ 2011-10-18 1:50 UTC (permalink / raw)
To: nicholas.dokos; +Cc: emacs-orgmode
On Mon, Oct 17, 2011 at 8:31 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
>
> As I pointed out in the subsequent message, that's not good enough: 7.7 came out
> on July 28 and the fix (at least what I *think* is the fix) did not go in until
> September 13.
Ah, I see - I was thinking 7.7 came out at the end of September, not
sure why I thought that.
Looking at commit 597e1eb it does seem on target. I'll probably hold
off upgrading until 7.8, since I'm running in a corporate environment
& I can survive fine with workarounds.
Thanks for your help.
-Ken
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-10-18 1:50 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-13 21:48 LaTeX export crashes Ken Williams
2011-10-17 21:22 ` Ken Williams
2011-10-17 21:52 ` Nick Dokos
2011-10-17 22:13 ` Nick Dokos
2011-10-18 1:13 ` Ken Williams
2011-10-18 1:31 ` Nick Dokos
2011-10-18 1:36 ` Nick Dokos
2011-10-18 1:50 ` Ken Williams
-- strict thread matches above, loose matches on Subject: below --
2011-10-13 20:22 Ken Williams
2011-10-14 13:51 ` Sebastien Vauban
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).