From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Re: Bug: subtree export fails with src block Date: Thu, 23 Sep 2010 20:22:21 +0200 Message-ID: <4C9B9ADD.3090001@christianmoe.com> References: <4C9AFE14.5080601@christianmoe.com> <87ocbovs3r.fsf@noorul.maa.corp.collab.net> <87pqw4lc9z.fsf@gmail.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52902 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OyqPg-0005xd-Jg for emacs-orgmode@gnu.org; Thu, 23 Sep 2010 14:21:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OyqPd-0000Qd-61 for emacs-orgmode@gnu.org; Thu, 23 Sep 2010 14:20:56 -0400 Received: from mars.hitrost.net ([91.185.193.39]:40202) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OyqPc-0000QK-Rx for emacs-orgmode@gnu.org; Thu, 23 Sep 2010 14:20:53 -0400 In-Reply-To: <87pqw4lc9z.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org Mode 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 writes: > >> Christian Moe 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