From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Something to watch out for when including files Date: Wed, 21 Sep 2016 07:44:50 +0100 Message-ID: <874m594uql.fsf@delle7240.chemeng.ucl.ac.uk> References: <87y42mfvgw.fsf@ucl.ac.uk> <58a8c0419a56444fb6956cd709d26dec@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmbw0-0002h1-1T for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 03:27:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmbvu-0001D0-Mn for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 03:27:11 -0400 Received: from mail-db5eur01on0104.outbound.protection.outlook.com ([104.47.2.104]:53952 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmbvu-0001Co-CM for emacs-orgmode@gnu.org; Wed, 21 Sep 2016 03:27:06 -0400 In-Reply-To: <58a8c0419a56444fb6956cd709d26dec@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (Charles C. Berry's message of "Tue, 20 Sep 2016 23:32:05 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Charles C. Berry" Cc: Emacs Org mode mailing list On Tuesday, 20 Sep 2016 at 23:32, Charles C. Berry wrote: > I find myself in the habit of using inlinetasks tagged noexport for > various things and that might serve you in this case. That is, convert the > headline section to an inlinetask. Hi Chuck, Yes, this would work. But, in the end, simply removing the section was sufficient as it really wasn't necessary (and that's why I have everything under version control... ;-). > Another possibility is to use something like: > > #+header: :exports results :results raw replace > #+NAME: import-include-dot-org > > #+BEGIN_SRC emacs-lisp > (require 'ox-org) > (org-export-string-as "#+INCLUDE: include.org" 'org t) > #+END_SRC > > which will strip out headlines tagged with noexport during the babel phase > of export (i.e. before parsing). This is quite ingenious! I like it. Don't need it now but worth keeping note of for the future. Thanks. >> I do wonder whether the org export approach (i.e. how it "includes" >> files) is correct but I can understand why the implementation is the way >> it is. > > I agree about the implementation. Trying to make it smarter is asking for > trouble. Yes, probably. Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa