From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Re: [BABEL] reload source code file after tangling? Date: Fri, 2 Jul 2010 15:17:55 +0200 Message-ID: References: <87630y84qv.fsf@gollum.intra.norang.ca> <871vbm81v6.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0441356026==" Return-path: Received: from [140.186.70.92] (port=33471 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUg7y-0000BX-JO for emacs-orgmode@gnu.org; Fri, 02 Jul 2010 09:17:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUg7x-0004GS-8Z for emacs-orgmode@gnu.org; Fri, 02 Jul 2010 09:17:58 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:36289) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUg7w-0004GG-VD for emacs-orgmode@gnu.org; Fri, 02 Jul 2010 09:17:57 -0400 Received: by pxi17 with SMTP id 17so3085249pxi.0 for ; Fri, 02 Jul 2010 06:17:56 -0700 (PDT) In-Reply-To: <871vbm81v6.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode --===============0441356026== Content-Type: multipart/alternative; boundary=00163645844243d677048a676abd --00163645844243d677048a676abd Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jul 2, 2010 at 3:11 PM, Bernt Hansen wrote: > Rainer M Krug writes: > > > On Fri, Jul 2, 2010 at 2:09 PM, Bernt Hansen wrote: > > > > Rainer M Krug writes: > > > > > is it possible to open (if not open yet) or re-load the new tangled > > > source code after tangling? > > > > 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. > > > > Perfect - that is doing exactly what it should. Now I just have to > > remember to activate it for the buffer. > > With global-auto-revert-mode there is nothing to remember :) since it is > active in /all/ buffers. This works great for me. > That is definitely true - I am just a little bit (too?) vary about global-auto-revert-mode for files I am editing in. So they are only reverted, if the files on the drive have changed irrespective of the state of the buffer? Well - I should possibly try it. Cheers, Rainer > > -Bernt > > _______________________________________________ > 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 > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: Rainer@krugs.de Skype: RMkrug Google: R.M.Krug@gmail.com --00163645844243d677048a676abd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Jul 2, 2010 at 3:11 PM, Bernt Ha= nsen <bernt@norang.= ca> wrote:
Rainer M Krug <r= .m.krug@gmail.com> writes:

> On Fri, Jul 2, 2010 at 2:09 PM, Bernt Hansen <bernt@norang.ca> wrote:
>
> =A0 =A0 Rainer M Krug <r.m.kr= ug@gmail.com> writes:
>
> =A0 =A0 > is it possible to open (if not open yet) or re-load the n= ew tangled
> =A0 =A0 > source code after tangling?
>
> =A0 =A0 Would global-auto-revert or auto-rever= t-mode do what you want? =A0I
> =A0 =A0 personally use global-auto-revert mode so if any loaded file c= hanges on
> =A0 =A0 disk and my buffer contents are unmodified it gets replaced wi= th what is
> =A0 =A0 on the disk.
>
> Perfect - that is doing exactly what it should. Now I just have to
> remember to activate it for the buffer.

With global-auto-revert-mode there is nothing to remember :) since it= is
active in /all/ buffers. =A0This works great for me.
<= br>That is definitely true - I am just a little bit (too?) vary about globa= l-auto-revert-mode for files I am editing in. So they are only reverted, if= the files on the drive have changed irrespective of the state of the buffe= r? Well - I should possibly try it.

Cheers,

Rainer
=A0

-Bernt

_______________________________________________
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



--
NEW GERMAN FAX NUMBER!!= !

Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation= Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invas= ion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch UniversityMain Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:= =A0 =A0 =A0 =A0 =A0 +27 - (0)83 9479 042
Fax: =A0 =A0 =A0 =A0 =A0 =A0+2= 7 - (0)86 516 2782
Fax: =A0 =A0 =A0 =A0 =A0 =A0+49 - (0)321 2125 2244
email: =A0 =A0 =A0 = =A0 =A0Rainer@krugs.de

Skype:= =A0 =A0 =A0 =A0 =A0RMkrug
Google: =A0 =A0 =A0 =A0 R.M.Krug@gmail.com

--00163645844243d677048a676abd-- --===============0441356026== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0441356026==--