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