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