From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [babel] tangle creates different filename than it used to Date: Sat, 27 Feb 2010 00:20:45 -0500 Message-ID: <87hbp3i79u.fsf@stats.ox.ac.uk> References: <4B87F9C6.5050103@ifi.uio.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlF6l-0006WM-D3 for emacs-orgmode@gnu.org; Sat, 27 Feb 2010 00:20:55 -0500 Received: from [140.186.70.92] (port=33093 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlF6k-0006Vh-GF for emacs-orgmode@gnu.org; Sat, 27 Feb 2010 00:20:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NlF6j-0008IN-0V for emacs-orgmode@gnu.org; Sat, 27 Feb 2010 00:20:54 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:46122) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlF6i-0008IF-Q1 for emacs-orgmode@gnu.org; Sat, 27 Feb 2010 00:20:52 -0500 In-Reply-To: <4B87F9C6.5050103@ifi.uio.no> ("Martin G. =?utf-8?Q?Skj=C3=A6?= =?utf-8?Q?veland=22's?= message of "Fri, 26 Feb 2010 17:41:42 +0100") 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: =?utf-8?Q?Martin_G=2E_Skj=C3=A6veland?= Cc: emacs-orgmode "Martin G. Skj=C3=A6veland" writes: > Hi, > > running tangle with the following values > > #+begin_src xml :tangle test.rdf > ... > #+end_src > > used to create a file called test.rdf. However, after a fresh git pull > today this now tangles to the file test.rdf.xml, which is not what I > want. I understand. I wonder if babel should simply assume that the user has entered a file name with the correct extension when :tangle is something other than "yes". > > I think I could add rdf as a language babel would understand but > interpret as xml with something like > > (add-to-list 'org-babel-tangle-langs '("rdf" "xml" nil t)) To tell it to use extension .rdf for rdf blocks would be (add-to-list 'org-babel-tangle-langs '("rdf" "rdf" nil t)) and you'll also need (org-babel-add-interpreter "rdf") > > and rewrite the block to > > #+begin_src rdf :tangle test > ... > #+end_src > > , but then it complains that there is no rdf-mode. How can I best > solve this? To tell org to use sgml-mode for rdf: (add-to-list 'org-src-lang-modes '("rdf" . sgml)) Dan > > Thanks! > > Martin > > > _______________________________________________ > 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