Re: [Orgmode] Re: Bug: subtree export fails with src block

2010-10-05 Thread Jörg Hagmann

 On 10/4/10 5:06 PM, Eric Schulte wrote:

Similar,

I think this thread is also related
http://thread.gmane.org/gmane.emacs.orgmode/31312/focus=31392

either way the issue should be fixed in the latest Org-mode.  Please let
me know if that is not the case.

Yes, it works with today's org version.
Many thanks!
Jörg

Best -- Eric

Jörg Hagmannjoerg.hagm...@unibas.ch  writes:


  This might be the same problem I discussed recently?
See this thread:
http://thread.gmane.org/gmane.emacs.orgmode/31241/focus=31289

Jörg

On 10/4/10 3:48 PM, Eric Schulte wrote:

Eric Schulteschulte.e...@gmail.com   writes:

[...]

Giovanni Morettigiova...@reflections.co.nz   writes:


I'm just starting with Babel and have been puzzled about why one file
worked and another didn't.

I have been playing in a new file without any headers at all (no lines
starting with '*') and while I could execute the code in the buffer,
exporting to HTML always failed with:

 No such file: c:/org/babel-python-test.org::


Hmm, it looks like it's trying to find a file with :: attached to the
end which is probably the source of the issue.  I wonder if this is a
windows specific problem?


a-ha,

I just noticed that while my test file python.org was exporting w/o
problem, it was opening a python.org:: buffer in the process, so maybe
the reason this throws errors for you and not for me is just Unix's more
permissive file names.

I've just pushed up a change to the Babel exporter that will only concat
the :: to the end of a file name, where there is actually a heading to
following it.  Hopefully this will fix the error you described, please
let me know if that is not the case.

Best -- Eric

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bug: subtree export fails with src block

2010-10-04 Thread Eric Schulte
Hi Giovanni,

I'm unable to reproduce your bug.  I can successfully export the
following to html w/o issue.

--8---cut here---start-8---
Now let's see what happens:

#+begin_src python :results output :exports both
print Babel
limits = [1,2,3,4,5,6,7,8,9,10]

for i in limits:
  print Hello * i
#+end_src python
--8---cut here---end---8---

Are you using the latest version of Org-mode?  Could you try exporting
the above and see if it works for you.

some more comments inline below.

Giovanni Moretti giova...@reflections.co.nz writes:

 I'm just starting with Babel and have been puzzled about why one file
 worked and another didn't.

 I have been playing in a new file without any headers at all (no lines
 starting with '*') and while I could execute the code in the buffer,
 exporting to HTML always failed with:

No such file: c:/org/babel-python-test.org::


Hmm, it looks like it's trying to find a file with :: attached to the
end which is probably the source of the issue.  I wonder if this is a
windows specific problem?


 When searching, I found this thread and wondered if the heading were
 important. It turns out they are. In the block below, exporting to HTML
 fails if the first line isn't a heading.

 This seems like a clue ...

 Cheers and thanks
 Giovanni

 PS: the BOTH option for :export is hard to find - only :export none is in
 the intro page.


The documentation [1] is the place to look for header arguments and
their usage, but I suppose we should mention that more explicitly (at
all?)  from the introduction page.

Best -- Eric


 ===
 * Python Babel test

 Now let's see what happens:

 #+begin_src python :results output :exports both
 print Babel
 limits = [1,2,3,4,5,6,7,8,9,10]

 for i in limits:
   print Hello * i
 #+end_src python
 


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Footnotes: 
[1]  
http://orgmode.org/manual/Working-With-Source-Code.html#Working-With-Source-Code


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bug: subtree export fails with src block

2010-10-04 Thread Jörg Hagmann

 This might be the same problem I discussed recently?
See this thread: 
http://thread.gmane.org/gmane.emacs.orgmode/31241/focus=31289


Jörg

On 10/4/10 3:48 PM, Eric Schulte wrote:

Eric Schulteschulte.e...@gmail.com  writes:

[...]

Giovanni Morettigiova...@reflections.co.nz  writes:


I'm just starting with Babel and have been puzzled about why one file
worked and another didn't.

I have been playing in a new file without any headers at all (no lines
starting with '*') and while I could execute the code in the buffer,
exporting to HTML always failed with:

No such file: c:/org/babel-python-test.org::


Hmm, it looks like it's trying to find a file with :: attached to the
end which is probably the source of the issue.  I wonder if this is a
windows specific problem?


a-ha,

I just noticed that while my test file python.org was exporting w/o
problem, it was opening a python.org:: buffer in the process, so maybe
the reason this throws errors for you and not for me is just Unix's more
permissive file names.

I've just pushed up a change to the Babel exporter that will only concat
the :: to the end of a file name, where there is actually a heading to
following it.  Hopefully this will fix the error you described, please
let me know if that is not the case.

Best -- Eric

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bug: subtree export fails with src block

2010-10-04 Thread Eric Schulte
Similar,

I think this thread is also related
http://thread.gmane.org/gmane.emacs.orgmode/31312/focus=31392

either way the issue should be fixed in the latest Org-mode.  Please let
me know if that is not the case.

Best -- Eric

