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