From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [BABEL] reload source code file after tangling? Date: Fri, 02 Jul 2010 08:09:28 -0400 Message-ID: <87630y84qv.fsf@gollum.intra.norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=48755 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUf3n-0005zn-HW for emacs-orgmode@gnu.org; Fri, 02 Jul 2010 08:09:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUf3m-0002LP-Dw for emacs-orgmode@gnu.org; Fri, 02 Jul 2010 08:09:35 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:62597) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUf3m-0002LF-9p for emacs-orgmode@gnu.org; Fri, 02 Jul 2010 08:09:34 -0400 In-Reply-To: (Rainer M. Krug's message of "Fri\, 2 Jul 2010 09\:25\:24 +0200") 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: Rainer M Krug Cc: emacs-orgmode Rainer M Krug writes: > is it possible to open (if not open yet) or re-load the new tangled > source code after tangling? > > I usually have the tangled source code open and submit the file to R > for debugging and if it would be automatically reloaded, my life would > be a little bit easier. Would global-auto-revert or auto-revert-mode do what you want? I personally use global-auto-revert mode so if any loaded file changes on disk and my buffer contents are unmodified it gets replaced with what is on the disk. This of course only works if it is already open. HTH, Bernt