From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Daly Subject: Re: Feature Request: Allow Tangling Named INCLUDEs Date: Sun, 26 Jan 2014 18:44:43 -0600 Message-ID: <87ob2y5k3o.fsf@gmail.com> References: <87ob3ifcx4.fsf@gmail.com> <877g9w9d10.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7aJw-0002Cp-Gj for emacs-orgmode@gnu.org; Sun, 26 Jan 2014 19:45:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7aJo-0007rL-35 for emacs-orgmode@gnu.org; Sun, 26 Jan 2014 19:45:00 -0500 In-Reply-To: <877g9w9d10.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org --=-=-= 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. 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. Sure it's weird, but it sure is handy. Nick --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJS5av7AAoJEJ8nM/QJKNI6MhkP/R5OZLa9jXKw5h806YJxC8o5 SwTt+ZkxaFzOyPzlfRg8aUUsnehQKgdWeORFrJhsK7rCDETbyfxVYZagKB5tZjbb CSkPNCACjjHd9oDzBupy3aAD1mhMHXqildTBFtq8ACo4fXEWNkIbFPX1Ei09TRZJ EWc2inseZyJsU3p0ZK80LswY8H44+JbN+5wfO3L9eAjq0KTlhEDPqfYT8h0zcyMR ZBfF8rTPYeVJnxtv924hnjynB4Bv01Yk0hw9K7Y/4dqB/YaFOKD986+nZK0bXHlm Nlhb0QOZbCcwFnRfXKaJhU8AQqd6b144Sxn/YGU7GTwY50DeTX1ipI3jmPMKwI5X 5Xi2QSlTBkcrr6PJBB06NNtNJlpCMFMFTpX08+lTNdzPQg9G/dZRpYewKrb86alR K9XkOQ+dRNCFasv2ttDk0/eSqo7tzyzHsw6m4WbxJrxCrb3tXsBs01pDRTVR6b5z 5ovDctqhQNQpcYuks/zqEFmu9Eaz3+52avd33YWJzfGw2LKkpjxG3KJo7KXAiWBh As2X5LKKp4FMaze96S3HrA7t1UUH6lB6jpPp81R6tZfw7FldXTh4BDORswx6uhzH bpi1gy1GJnKoAOgpavSajrHB0gqKxPOJlt0okrPwrUZXVAbFSP9FLRinH2vP7Hb9 huy1GPZ8QgdImG3VpFbi =slqC -----END PGP SIGNATURE----- --=-=-=--