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