emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Re: Bug: subtree export fails with src block
Date: Thu, 23 Sep 2010 20:22:21 +0200	[thread overview]
Message-ID: <4C9B9ADD.3090001@christianmoe.com> (raw)
In-Reply-To: <87pqw4lc9z.fsf@gmail.com>

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 M<noorul@noorul.com>  writes:
>
>> Christian Moe<mail@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:  mail@christianmoe.com
Website: http://christianmoe.com

  reply	other threads:[~2010-09-23 18:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23  7:13 Bug: subtree export fails with src block Christian Moe
2010-09-23  7:25 ` Noorul Islam K M
2010-09-23 15:17   ` Eric Schulte
2010-09-23 18:22     ` Christian Moe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-10-04  3:02 Giovanni Moretti
2010-10-04 13:21 ` Eric Schulte
2010-10-04 13:48   ` Eric Schulte
2010-10-04 15:02     ` Jörg Hagmann
2010-10-04 15:06       ` Eric Schulte
2010-10-05  7:07         ` Jörg Hagmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C9B9ADD.3090001@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).