From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [babel] Collection of code block snippets Date: Wed, 7 Sep 2011 10:19:55 +0200 Message-ID: References: <878vq48dvt.fsf@gmail.com> <87zkiiq4ko.fsf@gmail.com> <87bouxr3v1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636426c7ff8f4f404ac559b51 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1DMa-0006Fr-BH for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 04:20:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1DMT-0002uL-D6 for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 04:20:04 -0400 Received: from mail-qw0-f48.google.com ([209.85.216.48]:36517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1DMS-0002qX-Sz for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 04:19:57 -0400 Received: by qwj9 with SMTP id 9so4773236qwj.7 for ; Wed, 07 Sep 2011 01:19:56 -0700 (PDT) In-Reply-To: <87bouxr3v1.fsf@gmail.com> 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Martyn Jago , emacs-orgmode@gnu.org --001636426c7ff8f4f404ac559b51 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Sep 6, 2011 at 7:13 PM, Eric Schulte wrote: > Hi Martyn, > > Martyn Jago writes: > > > Hi > > > > Rainer M Krug writes: > > > > [...] > > > >> > >>> > >>> > And if this could be done by the user to test .emacs configuration > >>> > settings, that would be really great. > >>> > > >>> > >>> That's a good idea. Simply running the Org-mode test suite is a good > >>> way for users to test the sanity of their local config. > >>> > >> > >> Yes - I have a few times run into problems due to my configuration file > and > >> only realized it later - if there would be ab org file which I could use > to > >> test easily my configuration directly after making the changes, life > would > >> have been much easier for me. This would also be useful for questions on > the > >> mailing list and for a kind of "quality control" for published configs > on > >> the web. > > > > In terms of running all the tests in 'batch mode' i.e. loading no > > personal configuration files (for development purposes), I have put > > together a small 'test-init.el' file to do that. > > > > I just made three small changes to the testing framework so it is now > possible to run the test suite in batch mode with the following. > > emacs -Q --batch -l path/to/org/testing/org-test.el --eval "(setq > org-confirm-babel-evaluate nil)" -f org-test-run-all-tests > This sounds very promising. As I have never used a test suite (I definitely should have...), would it be possible to add a section to the manual, in the sense of "How to test your emacs configuration", or even put add a menu item into the org menu in emacs to run the test suite with the actual configuration? Rainer > > Best -- Eric > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/ > > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug --001636426c7ff8f4f404ac559b51 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Sep 6, 2011 at 7:13 PM, Eric Sch= ulte <schult= e.eric@gmail.com> wrote:
Hi Martyn,

Martyn Jago <martyn.jago@b= tinternet.com> writes:

> Hi
>
> Rainer M Krug <r.m.krug@gmail= .com> writes:
>
> [...]
>
>>
>>>
>>> > And if this could be done by the user to test .emacs conf= iguration
>>> > settings, that would be really great.
>>> >
>>>
>>> That's a good idea. =A0Simply running the Org-mode test su= ite is a good
>>> way for users to test the sanity of their local config.
>>>
>>
>> Yes - I have a few times run into problems due to my configuration= file and
>> only realized it later - if there would be ab org file which I cou= ld use to
>> test easily my configuration directly after making the changes, li= fe would
>> have been much easier for me. This would also be useful for questi= ons on the
>> mailing list and for a kind of "quality control" for pub= lished configs on
>> the web.
>
> In terms of running all the tests in 'batch mode' i.e. loading= no
> personal configuration files (for development purposes), I have put > together a small 'test-init.el' file to do that.
>

I just made three small changes to the testing framework so it is now=
possible to run the test suite in batch mode with the following.

emacs -Q --batch -l path/to/org/testing/org-test.el --eval "(setq org-= confirm-babel-evaluate nil)" -f org-test-run-all-tests

This sounds very promising. As I have never used a tes= t suite (I definitely should have...), would it be possible to add a sectio= n to the manual, in the sense of "How to test your emacs configuration= ", or even put add a menu item into the org menu in emacs to run the t= est suite with the actual configuration?

Rainer
=A0

Best -- Eric



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

Centre of Excellence for Invasion Biolo= gy
Stellenbosch University
South Africa

Tel : =A0 =A0 =A0 +33 - (0)9= 53 10 27 44
Cell: =A0 =A0 =A0 +33 - (0)6 85 62 59 98
Fax (F): =A0 = =A0 =A0 +33 - (0)9 58 10 27 44

Fax (D): =A0 =A0+49 - (0)3 21 21 25 2= 2 44

email: =A0 =A0 =A0Rainer@krugs.de

Skype: =A0 =A0 =A0RMkrug

--001636426c7ff8f4f404ac559b51--