From: Ben Pfaff Date: Wed, 24 Jul 2013 05:13:34 +0000 (-0700) Subject: Use "auto" mode for parsing syntax in the GUI (and elsewhere). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cd715175f1f9f1ed2eff7ecdaaf755a2cb79d64;p=pspp Use "auto" mode for parsing syntax in the GUI (and elsewhere). This should be less surprising, I hope, than always parsing syntax in "interactive" mode. Reported by Ronald Crichton . --- diff --git a/NEWS b/NEWS index bd7a6ae2a0..872dd87bfb 100644 --- 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: diff --git a/src/language/lexer/lexer.c b/src/language/lexer/lexer.c index 010875f5c2..61676bb717 100644 --- a/src/language/lexer/lexer.c +++ b/src/language/lexer/lexer.c @@ -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;