From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: LaTeX export crashes Date: Thu, 13 Oct 2011 16:48:48 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:37981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RET91-0003qG-Dv for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 17:48:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RET90-0005Wh-64 for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 17:48:51 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:60617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RET90-0005Vt-2O for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 17:48:50 -0400 Received: by gyf3 with SMTP id 3so389853gyf.0 for ; Thu, 13 Oct 2011 14:48:48 -0700 (PDT) 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 Hi, the following document makes a LaTeX export (C-c C-e d) crash with "Args out of range: "", -1, 0".=A0 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.=A0 For now as a workaround I guess I'll add a header. Thanks, =A0-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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (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 "" 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)) ) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: LaTeX export crashes Date: Thu, 13 Oct 2011 15:22:03 -0500 Message-ID: <21A5E1E970CD46459ECBE86D6CC4B28C529C1270@spexch01.WindLogics.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RES7B-0000cx-Rz for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 16:42:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RES7A-0000Ub-HZ for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 16:42:53 -0400 Received: from shrimp.windlogics.com ([216.245.170.164]:19013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RES7A-0000UV-EV for emacs-orgmode@gnu.org; Thu, 13 Oct 2011 16:42:52 -0400 Content-Language: en-US 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" Hi, the following document makes a LaTeX export (C-c C-e d) crash with "Arg= s 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 inte= nded recipient(s) and may contain confidential and privileged information. = Any unauthorized review, use, disclosure or distribution of any kind is str= ictly prohibited. If you are not the intended recipient, please contact the= sender via reply e-mail and destroy all copies of the original message. Th= ank you. From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: LaTeX export crashes Date: Fri, 14 Oct 2011 15:51:47 +0200 Message-ID: <80obxjof5d.fsf@somewhere.org> References: <21A5E1E970CD46459ECBE86D6CC4B28C529C1270@spexch01.WindLogics.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Re: LaTeX export crashes Date: Mon, 17 Oct 2011 16:22:15 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFudX-0005cp-T7 for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 17:22:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFudV-0006iS-C8 for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 17:22:19 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]:36455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFudV-0006iG-7a for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 17:22:17 -0400 Received: by yxj19 with SMTP id 19so4210805yxj.31 for ; Mon, 17 Oct 2011 14:22:15 -0700 (PDT) In-Reply-To: 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 On Thu, Oct 13, 2011 at 4:48 PM, Ken Williams wrote: > Hi, the following document makes a LaTeX export (C-c C-e d) crash with > "Args out of range: "", -1, 0".=A0 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=3D "\n" (substring body sub-length)) (if (string=3D "\n" (substring body sub-length)) (substring body 0 sub-length) body) (let* ((body ...) (sub-length ...)) (if (string=3D "\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) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: LaTeX export crashes Date: Mon, 17 Oct 2011 17:52:53 -0400 Message-ID: <10610.1318888373@alphaville.americas.hpqcorp.net> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFv7A-0002zJ-Sp for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 17:52:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFv79-0001OI-UP for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 17:52:56 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:49120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFv79-0001Np-IX for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 17:52:55 -0400 In-Reply-To: Message from Ken Williams of "Mon\, 17 Oct 2011 16\:22\:15 CDT." 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: Ken Williams Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Ken Williams wrote: > On Thu, Oct 13, 2011 at 4:48 PM, Ken Williams wrote: > > Hi, the following document makes a LaTeX export (C-c C-e d) crash with > > "Args out of range: "", -1, 0".=C2=A0 After that, exporting (to any for= mat) > > dies with the same error. > > [snip] >=20 > Then Sebastien Vauban wrote: > > Works for me, with Org-mode version 7.7 (release_7.7.381.ge8629.dirty). >=20 > Here's a full stack trace, does this make it any more evident what's goin= g on? >=20 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: LaTeX export crashes Date: Mon, 17 Oct 2011 18:13:49 -0400 Message-ID: <11301.1318889629@alphaville.americas.hpqcorp.net> References: <10610.1318888373@alphaville.americas.hpqcorp.net> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFvRQ-00077z-Oa for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 18:13:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFvRP-00014U-Ru for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 18:13:52 -0400 Received: from g5t0007.atlanta.hp.com ([15.192.0.44]:18157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFvRP-00011i-M4 for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 18:13:51 -0400 In-Reply-To: Message from Nick Dokos of "Mon\, 17 Oct 2011 17\:52\:53 EDT." <10610.1318888373@alphaville.americas.hpqcorp.net> 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: Ken Williams , emacs-orgmode@gnu.org Cc: nicholas.dokos@hp.com Nick Dokos wrote: > Ken Williams wrote: >=20 > > On Thu, Oct 13, 2011 at 4:48 PM, Ken Williams wrote: > > > Hi, the following document makes a LaTeX export (C-c C-e d) crash with > > > "Args out of range: "", -1, 0".=C2=A0 After that, exporting (to any f= ormat) > > > dies with the same error. > > > [snip] > >=20 > > Then Sebastien Vauban wrote: > > > Works for me, with Org-mode version 7.7 (release_7.7.381.ge8629.dirty= ). > >=20 > > Here's a full stack trace, does this make it any more evident what's go= ing on? > >=20 >=20 > 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. >=20 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Re: LaTeX export crashes Date: Mon, 17 Oct 2011 20:13:50 -0500 Message-ID: References: <10610.1318888373@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyFd-0002NA-5i for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:13:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFyFb-0004Mj-M9 for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:13:53 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:55887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyFb-0004Me-EG for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:13:51 -0400 Received: by ywb3 with SMTP id 3so95888ywb.0 for ; Mon, 17 Oct 2011 18:13:50 -0700 (PDT) In-Reply-To: <10610.1318888373@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org On Mon, Oct 17, 2011 at 4:52 PM, Nick Dokos wrote: > Ken Williams 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: LaTeX export crashes Date: Mon, 17 Oct 2011 21:31:58 -0400 Message-ID: <4425.1318901518@alphaville.dokosmarshall.org> References: <10610.1318888373@alphaville.americas.hpqcorp.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyXE-0006tT-NS for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:32:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFyXD-00015D-AR for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:32:04 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:48534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyXC-00011K-Uf for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:32:03 -0400 In-Reply-To: Message from Ken Williams of "Mon, 17 Oct 2011 20:13:50 CDT." 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: Ken Williams Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Ken Williams wrote: > On Mon, Oct 17, 2011 at 4:52 PM, Nick Dokos wrote: > > Ken Williams 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: LaTeX export crashes Date: Mon, 17 Oct 2011 21:36:58 -0400 Message-ID: <4583.1318901818@alphaville.dokosmarshall.org> References: <10610.1318888373@alphaville.americas.hpqcorp.net> <4425.1318901518@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyc2-0007ZH-DV for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:37:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFyc0-00046j-VN for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:37:02 -0400 Received: from g6t0187.atlanta.hp.com ([15.193.32.64]:34310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyc0-00046U-Oq for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:37:00 -0400 In-Reply-To: Message from Nick Dokos of "Mon, 17 Oct 2011 21:31:58 EDT." <4425.1318901518@alphaville.dokosmarshall.org> 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: Ken Williams , emacs-orgmode@gnu.org Cc: nicholas.dokos@hp.com Nick Dokos wrote: > Ken Williams wrote: > > > On Mon, Oct 17, 2011 at 4:52 PM, Nick Dokos wrote: > > > Ken Williams 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 > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Williams Subject: Re: LaTeX export crashes Date: Mon, 17 Oct 2011 20:50:06 -0500 Message-ID: References: <10610.1318888373@alphaville.americas.hpqcorp.net> <4425.1318901518@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyoi-0001kv-Km for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:50:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFyoh-0005TU-I5 for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:50:08 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:39871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFyoh-0005Ru-Aa for emacs-orgmode@gnu.org; Mon, 17 Oct 2011 21:50:07 -0400 Received: by yxs7 with SMTP id 7so142402yxs.0 for ; Mon, 17 Oct 2011 18:50:06 -0700 (PDT) In-Reply-To: <4425.1318901518@alphaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org On Mon, Oct 17, 2011 at 8:31 PM, Nick Dokos 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