[O] Bug: Export of table.el to LaTeX fails [7.9.4 (7.9.4-dist @ c:/Users/kwilliams/share/emacs/site-lisp/org/)]

2013-03-28 Thread Ken Williams
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 

Re: [O] Bug: Export of table.el to LaTeX fails [7.9.4 (7.9.4-dist @ c:/Users/kwilliams/share/emacs/site-lisp/org/)]

2013-03-28 Thread Ken Williams
Something apparently even ate part of the attachment - there are some Null 
bytes in there I guess.  Here's a paste of the rest of the attachment, as 
viewed in `less` to zap the non-ASCIIs.

 -Ken


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^C\302@B!\310^C\302@B!\\311\312!r\211q\210\313\314\315\316\317\320^F^F!\321\\322\323%DC\216^Ac\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^B*\210r\300q\210\306@\204\200^@`Sf\337=\203{^@\340\202|^@\341\342\261^B\210\305@\330V\203\234^@\343\344\305@\306@\203\224^@\345\202\225^@\340^D$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) \30\\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) \30   \\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-subpos . 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

Re: [O] Bug: Export of table.el to LaTeX fails [7.9.4 (7.9.4-dist @ c:/Users/kwilliams/share/emacs/site-lisp/org/)]

2013-03-28 Thread Nicolas Goaziou
Hello,

Ken Williams ken.willi...@windlogics.com writes:

 Something apparently even ate part of the attachment - there are some
 Null bytes in there I guess.  Here's a paste of the rest of the
 attachment, as viewed in `less` to zap the non-ASCIIs.

FWIW, I cannot reproduce the problem on Org-mode version 8.0-pre
(release_8.0-pre-199-g2746c7)


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: Export of table.el to LaTeX fails [7.9.4 (7.9.4-dist @ c:/Users/kwilliams/share/emacs/site-lisp/org/)]

2013-03-28 Thread Ken Williams


 -Original Message-
 From: Nicolas Goaziou [mailto:n.goaz...@gmail.com]
 Sent: Thursday, March 28, 2013 10:49 AM
 To: Ken Williams

 Ken Williams ken.willi...@windlogics.com writes:

  Something apparently even ate part of the attachment - there are some
  Null bytes in there I guess.  Here's a paste of the rest of the
  attachment, as viewed in `less` to zap the non-ASCIIs.

 FWIW, I cannot reproduce the problem on Org-mode version 8.0-pre
 (release_8.0-pre-199-g2746c7)

I can't upgrade to 8.0 here, is there anyone that could try on a 7.x platform 
to confirm?

Are all those Null bytes  line noise in the stack trace normal, or do they 
look like some kind of buffer overflow or something?

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