Ben Pfaff [Sun, 31 Jan 2016 20:28:54 +0000 (12:28 -0800)]
spreadsheet: Avoid sharing a dictionary between spreadsheet and client.
Spreadsheet implementations keep a copy of the dictionary that they build
to simplify reading cases. Until now, they shared that dictionary, in a
modifiable way, with their client. This meant, however, that if the client
modified the dictionary, it could screw up reading further cases from the
spreadsheet.
This commit fixes the problem by forcing clients to make their own copy of
the dictionary if they want to modify it.
John Darrington [Sat, 30 Jan 2016 20:46:07 +0000 (21:46 +0100)]
Correct the use of signals vs. events.
Commit f8fdc760d4ee04801a2da8af0700b2a87f724ae4 used a button-press-event
where a toggled signal was appropriate. The signal might come from a
number of sources, not necesarily a button event.
John Darrington [Tue, 19 Jan 2016 16:47:04 +0000 (17:47 +0100)]
GLM: Do not print the intercept if the model is unbalanced
I cannot find any reliable explanation of how to calculate this
figure for unbalanced models not what it actually means. So
let's not even bother with it until an expert comes along.
Ben Pfaff [Fri, 15 Jan 2016 14:35:00 +0000 (06:35 -0800)]
SAVE TRANSLATE: Improve error message.
Before this commit, "SAVE TRANSLATE OUTFILE='...'" gave a confusing error
message. After this commit, it clearly reports the missing slash before
OUTFILE.
John Darrington [Mon, 4 Jan 2016 19:30:45 +0000 (20:30 +0100)]
Fix bad syntax generation introduced by previous commit.
Commit cdfb21de2cbbf921b4e1fe0662439da1c460eabc replaced syntax_gen_pspp
with g_string_append_printf which was wrong, because the latter is
sensitive to the user's locale, which is not desired for syntax generation.
Ben Pfaff [Mon, 4 Jan 2016 04:12:29 +0000 (20:12 -0800)]
REGRESSION: Correctly handle data in temporary file for SAVE subcommand.
The format of the data in the temporary file used by the SAVE subcommand is
basically unrelated to the format of the data in the active file, but the
code that created and wrote cases to it created them as clones of cases
in the active file. This is simply incorrect behavior and causes nasty
failures when the active file has an inconvenient number of variables or
contains long string variables.
This commit fixes the problem by correctly creating the cases for the
temporary file using that file's own caseproto.
In addition, the assignment of caseproto indexes to variables in the
temporary file was broken for /SAVE=PRED, because it would skip index 0.
This commit also fixes that problem.
Ben Pfaff [Sun, 3 Jan 2016 06:05:00 +0000 (22:05 -0800)]
val-labs-dialog: Improve keyboard interface.
Before, hitting Enter in the value label dialog did nothing. With this
commit, Enter in the value entry moves to the label entry, and Enter in
the label entry adds or changes the value label and jumps back to the
value entry.
Ben Pfaff [Sun, 3 Jan 2016 04:44:22 +0000 (20:44 -0800)]
sys-file-reader: Disallow system and scratch long variable names too.
Before this commit, the system file reader disallowed system and
scratch short variable names (e.g. names beginning with $ or #)
but not as long variable names. This fixes the problem.
Ben Pfaff [Sun, 3 Jan 2016 04:19:32 +0000 (20:19 -0800)]
LIST: Allow a subset of the CASES settings to be specified.
The LIST documentation said that any subset of the FROM, TO, and BY
settings could be used on the CASES subcommand, but until now the command
as implemented required all of them to be present. This commit fixes
the implementation.
Also updates the documentation to reflect the current implementation.
changed a character in po/pl.po that was reported as illegal in sed on MacOS
build failed on MacOS because sed complained about an illegal character
in the po file. The build failed after the introduction of the sed script
that removes the build time stamp.
John Darrington [Wed, 9 Dec 2015 06:47:18 +0000 (07:47 +0100)]
Fix generate-changelog rule when building from outside of the source repository
The "make dist" target depends upon a phony target "generate-changelog" which
generates the ChangeLog file. Unfortunately, this was failing if the current
directory was not the source directory. Worse, this failure was not detected,
but would erroneously generate an empty ChangeLog.