Use "auto" mode for parsing syntax in the GUI (and elsewhere). 20130724030505/pspp 20130725030502/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 24 Jul 2013 05:13:34 +0000 (22:13 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 24 Jul 2013 05:20:44 +0000 (22:20 -0700)
This should be less surprising, I hope, than always parsing syntax in
"interactive" mode.

Reported by Ronald Crichton <Ronald.Crichton@cit.edu.au>.

NEWS
src/language/lexer/lexer.c

diff --git a/NEWS b/NEWS
index bd7a6ae2a0a259bc9b062b0fb188c8c6a09db344..872dd87bfb6f990269588abede970fec70daebdb 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,14 @@ See the end for copying conditions.
 
 Please send PSPP bug reports to bug-gnu-pspp@gnu.org.
 
+Changes after 0.8.0:
+
+ * PSPPIRE graphical user interface improvements:
+
+   - Syntax windows now parse syntax in "auto" mode, which in practice
+     should mean that both "batch" and "interactive" syntax now works,
+     instead of just "interactive" syntax.
+
 Changes from 0.6.2 to 0.8.0:
 
  * New commands:
index 010875f5c29f654f6cbaea6b4cf98ee81a613e56..61676bb717e21f542c3c8a981e7eb7106cc324d3 100644 (file)
@@ -1646,7 +1646,7 @@ lex_reader_for_substring_nocopy (struct substring s)
 
   r = xmalloc (sizeof *r);
   lex_reader_init (&r->reader, &lex_string_reader_class);
-  r->reader.syntax = LEX_SYNTAX_INTERACTIVE;
+  r->reader.syntax = LEX_SYNTAX_AUTO;
   r->s = s;
   r->offset = 0;