* Don't use SCM_LISTn any more.
[bpt/guile.git] / guile-readline / ChangeLog
1 2001-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
2
3 * readline.c (completion_function): Use scm_list_n instead of
4 SCM_LISTn.
5
6 2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
7
8 * readline.c, readline.h: Replace "scm_*_t" with "scm_t_*".
9
10 2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
11
12 Thanks to Matthias Köppe!
13
14 * configure.in: Check for rl_filename_completion_function.
15 * readline.c (s_scm_filename_completion_function): Use
16 rl_filename_completion_function instead of
17 filename_completion_function, if we have it.
18 (scm_init_readline): Use rl_compentry_func_t instead if Function
19 when _RL_FUNCTION_TYPEDEF is defined.
20
21 * readline.h (scm_clear_history): New prototype.
22
23 2001-06-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
24
25 * readline.c (current_input_getc): Mark unused parameters with
26 SCM_UNUSED.
27
28 2001-06-03 Marius Vollmer <mvo@zagadka.ping.de>
29
30 * configure.in: Added AC_PREREQ(2.50) and minimally changed for
31 autoconf 2.50. This is mostly so that the `transparent autoconf
32 wrapper' on Debian picks the right version of autoconf.
33
34 2001-05-31 Michael Livshin <mlivshin@bigfoot.com>
35
36 * Makefile.am (libguilereadline_la_SOURCES): removed readline.x
37 from here (not needed).
38 (CLEANFILES): added *.x (and removed from DISTCLEANFILES).
39 (MKDEP): copied from libguile/Makefile.am. not that it matters
40 now, but it will if we stop using BUILT_SOURCES for some reason.
41
42 2001-05-24 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
43
44 Make it compile with --disable-deprecated.
45
46 * readline.h: scm_option->scm_option_t.
47
48 * readline.c (stream_from_fport): scm_fport->scm_fport_t;
49 scm_option->scm_option_t.
50
51 2001-05-23 Michael Livshin <mlivshin@bigfoot.com>
52
53 * readline.c (strdup): make `len' a size_t.
54
55 2001-05-10 Marius Vollmer <mvo@zagadka.ping.de>
56
57 * readline.c (completion_function): Use SCM_VARIABLE_REF to access
58 scm_readline_completion_function_var.
59 (scm_init_readline): Use scm_c_define instead of scm_sysintern to
60 create scm_readline_completion_function_var.
61
62 2001-04-09 Marius Vollmer <mvo@zagadka.ping.de>
63
64 * readline.c (scm_clear_history): New function.
65 * readline.scm (readline-port): Call clear-history on exit.
66 Thanks to Utz-Uwe Haus.
67
68 2001-03-09 Keisuke Nishida <kxn30@po.cwru.edu>
69
70 * readline.c: Add #include <stdio.h>
71
72 2001-03-05 Neil Jerram <neil@ossau.uklinux.net>
73
74 * readline.scm (make-readline-port): Rewrite using
75 make-line-buffered-input-port.
76 (activate-readline): Call set-buffered-input-continuation?!.
77
78 2001-01-28 Marius Vollmer <mvo@zagadka.ping.de>
79
80 * readline.scm (make-readline-port): PROMPT becomes PROMPT2 as
81 soon as GET-CHARACTER returns any character at all that was
82 previously read. This makes the continuation prompt appear
83 properly for partial expressions. Thanks to Neil Jerram!
84
85 2001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
86
87 This patch fixes a problem reported by Martin Grabmueller about
88 the impossibility to access readline's run-time options.
89
90 * readline.scm: Added a comment about guile's behaviour if one of
91 the ports used by readline are closed.
92
93 (readline-options readline-enable readline-disable,
94 readline-set!): These are now defined here instead of in
95 boot-9.scm.
96
97 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
98
99 * readline.scm (set-readline-input-port!,
100 set-readline-output-port!): Make sure that only valid port
101 parameters are passed. Thanks to Martin Grabmueller for sending
102 a patch that formed the basis for this change.
103
104 2001-01-18 Neil Jerram <neil@ossau.uklinux.net>
105
106 * readline.scm (make-readline-port): Make readline port
107 input-only.
108
109 2000-12-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
110
111 * readline.scm (activate-readline): Lookup 'use-emacs-interface
112 in the-root-module.
113
114 2000-11-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
115
116 * readline.c (current_input_getc): Use more explicit predicate
117 than SCM_NIMP.
118
119 (scm_readline, scm_readline_init_ports, completion_function):
120 Remove redundant SCM_N?IMP tests.
121
122 (scm_readline): Fixed default input/output port parameter
123 handling.
124
125 2000-11-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
126
127 * readline.c (scm_readline, scm_add_history, completion_function,
128 scm_filename_completion_function): Replace calls to
129 SCM_COERCE_SUBSTR with SCM_STRING_COERCE_0TERMINATION_X.
130
131 (internal_readline, scm_add_history, scm_read_history,
132 scm_write_history, scm_filename_completion_function,
133 completion_function): Replace SCM_CHARS with SCM_STRING_CHARS.
134
135 2000-11-19 Gary Houston <ghouston@arglist.com>
136
137 * configure.in: test $ac_cv_lib_readline_readline instead of
138 $ac_cv_lib_readline_main. Thanks to Lars J. Aas.
139
140 2000-09-17 Marius Vollmer <mvo@zagadka.ping.de>
141
142 * configure.in: Check for curses, terminfo and termlib libraries
143 in addition to ncurses and termcap.
144 Check for `readline' in libreadline, not for `main'.
145 Thanks to Albert Chin!
146
147 2000-07-17 Marius Vollmer <mvo@zagadka.ping.de>
148
149 * configure.in (rl_pre_input_hook): Don't check for this with
150 AC_CHECK_FUNCS, it doesn't work on HP/UX. Test for it with
151 AC_TRY_LINK.
152
153 2000-06-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
154
155 * readline.c (sigwinch_enable_restart, scm_init_readline):
156 Re-enable restart for SIGWINCH signal.
157
158 * configure.in: Added test if readline clears SA_RESTART flag for
159 SIGWINCH. (Thanks to Dale P. Smith.)
160 Check for siginterrupt and rl_pre_input_hook.
161
162 2000-06-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
163
164 * readline.c (scm_readline): Added parenthesis around && within
165 ||.
166 Fixed up prototype for `reentry_barrier'.
167 Conditionally #include <unistd.h>. (Needed for `dup'.)
168
169 2000-06-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
170
171 * Makefile.am (dist-hook): Added kludge to fix automake generated
172 dependencies in the distribution archive Makefile.
173
174 2000-06-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
175
176 * readline.scm (apropos-completion-function): Don't define and
177 install if the 'regex feature is missing.
178
179 2000-06-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
180
181 * readline.c: Always provide scm_init_readline, also if readline
182 support is not included. Otherwise, a strange dynamic loading
183 error will occur. (It would be better not to install
184 libguilereadline at all.)
185
186 * readline-activator.scm (activate-readline): Report an error if
187 readline isn't provided by Guile.
188
189 * readline.scm: Report an error if readline isn't provided by
190 Guile; Added :no-backtrace to module header.
191
192 * configure.in: Put more ink before readline version warning.
193 (Thanks to Ian Grant.)
194
195 2000-06-01 Michael Livshin <mlivshin@bigfoot.com>
196
197 * autogen.sh: call ../guile-aclocal.sh instead of aclocal
198
199 2000-05-01 Gary Houston <ghouston@arglist.com>
200
201 * readline.c: include libguile.h, not libguile/libguile.h.
202
203 2000-04-21 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
204
205 * *.*: Change includes so that they always use the "prefixes"
206 libguile/, qt/, guile-readline/, or libltdl/.
207
208 * Makefile.am (DEFS): Added. automake adds -I options to DEFS,
209 and we don't want that.
210 (INCLUDES): Removed all -I options except for the root source
211 directory and the root build directory.
212
213 2000-04-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
214
215 * readline.c (scm_readline): Must unpack SCM values to access
216 their raw contents.
217
218 2000-03-19 Michael Livshin <mlivshin@bigfoot.com>
219
220 * *.[hc]: add Emacs magic at the end of file, to ensure GNU
221 indentation style.
222
223 2000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
224
225 * readline.c (current_input_getc): Don't pass int values through
226 SCM variables.
227 (match_paren): Bugfix: First arg to select is not number of
228 descriptors but the number of the highest descriptor + 1.
229
230 Thu Mar 9 08:00:26 2000 Greg J. Badros <gjb@cs.washington.edu>
231
232 * readline.c: scm_validate.h renamed to validate.h.
233
234 Wed Mar 8 10:43:10 2000 Greg J. Badros <gjb@cs.washington.edu>
235
236 * readline.c (match_paren): Use SELECT_TYPE, not fd_set, for type
237 of readset.
238
239 2000-01-25 Marius Vollmer <mvo@zagadka.ping.de>
240
241 * autogen.sh: Call libtoolize. Pass --add-missing option to
242 automake.
243
244 * readline.scm: Only link glue code when the 'readline feature is
245 not already present. Thanks to Clark McGrew.
246
247 Tue Jan 11 17:51:40 2000 Greg J. Badros <gjb@cs.washington.edu>
248
249 * readline.c (scm_init_readline): Drop extra argument to
250 scm_mutex_init as that argument should not exist. I do not know
251 how this escaped detection for so long.
252
253 2000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
254
255 * readline.c (match_paren): Changed return type to int (this is
256 the definition in readline 4) and modified code layout according
257 to GNU coding standards.
258
259 Wed Jan 5 11:18:01 2000 Greg J. Badros <gjb@cs.washington.edu>
260
261 * readline.c: Whitespace changes -- added space after
262 SCM_VALIDATE_* macros to match GNU coding standards.
263
264 Wed Jan 5 11:02:40 2000 Greg J. Badros <gjb@cs.washington.edu>
265
266 * readline.c: Rename GUILE_PROC to SCM_DEFINE.
267
268 Mon Dec 13 13:57:57 1999 Greg J. Badros <gjb@cs.washington.edu>
269
270 * readline.c: Include libguile/scm_validate.h
271
272 Sun Dec 12 19:56:52 1999 Greg J. Badros <gjb@cs.washington.edu>
273
274 * readline.c: Updated to use GUILE_PROC, SCM_VALIDATE, and have
275 (now empty) docstrings.
276
277 1999-11-18 Gary Houston <ghouston@freewire.co.uk>
278
279 * readline.c (scm_init_readline): set rl_readline_name to Guile,
280 to allow conditionals in .inputrc.
281
282 1999-10-05 Jim Blandy <jimb@savonarola.red-bean.com>
283
284 * Makefile.in, configure, aclocal.m4: Deleted from CVS repository.
285 Run the autogen.sh script to create generated files like these.
286 * autogen.sh: New script, invoked by the top-level autogen.sh.
287
288 1999-09-22 Jim Blandy <jimb@savonarola.red-bean.com>
289
290 * configure.in: Call AM_PROG_CC_STDC.
291 * configure, aclocal.m4: Regenerated.
292
293 1999-09-16 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
294
295 * Makefile.am (.c.x): Use same rule as in libguile.
296
297 1999-09-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
298
299 * readline.h, readline.scm: Updated copyright notices.
300
301 1999-09-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
302
303 * readline.scm (activate-readline): Set (using-readline?).
304
305 1999-09-11 Jim Blandy <jimb@savonarola.red-bean.com>
306
307 * aclocal.m4: Regenerated with newer libtool macros.
308
309 * Makefile.am (DISTCLEANFILES): Get rid of .x files.
310 * Makefile.in: Regenerated.
311 (Thanks to Keisuke Nishida.)
312
313 1999-09-11 Marius Vollmer <mvo@zagadka.ping.de>
314
315 * readline.scm: Moved from ../ice-9.
316 Dynamically link libguilereadline.so.
317 (readline): Just define in this module, do not overwrite builtin
318 variable. The builtin readline function is now named "%readline",
319 so this works. See below.
320 (activate-readline): New function which contains the readline
321 activation code formerly found in top-repl.
322
323 * readline.c (scm_readline): Export it to Scheme as "%readline".
324
325 * configure.in: Get version from ../GUILE-VERSION and use it for
326 package version.
327
328 * Makefile.am: Do not install and distribute
329 readline-activator.scm. Install and distribute readline.scm
330 instead.
331
332 * aclocal.m4, Makefile.in, configure, libtool: Regenerated, but
333 probably with the wrong version of the tools.
334
335 1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
336
337 The following change makes it possible for applications to have
338 their own version of scm_readline.
339 * readline.c, readline.h (rl_cleanup_after_signal,
340 rl_free_line_state): Made global.
341 (scm_readline_init_ports): New function.
342 (scm_readline): Use scm_readline_init_ports.
343 (Thanks to Anders Holst.)
344
345 * Makefile.am: Install guile-readline/readline.h.
346
347 1999-08-20 James Blandy <jimb@mule.m17n.org>
348
349 * Makefile.in, aclocal.m4, configure: Regenerated.
350
351 1999-08-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
352
353 * configure.in (HAVE_RL_GETC_FUNCTION): Modified test to actually
354 use rl_getc_function. Otherwise smart compilers, like gcc,
355 optimize away the reference so that no error occurs in the link
356 phase.
357
358 1999-08-04 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
359
360 * Makefile.am (INCLUDES): Added -I$(srcdir)/../libguile.
361 (Thanks to Greg Badros.)
362
363 1999-07-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
364
365 * readline.c (handle_error): Put a cosmetic newline on
366 rl_outstream on error before closing it.
367
368 * configure.in: Changed AC_MSG_ERROR into AC_MSG_WARN in case
369 readline doesn't exist on the system, so that configuration can
370 proceed normally without readline.
371
372 * readline.c: #include "libguile/_scm.h" (so that we get the
373 configuration information) and fix other includes so that they'll
374 work on a system where guile is not yet installed.
375
376 * Makefile.am (BUILT_SOURCES): Added.
377
378 1999-07-23 Marius Vollmer <mvo@zagadka.ping.de>
379
380 * Checked everything into CVS.
381
382 1999-07-22 Marius Vollmer <mvo@zagadka.ping.de>
383
384 * readline.c (stream_from_fport): New function.
385 (scm_readline): Use it to for the input and output ports. Close
386 the streams after readline returns.
387 (handle_error): Close them also when an error occured.
388
389 1999-06-17 Marius Vollmer <mvo@zagadka.ping.de>
390
391 * readline.h, readline.c: Removed exception notice from copyright
392 statement.
393
394 1999-05-16 Marius Vollmer <mvo@zagadka.ping.de>
395
396 * Started guile-readline package. Files are copied from old
397 guile-core package and slightly modified.