Don't offer both the full and abbreviated names for a single command
[pspp-builds.git] / src / language / ChangeLog
index 4e88e3e7cfd4058558c5bae05401460567fed7dc..812491ba0cb784ed07c7355b226978c780ee8a73 100644 (file)
@@ -1,3 +1,64 @@
+Wed Jun 28 11:38:23 2006  Ben Pfaff  <blp@gnu.org>
+
+       Don't offer both the full and abbreviated names for a single
+       command in command name completion.
+       
+       * command.c: (enum flags) Add F_ABBREV flag.
+       (cmd_complete) Ignore command with F_ABBREV flag set.
+
+       * command.def: Add F_ABBREV to N, Q, SORT commands.
+
+Tue Jun 27 22:36:38 2006  Ben Pfaff  <blp@gnu.org>
+
+       Fix regression in command name completion reported by John
+       Darrington.  Now completion is again state-dependent and occurs
+       only on the first line of a command.
+       
+       * command.c (do_parse_command): Move reading the first token of
+       the command here, from execute_command and cmd_input_program.
+       Call set_completion_state and getl_set_prompt_style here.
+       (do_parse_command) Use in_correct_state instead of
+       verify_valid_command.
+       (verify_valid_command) Break into two new functions,
+       in_correct_state and report_state_mismatch.
+       (set_completion_state) New function.
+       (cmd_complete) New function.
+       [HAVE_READLINE] (pspp_attempted_completion_function) Removed.
+       [HAVE_READLINE] (command_generator) Removed.
+
+       * line-buffer.c: (struct getl_source) Change `interactive' member
+       signature to take enum getl_prompt_style instead of const char *.
+       (create_interactive_source) Ditto, for parameter type.
+       (getl_append_interactive) Ditto.
+       (read_line_from_source) Pass get_prompt_style() to interactive
+       function instead of get_prompt().
+       (get_prompt) Removed.
+       (get_prompt_style) New function.
+       
+Sat May  6 13:25:25 2006  Ben Pfaff  <blp@gnu.org>
+
+       Continue reforming procedure execution.  In this phase, remove
+       PROCESS IF, which was deprecated anyway and can be easily
+       simulated with TEMPORARY followed by SELECT IF.
+
+       * command.def: Removed PROCESS IF.
+
+Mon May  1 18:17:52 2006  Ben Pfaff  <blp@gnu.org>
+
+       Further clean up the CMD_* command result codes.
+       
+       * command.c (cmd_result_is_valid): New function.
+       (cmd_result_is_success) Assert that argument is valid.  Simplified
+       check to one for a positive result.
+       (cmd_result_is_failure) Assert that argument is valid.  Simplified
+       check to one for a negative result.
+       (do_parse_command) Check that command's returned result is valid.
+
+       * command.h: (enum cmd_result) Renamed CMD_QUIT to CMD_FINISH and
+       updated all users.  Removed CMD_END_SUBLOOP in favor of new
+       CMD_PRIVATE_FIRST...CMD_PRIVATE_LAST range.  Changed failure codes
+       to have negative values.
+
 Mon May  1 15:56:56 2006  Ben Pfaff  <blp@gnu.org>
 
        Remove vestiges of FILE TYPE support.