Fix regression in command name completion reported by John Darrington.
[pspp-builds.git] / src / ui / terminal / ChangeLog
index 00cef0f79459527b4e61bb2077af79f803df4037..039ac64460916ae31328606c1aea22603ff5375e 100644 (file)
@@ -1,3 +1,22 @@
+Tue Jun 27 22:44:56 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.
+       
+       * main.c (main): Reading of first token in command moved into
+       cmd_parse.
+       (execute_command) Removed.
+
+       * read-line.c: [HAVE_READLINE] (readln_initialize) Postpone
+       setting rl_attempted_completion_function until readln_read.
+       [HAVE_READLINE] (readln_read) Change param from const char * to
+       enum getl_prompt_style.  Set rl_attempted_completion_function
+       based on style.
+       [HAVE_READLINE] (complete_command_name) New function.
+       [HAVE_READLINE] (dont_complete) New function.
+       [HAVE_READLINE] (command_generator) New function.
+
 Tue Jun 27 08:23:07 2006  Ben Pfaff  <blp@gnu.org>
 
        * automake.mk (src_ui_terminal_pspp_LDADD): Add $(LIBICONV).