Don't offer both the full and abbreviated names for a single command
[pspp-builds.git] / src / language / ChangeLog
1 Wed Jun 28 11:38:23 2006  Ben Pfaff  <blp@gnu.org>
2
3         Don't offer both the full and abbreviated names for a single
4         command in command name completion.
5         
6         * command.c: (enum flags) Add F_ABBREV flag.
7         (cmd_complete) Ignore command with F_ABBREV flag set.
8
9         * command.def: Add F_ABBREV to N, Q, SORT commands.
10
11 Tue Jun 27 22:36:38 2006  Ben Pfaff  <blp@gnu.org>
12
13         Fix regression in command name completion reported by John
14         Darrington.  Now completion is again state-dependent and occurs
15         only on the first line of a command.
16         
17         * command.c (do_parse_command): Move reading the first token of
18         the command here, from execute_command and cmd_input_program.
19         Call set_completion_state and getl_set_prompt_style here.
20         (do_parse_command) Use in_correct_state instead of
21         verify_valid_command.
22         (verify_valid_command) Break into two new functions,
23         in_correct_state and report_state_mismatch.
24         (set_completion_state) New function.
25         (cmd_complete) New function.
26         [HAVE_READLINE] (pspp_attempted_completion_function) Removed.
27         [HAVE_READLINE] (command_generator) Removed.
28
29         * line-buffer.c: (struct getl_source) Change `interactive' member
30         signature to take enum getl_prompt_style instead of const char *.
31         (create_interactive_source) Ditto, for parameter type.
32         (getl_append_interactive) Ditto.
33         (read_line_from_source) Pass get_prompt_style() to interactive
34         function instead of get_prompt().
35         (get_prompt) Removed.
36         (get_prompt_style) New function.
37         
38 Sat May  6 13:25:25 2006  Ben Pfaff  <blp@gnu.org>
39
40         Continue reforming procedure execution.  In this phase, remove
41         PROCESS IF, which was deprecated anyway and can be easily
42         simulated with TEMPORARY followed by SELECT IF.
43
44         * command.def: Removed PROCESS IF.
45
46 Mon May  1 18:17:52 2006  Ben Pfaff  <blp@gnu.org>
47
48         Further clean up the CMD_* command result codes.
49         
50         * command.c (cmd_result_is_valid): New function.
51         (cmd_result_is_success) Assert that argument is valid.  Simplified
52         check to one for a positive result.
53         (cmd_result_is_failure) Assert that argument is valid.  Simplified
54         check to one for a negative result.
55         (do_parse_command) Check that command's returned result is valid.
56
57         * command.h: (enum cmd_result) Renamed CMD_QUIT to CMD_FINISH and
58         updated all users.  Removed CMD_END_SUBLOOP in favor of new
59         CMD_PRIVATE_FIRST...CMD_PRIVATE_LAST range.  Changed failure codes
60         to have negative values.
61
62 Mon May  1 15:56:56 2006  Ben Pfaff  <blp@gnu.org>
63
64         Remove vestiges of FILE TYPE support. 
65         
66         * command.def: Mark FILE TYPE, RECORD TYPE unimplemented.
67
68 Wed Apr 26 21:13:46 2006  Ben Pfaff  <blp@gnu.org>
69
70         CLEAR TRANSFORMATIONS is unsafe as implemented.  It's a fair
71         amount of work to implement it correctly, so make it
72         unimplemented.
73                 
74         * command.c: (cmd_clear_transformations) Removed.
75
76         * command.def: Mark CLEAR TRANSFORMATIONS as unimplemented.
77
78 Wed Apr 26 13:06:42 2006  Ben Pfaff  <blp@gnu.org>
79
80         Work on readline completion.
81
82         * command.c: (pspp_completion_function) Removed.
83         (pspp_attempted_completion_function) New function.
84         (command_generator) New function.
85
86 Wed Apr 26 13:04:48 2006  Ben Pfaff  <blp@gnu.org>
87
88         Improve the way we handle the various parsing "states".  Until now
89         we've hard-coded the state transitions in the command definition
90         file, but that's error-prone and, worse, it's redundant--we can
91         figure out what state we're in anyhow.  We can cleanly handle
92         INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
93         
94         * command.c: (cmd_result_is_success) New function.
95         (cmd_result_is_failure) New function.
96         (enum states) New enum.
97         (enum flags) New enum.
98         (struct command) Add states, flags members.  Remove transition,
99         skip_entire_name, debug members.  Renamed func member as function.
100         (macro DEFCMD) Removed.
101         (macro DBGCMD) Removed.
102         (macro SPCCMD) Removed.
103         (macro UNIMPL) Removed.
104         (macro DEF_CMD) New.
105         (macro UNIMPL_CMD) New.
106         (macro COMMAND_CNT) Changed to static const var, renamed
107         command_cnt.  Updated all references.
108         (FILE_TYPE_okay) Removed.
109         (cmd_parse) Rewrote in terms of do_parse_command().
110         (do_parse_command) New function.
111         (find_command) New function.
112         (unknown_command_error) Use struct string to simplify code.
113         (parse_command_name) Recognize comment command names.  Handle
114         flags.  Don't reject testing-mode-only commands here--let higher
115         level do it.
116         (verify_valid_command) New function.
117         (cmd_comment) New function.
118
119         * command.def: Completely rewritten and now sensibly organized.
120
121         * command.h: (enum STATE_*) Renamed CMD_STATE_*.
122         (CMD_*) Now "enum cmd_result".  Added CMD_QUIT.  New
123         CMD_END_SUBLOOP.  Removed CMD_TRAILING_GARBAGE, CMD_PART_SUCCESS,
124         CMD_PART_SUCCESS_MAYBE and replaced all references by CMD_FAILURE.
125         Added CMD_NOT_IMPLEMENTED.
126         (macro DEFCMD) Removed.
127         (macro DBGCMD) Removed.
128         (macro SPCCMD) Removed.
129         (macro UNIMPL) Removed.
130         (macro DEF_CMD) New.
131         (macro UNIMPL_CMD) New.
132
133 Mon Apr  3 11:03:36 2006  Ben Pfaff  <blp@gnu.org>
134
135         * list.q: (write_all_headers) Adapt to new html and output
136         internals.
137         (clean_up) Ditto.
138         (write_varname) Ditto.
139         (write_fallback_headers) Ditto.
140         (determine_layout) Ditto.
141         (list_cases) Ditto.
142         
143
144 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
145         
146         * Moved files from src directory