From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Feature Request: Allow Tangling Named INCLUDEs Date: Mon, 27 Jan 2014 07:40:42 -0700 Message-ID: <87fvo9v5sr.fsf@gmail.com> References: <87ob3ifcx4.fsf@gmail.com> <877g9w9d10.fsf@bzg.ath.cx> <87ob2y5k3o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7nWu-00044T-V9 for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 09:51:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7nWn-0007TA-Te for emacs-orgmode@gnu.org; Mon, 27 Jan 2014 09:51:16 -0500 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Daly Cc: Bastien , emacs-orgmode@gnu.org Nick Daly writes: > Hi Bastien, > >> Nick Daly wrote: >> >>> Hi folks, I have a situation where I have many named code snippets >>> currently available in external files, and would like to tangle them >>> into an Org mode file. > > Bastien writes: >> I'm not the one who would undertake this, so my opinion on this should >> not matter much... but I think #+INCLUDE is well suited for exporting, >> not for tangling. I'm not able to say why, this is just an intuition. > > It seems to me like it's trying to unify exporting and tangling: this > emphasizes that tangling is just another (very specific plain-text) form > of exporting. I'm not sure tangling is naturally an exporting procedure (unlike weaving which is exactly exporting). Either way re-implementing tangling inside of the exporting seems like a large amount of work with little payoff (unless there are other export features which I'm missing which would be useful for tangling). > Using Eric's function for exporting allows me to remove lots of > boilerplate code from the source org file and keep the org source > better focused on the code's function and structure. > Great. Best, > > Sure it's weird, but it sure is handy. > > Nick -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D