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