Jörg Hagmann joerg.hagm...@unibas.ch writes:

  This might be the same problem I discussed recently?
 See this thread:
 http://thread.gmane.org/gmane.emacs.orgmode/31241/focus=31289

 Jörg

 On 10/4/10 3:48 PM, Eric Schulte wrote:
 Eric Schulteschulte.e...@gmail.com  writes:

 [...]
 Giovanni Morettigiova...@reflections.co.nz  writes:

 I'm just starting with Babel and have been puzzled about why one file
 worked and another didn't.

 I have been playing in a new file without any headers at all (no lines
 starting with '*') and while I could execute the code in the buffer,
 exporting to HTML always failed with:

 No such file: c:/org/babel-python-test.org::

 Hmm, it looks like it's trying to find a file with :: attached to the
 end which is probably the source of the issue.  I wonder if this is a
 windows specific problem?

 a-ha,

 I just noticed that while my test file python.org was exporting w/o
 problem, it was opening a python.org:: buffer in the process, so maybe
 the reason this throws errors for you and not for me is just Unix's more
 permissive file names.

 I've just pushed up a change to the Babel exporter that will only concat
 the :: to the end of a file name, where there is actually a heading to
 following it.  Hopefully this will fix the error you described, please
 let me know if that is not the case.

 Best -- Eric

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bug: subtree export fails with src block

2010-10-03 Thread Giovanni Moretti
I'm just starting with Babel and have been puzzled about why one file
worked and another didn't.

I have been playing in a new file without any headers at all (no lines
starting with '*') and while I could execute the code in the buffer,
exporting to HTML always failed with:

   No such file: c:/org/babel-python-test.org::

When searching, I found this thread and wondered if the heading were
important. It turns out they are. In the block below, exporting to HTML
fails if the first line isn't a heading.

This seems like a clue ...

Cheers and thanks
Giovanni

PS: the BOTH option for :export is hard to find - only :export none is in
the intro page.

===
* Python Babel test

Now let's see what happens:

#+begin_src python :results output :exports both
print Babel
limits = [1,2,3,4,5,6,7,8,9,10]

for i in limits:
  print Hello * i
#+end_src python



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bug: subtree export fails with src block

2010-09-23 Thread Eric Schulte
Hi Christian,

Thanks for the complete bug report and reproduction information.
Unfortunately I was unable to reproduce the error you described.  Does
the file /Users/CM/org/test2.org exist on your system?  Presumably that
is the file from which you are exporting.  Is it saved before you
export?

Thanks -- Eric

I doubt the following is relevant, but...

I'm using the latest Org-mode from git.
Org-mode version 7.01trans (release_7.01h.566.gc33c)

and the latest Emacs from git
GNU Emacs 23.1.90.1

Noorul Islam K M noo...@noorul.com writes:

 Christian Moe m...@christianmoe.com writes:

 Hi,

 Selecting a subtree only, export to html fails if the subtree contains
 a src block. Using 7.01trans, freshly pulled, on Emacs 23.

 Example

 file: test2.org
 ---

 * Heading 1

 Text

 * Heading 2

 Text

 #+begin_src emacs-lisp
   (message Something funny with export)
 #+end_src

 ---

 Exporting the whole works fine.

 Exporting the first subtree (C-c C-e 1 b) works, but leaves an active
 region around the subtree.

 Yes you are right. I am able to reproduce this.


 Exporting the second subtree fails, producing no output, with these
 messages:

 : Exporting...
 : org-babel-exp processing...
 : org-open-file: No such file: /Users/CM/org/test2.org::


 I am not able to reproduce this. I did not get any errors.

 I have

 Org-mode version 7.01trans (release_7.01h.555.g90cc.dirty)
 GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2010-01-30 on 
 noorul

 Thanks and Regards
 Noorul


 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bug: subtree export fails with src block

2010-09-23 Thread Christian Moe

Hi, Eric,

Yes, the file is saved, and is the one I'm trying to export from.

If neither you nor Noorul can reproduce it, I may have messed up 
something. But I can't think what.


It looks like the problem arises in this part of org-babel-exp-src-blocks

   (link (org-make-link-string
  (concat
   org-current-export-file
   ::
   (nth 4 (ignore-errors (org-heading-components))

and that org-heading-components fails to return the heading text. 
Can't see why, though.


Yours,
Christian


On 9/23/10 5:17 PM, Eric Schulte wrote:

Hi Christian,

Thanks for the complete bug report and reproduction information.
Unfortunately I was unable to reproduce the error you described.  Does
the file /Users/CM/org/test2.org exist on your system?  Presumably that
is the file from which you are exporting.  Is it saved before you
export?

Thanks -- Eric

I doubt the following is relevant, but...

I'm using the latest Org-mode from git.
Org-mode version 7.01trans (release_7.01h.566.gc33c)

and the latest Emacs from git
GNU Emacs 23.1.90.1

Noorul Islam K Mnoo...@noorul.com  writes:


Christian Moem...@christianmoe.com  writes:


Hi,

Selecting a subtree only, export to html fails if the subtree contains
a src block. Using 7.01trans, freshly pulled, on Emacs 23.

Example

file: test2.org
---

* Heading 1

Text

* Heading 2

Text

#+begin_src emacs-lisp
   (message Something funny with export)
#+end_src

---

Exporting the whole works fine.

Exporting the first subtree (C-c C-e 1 b) works, but leaves an active
region around the subtree.


Yes you are right. I am able to reproduce this.



Exporting the second subtree fails, producing no output, with these
messages:

: Exporting...
: org-babel-exp processing...
: org-open-file: No such file: /Users/CM/org/test2.org::



I am not able to reproduce this. I did not get any errors.

I have

Org-mode version 7.01trans (release_7.01h.555.g90cc.dirty)
GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2010-01-30 on 
noorul

Thanks and Regards
Noorul


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--

Christian Moe
E-mail:  m...@christianmoe.com
Website: http://christianmoe.com


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode