My email client seems to be eating the formatting in the bug report, so I'm attaching it as a text file. Hope that's okay.
-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.
To: emacs-orgmode@gnu.org Subject: Bug: Export of table.el to LaTeX fails [7.9.4 (7.9.4-dist @ c:/Users/kwilliams/share/emacs/site-lisp/org/)] From: ken.willi...@windlogics.com --text follows this line-- Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ When I try to export the following example document to LaTeX, I get a failure "Invalid search bound (wrong side of point)". The key piece seems to be the '...' string in the 4th cell. ============= #+TITLE: Example Doc #+AUTHOR: Ken Williams * Failing table Example: +----------+---------------+ |Name |Examples | +----------+---------------+ |foo |x ... y | +----------+---------------+ ============= Here's a stack trace: Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)") re-search-forward("\\s *\\'" 53 t) table--buffer-substring-and-trim(54 53) #[514 "\307\310\302@B!\310\302@B!\"\311\312!r\211q\210\313\314\315\316\317\320!\321\"\322\323%DC\216c\210eb\210\324\325\326\327#\203_ \330\224\203E \212\330\224b\210\331c\210)\202, \322\224\203S \332\333\327\211#\210\202, \332\334\335\336!\334Q!\210\202, ed{\262*\210r\300q\210\306@\204\200 `Sf\337=\203{ \340\202| \341\342\261\210\305@\330V\203\234 \343\344\305@\306@\203\224 \345\202\225 \340$c\210\202\237 \211c\210)\306\326\240\210\305\330\240\210\303\304@\3018\240\207" [#<buffer *org-export-table*> (1 12) (5) (12) (2) (1) (nil) table--buffer-substring-and-trim table--goto-coordinate generate-new-buffer " *temp*" funcall make-byte-code 0 "\301\300!\205 \302\300!\207" vconcat vector [buffer-name kill-buffer] 2 "\n\n(fn)" re-search-forward "\\([#$~_^%{}]\\)\\|\\(\\\\\\)\\|\\([<>|]\\)" nil t 1 "\\" replace-match "$\\backslash$" "$" match-string 3 32 "" " " "& " format "\\multicolumn{%d}{%sl|}{%s}" "|"] 11 "\n\n(fn FROM TO)"](12 11) table--generate-source-scan-lines(#<buffer *org-export-table*> latex (43 . 53) (101 . 111) (1 12) (5 7)) table-generate-source(latex "*org-export-table*" "caption") org-export-latex-convert-table\.el-table() org-export-latex-tables(t) org-export-latex-content(#("\n\nExample:\n\n+----------+---------------+\n|Name |Examples |\n+----------+---------------+\n|foo |x ... y |\n+----------+---------------+\n\n\n" 0 12 (fontified t) 12 24 (fontified t) 24 40 (fontified t) 40 41 (fontified t) 41 69 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 69 70 (fontified t) 70 82 (fontified t) 82 98 (fontified t) 98 99 (fontified t) 99 127 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 127 128 (fontified t) 128 140 (fontified t) 140 156 (fontified t) 156 159 (fontified t))) org-export-latex-subcontent(((pos . 2) (level . 1) (occur . 1) (heading . #(" Failing table " 1 2 (target "sec-1" fontified t) 2 14 (target "sec-1" fontified t))) (content . #("\n\nExample:\n\n+----------+---------------+\n|Name |Examples |\n+----------+---------------+\n|foo |x ... y |\n+----------+---------------+\n\n\n" 0 12 (fontified t) 12 24 (fontified t) 24 40 (fontified t) 40 41 (fontified t) 41 69 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 69 70 (fontified t) 70 82 (fontified t) 82 98 (fontified t) 98 99 (fontified t) 99 127 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 127 128 (fontified t) 128 140 (fontified t) 140 156 (fontified t) 156 159 (fontified t))) (subcontent)) t) #[(x) "\302 \"\207" [x num org-export-latex-subcontent] 3](((pos . 2) (level . 1) (occur . 1) (heading . #(" Failing table " 1 2 (target "sec-1" fontified t) 2 14 (target "sec-1" fontified t))) (content . #("\n\nExample:\n\n+----------+---------------+\n|Name |Examples |\n+----------+---------------+\n|foo |x ... y |\n+----------+---------------+\n\n\n" 0 12 (fontified t) 12 24 (fontified t) 24 40 (fontified t) 40 41 (fontified t) 41 69 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 69 70 (fontified t) 70 82 (fontified t) 82 98 (fontified t) 98 99 (fontified t) 99 127 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 127 128 (fontified t) 128 140 (fontified t) 140 156 (fontified t) 156 159 (fontified t))) (subcontent))) mapc(#[(x) "\302 \"\207" [x num org-export-latex-subcontent] 3] (((pos . 2) (level . 1) (occur . 1) (heading . #(" Failing table " 1 2 (target "sec-1" fontified t) 2 14 (target "sec-1" fontified t))) (content . #("\n\nExample:\n\n+----------+---------------+\n|Name |Examples |\n+----------+---------------+\n|foo |x ... y |\n+----------+---------------+\n\n\n" 0 12 (fontified t) 12 24 (fontified t) 24 40 (fontified t) 40 41 (fontified t) 41 69 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 69 70 (fontified t) 70 82 (fontified t) 82 98 (fontified t) 98 99 (fontified t) 99 127 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 127 128 (fontified t) 128 140 (fontified t) 140 156 (fontified t) 156 159 (fontified t))) (subcontent)))) org-export-latex-sub((((pos . 2) (level . 1) (occur . 1) (heading . #(" Failing table " 1 2 (target "sec-1" fontified t) 2 14 (target "sec-1" fontified t))) (content . #("\n\nExample:\n\n+----------+---------------+\n|Name |Examples |\n+----------+---------------+\n|foo |x ... y |\n+----------+---------------+\n\n\n" 0 12 (fontified t) 12 24 (fontified t) 24 40 (fontified t) 40 41 (fontified t) 41 69 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 69 70 (fontified t) 70 82 (fontified t) 82 98 (fontified t) 98 99 (fontified t) 99 127 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 127 128 (fontified t) 128 140 (fontified t) 140 156 (fontified t) 156 159 (fontified t))) (subcontent)))) org-export-latex-global(((((pos . 2) (level . 1) (occur . 1) (heading . #(" Failing table " 1 2 (target "sec-1" fontified t) 2 14 (target "sec-1" fontified t))) (content . #("\n\nExample:\n\n+----------+---------------+\n|Name |Examples |\n+----------+---------------+\n|foo |x ... y |\n+----------+---------------+\n\n\n" 0 12 (fontified t) 12 24 (fontified t) 24 40 (fontified t) 40 41 (fontified t) 41 69 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 69 70 (fontified t) 70 82 (fontified t) 82 98 (fontified t) 98 99 (fontified t) 99 127 (fontified t org-caption nil org-caption-shortn nil org-attributes nil org-label nil) 127 128 (fontified t) 128 140 (fontified t) 140 156 (fontified t) 156 159 (fontified t))) (subcontent))))) org-export-as-latex(nil) call-interactively(org-export-as-latex) org-export(nil) call-interactively(org-export nil nil) ============== Emacs : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN Package: Org-mode version 7.9.4 (7.9.4-dist @ c:/Users/kwilliams/share/emacs/site-lisp/org/) current state: ============== (setq org-export-babel-evaluate nil org-export-blocks '((uml iy/org-export-blocks-format-plantuml nil) (src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) 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-java:before { content: 'Java'; }\n .src-sql:before { content: 'SQL'; }\n .example { background-color: #FFF5F5; }\n /*]]>*/-->\n</style>" org-export-html-preamble-format '(("en" "<p class=\"author\">Author: <a href=\"mailto:%e\">%a</a></p>\n<p class=\"date\">Date: %d</p>\n") ) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-confirm-babel-evaluate nil org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-export-preprocess-hook '((lambda nil (org-set-local (quote org-complex-heading-regexp) "^\\(\\*+\\)\\(?: +\\(TODO\\|DONE\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(.*?\\)\\)??\\(?:[ ]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[ ]*$") ) ) org-babel-pre-tangle-hook '(save-buffer) org-occur-hook '(org-first-headline-recenter) org-export-interblocks '((src org-babel-exp-non-block-elements)) org-log-done 'time org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-alphabetical-lists t org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-export-html-postamble nil org-export-first-hook '(org-beamer-initialize-open-trackers) 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-src-preserve-indentation t 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-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-html-postamble-format '(("en" "<p class=\"author\">Author: %a (%e)</p>\n<p class=\"date\">Date: %d</p>\n<p class=\"creator\">Generated by %c</p>\n") ) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-tangle-lang-exts '(("perl" . "pl") ("emacs-lisp" . "el")) org-babel-load-languages '((emacs-lisp . t) (sh . t) (plantuml . t) (R . t) (dot . t) (perl . t)) org-confirm-shell-link-function 'yes-or-no-p )