1 diff -Naurp -x '*.[oah]' -x '.git*' -x praat praat_sources/fon/praat_TextGrid_init.c demo_praat_sources/fon/praat_TextGrid_init.c
2 --- praat_sources/fon/praat_TextGrid_init.c 2010-08-10 09:18:22.145443134 +0200
3 +++ demo_praat_sources/fon/praat_TextGrid_init.c 2010-09-08 14:12:37.273770594 +0200
4 @@ -682,7 +682,7 @@ static void cb_TextGridEditor_publish (A
8 - if (theCurrentPraatApplication -> batch) {
9 + if (theCurrentPraatApplication -> batch == 1) {
10 return Melder_error1 (L"Cannot edit a TextGrid from batch.");
12 WHERE (SELECTED && CLASS == classTextGrid) {
13 @@ -695,7 +695,7 @@ DIRECT (TextGrid_edit)
16 DIRECT (TextGrid_LongSound_edit)
17 - if (theCurrentPraatApplication -> batch) {
18 + if (theCurrentPraatApplication -> batch == 1) {
19 return Melder_error1 (L"Cannot edit a TextGrid from batch.");
21 LongSound longSound = NULL;
22 @@ -710,7 +710,7 @@ DIRECT (TextGrid_LongSound_edit)
25 DIRECT (TextGrid_SpellingChecker_edit)
26 - if (theCurrentPraatApplication -> batch) {
27 + if (theCurrentPraatApplication -> batch == 1) {
28 return Melder_error1 (L"Cannot edit a TextGrid from batch.");
30 SpellingChecker spellingChecker = NULL;
31 @@ -725,7 +725,7 @@ DIRECT (TextGrid_SpellingChecker_edit)
34 DIRECT (TextGrid_LongSound_SpellingChecker_edit)
35 - if (theCurrentPraatApplication -> batch) {
36 + if (theCurrentPraatApplication -> batch == 1) {
37 return Melder_error1 (L"Cannot edit a TextGrid from batch.");
39 LongSound longSound = NULL;
40 diff -Naurp -x '*.[oah]' -x '.git*' -x praat praat_sources/sys/praat.c demo_praat_sources/sys/praat.c
41 --- praat_sources/sys/praat.c 2010-11-02 09:30:25.285982433 +0100
42 +++ demo_praat_sources/sys/praat.c 2010-11-02 08:56:44.875259518 +0100
43 @@ -1368,6 +1368,7 @@ void praat_run (void) {
46 if (thePraatStandAloneScriptText != NULL) {
47 + theCurrentPraatApplication -> batch = 2;
48 praat_executeScriptFromText (thePraatStandAloneScriptText);
50 } else if (doingCommandLineInterface) {