a98b9244aa0affea65d68e4a8ba0fdadba203360
[pspp-builds.git] / src / ui / terminal / ChangeLog
1 2007-07-25  Ben Pfaff  <blp@gnu.org>
2
3         Make interactive output go to the terminal (bug #17213), by
4         causing the UI to flush output to the user when it prompts for a
5         command.
6
7         * command-line.c (parse_command_line): Configure interactive
8         output devices if appropriate.
9
10         * read-line.c (readln_read): Flush output if this is a prompt for
11         the first line of a command.
12
13 2007-06-06  Ben Pfaff  <blp@gnu.org>
14
15         Adapt case sources, sinks, and clients of procedure code to the
16         new infrastructure.
17         
18         * main.c: No need for fastfile_factory any more.
19
20 2007-02-25  Ben Pfaff  <blp@gnu.org>
21
22         Thanks to Jason Stover for verifying that this patch helps under
23         NetBSD.
24
25         * main.c [HAVE_IEEE_FP]: Include <ieeefp.h>.
26         (fpu_init) [HAVE_IEEE_FP]: Use setfpmask to mask floating-point
27         exceptions.
28
29 Sun Feb 18 13:28:26 2007  Ben Pfaff  <blp@gnu.org>
30
31         * msg-ui.c: Don't include exit.h, because gnulib fixes up stdlib.h
32         as necessary.  Do include stdlib.h, because exit.h did so for us
33         and we need it.
34
35 Thu Feb  8 15:07:04 2007  Ben Pfaff  <blp@gnu.org>
36
37         * read-line.c (readln_initialize): Instead of only supporting
38         history in unix, always support history, and only support a
39         history file when $HOME is defined.
40         (readln_uninitialize): Ditto.
41         (welcome) Call readln_initialize instead of duplicating code.
42
43 Sun Dec 10 11:13:53 2006  Ben Pfaff  <blp@gnu.org>
44
45         * command-line.c (pre_syntax_message): Use term "syntax" instead
46         of "script".
47
48 Sat Dec  9 07:21:02 WST 2006 John Darrington <john@darrington.wattle.id.au>
49
50         * msg-ui.c (msg_ui_done): call msg_locator_done.
51
52 Sun Dec  3 11:57:00 2006  Ben Pfaff  <blp@gnu.org>
53
54         * read-line.c (read_interactive): Always read GETL_INTERACTIVE
55         lines.
56         
57 Thu Nov 16 20:46:35 WST 2006 John Darrington <john@darrington.wattle.id.au>
58
59         * main.c: Connect debugger on errors.
60
61 Tue Nov  7 20:54:32 WST 2006 John Darrington <john@darrington.wattle.id.au>
62
63         * command-line.c msg-ui.c msg-ui.h main.c: Added an -e
64         option to set the file for error messages.
65
66 Sat Nov  4 15:48:04 2006  Ben Pfaff  <blp@gnu.org>
67
68         * msg-ui.c (handle_msg): Only write message to terminal if
69         get_error_routing_to_terminal() returns true.
70
71 Fri Jul  7 20:03:42 2006  Ben Pfaff  <blp@gnu.org>
72
73         * main.c: (main) Register SIGABRT with bug_handler also.
74         (bug_handler) Handle SIGABRT also.
75
76 Tue Jun 27 22:44:56 2006  Ben Pfaff  <blp@gnu.org>
77
78         Fix regression in command name completion reported by John
79         Darrington.  Now completion is again state-dependent and occurs
80         only on the first line of a command.
81         
82         * main.c (main): Reading of first token in command moved into
83         cmd_parse.
84         (execute_command) Removed.
85
86         * read-line.c: [HAVE_READLINE] (readln_initialize) Postpone
87         setting rl_attempted_completion_function until readln_read.
88         [HAVE_READLINE] (readln_read) Change param from const char * to
89         enum getl_prompt_style.  Set rl_attempted_completion_function
90         based on style.
91         [HAVE_READLINE] (complete_command_name) New function.
92         [HAVE_READLINE] (dont_complete) New function.
93         [HAVE_READLINE] (command_generator) New function.
94
95 Tue Jun 27 08:23:07 2006  Ben Pfaff  <blp@gnu.org>
96
97         * automake.mk (src_ui_terminal_pspp_LDADD): Add $(LIBICONV).
98         Thanks to Jason Stover for reporting the omission.
99
100 Thu May  4 21:50:59 2006  Ben Pfaff  <blp@gnu.org>
101
102         Continue reforming procedure execution.  In this phase, move
103         procedure.c and procedure.h from src to src/data.  Update
104         makefiles and #includes accordingly.
105
106         * automake.mk: (src_ui_terminal_pspp_SOURCES) Remove
107         src/procedure.c and src/procedure.h.
108         (src_ui_terminal_pspp_LDADD) Move libexpressions.a later in list
109         to make the link work.
110
111 Wed May  3 23:09:37 2006  Ben Pfaff  <blp@gnu.org>
112
113         Continue reforming procedure execution.  In this phase, get rid of
114         many global variables, consolidating procedure execution in
115         procedure.c.  Encapsulate transformations in new "struct
116         trns_chain".  Also, change implementation of N OF CASES, FILTER,
117         and PROCESS IF from special cases to transformations.
118          
119         * main.c: (main) Use proc_init().
120         (terminate) Use proc_done().
121
122 Wed Apr 26 13:34:54 2006  Ben Pfaff  <blp@gnu.org>
123
124         Improve command name completion in readline.
125         
126         * read-line.c (readln_initialize): Set up readline to only break
127         words for completion at new-line.  That way we can complete a
128         whole command name.  Also, set rl_attempted_completion_function
129         instead of rl_completion_entry_function so we can disable
130         completing on file names, which is usually not what we want in
131         PSPP.
132
133 Wed Apr 26 13:31:00 2006  Ben Pfaff  <blp@gnu.org>
134
135         Improve the way we handle the various parsing "states".  Until now
136         we've hard-coded the state transitions in the command definition
137         file, but that's error-prone and, worse, it's redundant--we can
138         figure out what state we're in anyhow.  We can cleanly handle
139         INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
140         
141         * automake.mk (src_ui_terminal_pspp_LDADD): Move libui earlier to
142         avoid link errors.
143
144         * main.c (main): Handle new CMD_* results.
145         (execute_command) Move most per-command actions into cmd_parse().
146         (handle_error) Removed.  cmd_parse() handles command failure.
147
148 Tue Apr 25 11:08:17 2006  Ben Pfaff  <blp@gnu.org>
149
150         Finish reforming error message support.  In this phase, move
151         message.c into libpspp.
152         
153         * automake.mk: Remove message.c from sources.
154
155 Tue Apr 25 10:58:19 2006  Ben Pfaff  <blp@gnu.org>
156
157         Continue reforming error message support.  In this phase, drop
158         actual message printing from core code, substituting a callback,
159         and add the callback to each UI.  Also, move verbose_msg() into
160         its own module.
161
162         * automake.mk (src_ui_terminal_libui_a_SOURCES): Add msg-ui.c,
163         msg-ui.h.
164
165         * command-line.c: (parse_command_line) Call
166         verbose_increment_level() instead of increment err_verbosity
167         directly, now that we have a little abstraction.
168
169         * msg-ui.c: New file.
170
171         * msg-ui.h: New file.
172
173         * main.c: (main) Call msg_ui_init().  Use any_errors().
174         (terminate) Call msg_ui_done().  Make termination order more
175         rational.
176
177         * read-line.c: (readln_read) Use reset_msg_count() now we have a
178         little abstraction.
179
180 Tue Apr 25 09:39:46 2006  Ben Pfaff  <blp@gnu.org>
181
182         * main.c: (terminate) Mark static and NO_RETURN.  If called
183         recursively, which can only happen via signal, just exit instead
184         of trying to gracefully shut down.      
185
186 Fri Mar 31 10:33:37 2006  Ben Pfaff  <blp@gnu.org>
187
188         * command-line.c: (var pre_syntax_message) -d and -u are no longer
189         supported.
190
191 Sat Mar 11 14:18:39 WST 2006 John Darrington <john@darrington.wattle.id.au>
192
193         * automake.mk: Moved the pspp binary here.
194
195 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
196         
197         * Moved files from src directory