From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Not overwriting unchanged source code files when tangling Date: Fri, 18 Nov 2011 15:27:36 +0100 Message-ID: <80fwhlqzdz.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Holger, Holger Hoefling wrote: > I have a problem/request for org-mode and was looking for help. I am using > org-mode to write source code files and tangle them out. I want to compile > them using make. My problem now is that org-mode overwrites the old files > every time I tangle them out, therefore also updating the time stamp - even > if nothing has changed. Subsequently, when I run make, everything gets > recompiled, not just the changed source code files as all time stamps have > changed. > > Is there an option for org-mode to only overwrite source code files that > get tangled out if they have truly changed? > > Thank you very much for your help! I have absolutely no idea on how hard it could be, but this makes me think at some "cache" mechanism, like what currently exists for skipping evaluation of unchanged code blocks. The key could be to use the cache feature for tangling as well? Best regards, Seb -- Sebastien Vauban