[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [babel] using tramp when tangling

From: Dan Davison
Subject: Re: [Orgmode] [babel] using tramp when tangling
Date: Wed, 17 Mar 2010 16:06:13 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Maurizio Vitale
<address@hidden> 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.


> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

reply via email to

[Prev in Thread] Current Thread [Next in Thread]