From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [babel] using tramp when tangling Date: Wed, 17 Mar 2010 16:06:13 -0400 Message-ID: <87mxy6k91m.fsf@stats.ox.ac.uk> References: <87tyserdw0.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrzVT-0000SB-PE for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 16:06:19 -0400 Received: from [140.186.70.92] (port=60867 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrzVS-0000P3-E9 for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 16:06:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NrzVQ-0004ga-T8 for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 16:06:18 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:35397) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NrzVQ-0004gA-Kx for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 16:06:16 -0400 In-Reply-To: <87tyserdw0.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> (Maurizio Vitale's message of "Wed, 17 Mar 2010 14:39:43 -0400") 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: maurizio.vitale@polymath-solutions.com Cc: emacs-orgmode@gnu.org Maurizio Vitale writes: > I'd find useful to use tramp syntax in the :tangle specification. > In my case it would be to specify sudo when tangling config files that > are supposed to go to areas not writable by the user running Emacs. > Something like: > > #+begin_src sh :tangle /sudo::/etc/my_config_file > ... > #+end_src > > other people might be interested in remote access to tangle targets. > > Is there a way to achieve the above? > > If I try to tangle the above, I get something along the lines that > "tramp cannot append to file". Would it be possible to have org-babel to > (optionally) tangle to a buffer and then save to file in one go? I would like this to be possible. As you suggest, the change would involve not using append-to-file; it shouldn't be that hard. I've added it to the org-babel TODO list, but if you or anyone else would like to have a go that would be great. Dan > > Thanks a lot for the excellent addition to org-mode. > > Maurizio > > > > _______________________________________________ > 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