Re: [O] [Bug] Exporting subtree with code

2011-09-13 Thread Maximilian Matthé
maxi.mat...@googlemail.com (Maximilian Matthé) writes:

I'm using org-mode version 
Org-mode version 7.7 (release_7.7.280.gdbf0)

Thanks for your help!

 Hi guys,

 I found a bug (or I'm doing something wrong): See this org file:

 

 * 1
 * 2
 ** 2.1
 ** 2.2
 Exporting this subtree to latex (C-c C-e 1 d) raises
 wrong type argument: arrayp

 #+BEGIN_SRC python :results output :export results
 print 1
 print 2
 #+END_SRC

 #+results:
 : 1
 : 2

 

 I can export and process the whole file to latex und pdf with no errors,
 but when I try to export the subtree 2.2 I get the given error. What's
 going on here?

 Regards, Max




Re: [O] [Bug] Exporting subtree with code

2011-09-13 Thread Eric Schulte
maxi.mat...@googlemail.com (Maximilian Matthé) writes:

 Hi guys,

 I found a bug (or I'm doing something wrong): See this org file:

 

 * 1
 * 2
 ** 2.1
 ** 2.2
 Exporting this subtree to latex (C-c C-e 1 d) raises
 wrong type argument: arrayp

 #+BEGIN_SRC python :results output :export results
 print 1
 print 2
 #+END_SRC

 #+results:
 : 1
 : 2

 

 I can export and process the whole file to latex und pdf with no errors,
 but when I try to export the subtree 2.2 I get the given error. What's
 going on here?


I just pushed up a fix for this issue.  Thanks for reporting and please
let me know if the problem persists with the latest version of Org-mode
from git head.

Best -- Eric


 Regards, Max



-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] [Bug] Exporting subtree with code

2011-09-13 Thread Maximilian Matthé
Eric Schulte schulte.e...@gmail.com writes:

 maxi.mat...@googlemail.com (Maximilian Matthé) writes:

 Hi guys,

 I found a bug (or I'm doing something wrong): See this org file:

 

 * 1
 * 2
 ** 2.1
 ** 2.2
 Exporting this subtree to latex (C-c C-e 1 d) raises
 wrong type argument: arrayp

 #+BEGIN_SRC python :results output :export results
 print 1
 print 2
 #+END_SRC

 #+results:
 : 1
 : 2

 

 I can export and process the whole file to latex und pdf with no errors,
 but when I try to export the subtree 2.2 I get the given error. What's
 going on here?


 I just pushed up a fix for this issue.  Thanks for reporting and please
 let me know if the problem persists with the latest version of Org-mode
 from git head.

 Best -- Eric


Hi,

I just pulled the new version, but now I get another error message,
here's the message lock

,
| SUBTREE
| Export buffer: 
| Export subtree: 
| Mark set
| Exporting to PDF...
| Exporting to LaTeX...
| OVERVIEW
| Loading reftex...done
| Compiling label environment definitions...done
| Scanning entire document...
| Scanning file /home/mmatthe/temp/bla.tex
| Scanning section 1 ...
| Scanning section 2 ...
| Scanning document... done
| Applying style hooks... done
| Loading reftex...done
| org-babel-exp processing...
| Loading reftex...done
| org-babel-exp processing...
| org-babel-get-src-block-info: Wrong type argument: char-or-string-p, nil
`
 I attach the file I'm using (it's the same).
Regards, Max



bla.org
Description: Binary data


Re: [O] [Bug] Exporting subtree with code

2011-09-13 Thread Eric Schulte

 I just pushed up a fix for this issue.  Thanks for reporting and
please let me know if the problem persists with the latest version of
Org-mode from git head.

 Best -- Eric


 Hi,

 I just pulled the new version, but now I get another error message,
 here's the message lock


I just pushed up another fix which should resolve this problem.

What is happening is that the latex export is processing the buffer
twice.  On the first pass through the code block is evaluated, its
results inserted, and its body removed.  On the second pass through the
code block processing is choking on a block with no body.  The
processing should now be robust to blocks with no bodies, however a
better fix would be to find out why the buffer is processed twice on
latex export and change that behavior.

Cheers -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] [Bug] Exporting subtree with code

2011-09-13 Thread Maximilian Matthé
Eric Schulte schulte.e...@gmail.com writes:



 Hi,

 I just pulled the new version, but now I get another error message,
 here's the message lock


 I just pushed up another fix which should resolve this problem.

 Cheers -- Eric

Thanks Eric, the error message is gone, I can now export the subtree
again :)

Regards, Max