From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maurizio Vitale Subject: [babel] using tramp when tangling Date: Wed, 17 Mar 2010 14:39:43 -0400 Message-ID: <87tyserdw0.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> Reply-To: maurizio.vitale@polymath-solutions.com 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 1NrxLw-0003Vk-2a for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 13:48:20 -0400 Received: from [140.186.70.92] (port=51337 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrxLu-0003U6-JA for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 13:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NrxLt-0005hL-6Z for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 13:48:18 -0400 Received: from lo.gmane.org ([80.91.229.12]:53064) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NrxLt-0005h1-0g for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 13:48:17 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NrxLo-0002h9-Se for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 18:48:12 +0100 Received: from pool-96-236-162-100.pitbpa.east.verizon.net ([96.236.162.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Mar 2010 18:48:12 +0100 Received: from maurizio.vitale by pool-96-236-162-100.pitbpa.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Mar 2010 18:48:12 +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: emacs-orgmode@gnu.org 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? Thanks a lot for the excellent addition to org-mode. Maurizio