* readline.c: add HAVE_CONFIG_H test guarding #include config.h.
[bpt/guile.git] / guile-readline / ChangeLog
1 2003-02-27 Rob Browning <rlb@defaultvalue.org>
2
3 * autogen.sh: use autoreconf.
4
5 2003-01-08 Neil Jerram <neil@ossau.uklinux.net>
6
7 * readline.c (scm_readline): Check that scm_cur_outp is an output
8 port, not an input one.
9
10 2002-12-08 Rob Browning <rlb@defaultvalue.org>
11
12 * configure.in (GUILE_EFFECTIVE_VERSION): AC_SUBST.
13
14 * Makefile.am (ice9dir): VERSION -> GUILE_EFFECTIVE_VERSION.
15
16 2002-10-27 Marius Vollmer <mvo@zagadka.ping.de>
17
18 * readline.c (reentry_barrier_mutex): Reimplemented with
19 scm_make_mutex, etc.
20
21 2002-10-21 Mikael Djurfeldt <mdj@linnaeus>
22
23 * readline.scm (activate-readline): Look for use-emacs-interface
24 option in the guile-user module instead of the-root-module.
25
26 2002-04-30 Marius Vollmer <marius.vollmer@uni-dortmund.de>
27
28 * autogen.sh: Invoke plain aclocal instead of guile-aclocal.sh.
29 We don't need the Guile m4 macros and the previous invocation of
30 guile-aclocal.sh created the aclocal.m4 file in the wrong
31 directory (see change from 2002-04-26).
32
33 2002-04-26 Marius Vollmer <mvo@zagadka.ping.de>
34
35 * autogen.sh: Change to parent dir before invoking
36 guile-aclocal.sh.
37
38 2002-04-16 Marius Vollmer <mvo@zagadka.ping.de>
39
40 * Makefile.am (dist-hook): Make sure $(distdir)/Makefile.in is
41 writable before modifying it.
42
43 2002-04-10 Rob Browning <rlb@defaultvalue.org>
44
45 * configure.in: add definitions to AC_DEFINE calls for new
46 autoconf.
47
48 * .cvsignore: add autom4te.cache and *.c.clean.c.
49
50 2002-03-24 Marius Vollmer <mvo@zagadka.ping.de>
51
52 * Makefile.am (.c.x): Pass "-o $@" to guile-snarf.
53
54 2002-03-13 Thien-Thi Nguyen <ttn@giblet.glug.org>
55
56 * Makefile.am (snarfcppopts): New var.
57 (.c.x): Use $(snarfcppopts). Rework guile-snarf usage.
58
59 2002-02-27 Stefan Jahn <stefan@lkcc.org>
60
61 * Makefile.am (EXTRA_DIST): Added the `LIBGUILEREADLINE-VERSION'
62 file.
63
64 2002-02-25 Thien-Thi Nguyen <ttn@giblet.glug.org>
65
66 * configure.in (LIBGUILEREADLINE-VERSION):
67 Look for this file in $srcdir.
68
69 2002-02-24 Rob Browning <rlb@defaultvalue.org>
70
71 * configure.in: source ./LIBGUILEREADLINE-VERSION for version info
72 and then AC_SUBST the resulting variables:
73 LIBGUILEREADLINE_INTERFACE_CURRENT,
74 LIBGUILEREADLINE_INTERFACE_REVISION,
75 LIBGUILEREADLINE_INTERFACE_AGE, and
76 LIBGUILEREADLINE_INTERFACE.
77
78 * Makefile.am (libguilereadline_la_LDFLAGS): use
79 @LIBGUILEREADLINE_INTERFACE@ for version information.
80
81 * LIBGUILEREADLINE-VERSION: new file containing shared lib
82 versioning information.
83
84 2002-02-12 Thien-Thi Nguyen <ttn@giblet.glug.org>
85
86 * Makefile.am (AUTOMAKE_OPTIONS): Replace "gnu" with "foreign".
87 This undoes the 2002-02-08 change.
88
89 2002-02-08 Thien-Thi Nguyen <ttn@giblet.glug.org>
90
91 * Makefile.am (AUTOMAKE_OPTIONS): Replace "foreign" with "gnu".
92
93 2002-01-29 Neil Jerram <neil@ossau.uklinux.net>
94
95 * readline.scm (with-readline-completion-function): Renamed from
96 `call-with-readline-completion-function'.
97
98 2001-11-30 Neil Jerram <neil@ossau.uklinux.net>
99
100 * Makefile.am (EXTRA_DIST): Refer to $(ice9_DATA) rather than
101 readline.scm explicitly.
102 (ETAGS_ARGS): Added.
103
104 2001-11-04 Stefan Jahn <stefan@lkcc.org>
105
106 * configure.in (EXTRA_DEFS): Follow-up patch. Using SCM_IMPORT
107 instead of __SCM_IMPORT__.
108
109 * readline.c (scm_readline_init_ports): Disable input/output
110 stream redirection for Win32. The readline package for Win32
111 does not support this. The guile-readline library works fine
112 for command line editing.
113
114 * readline.h (SCM_RL_API): Renamed __FOO__ macros into FOO.
115
116 2001-11-02 Marius Vollmer <mvo@zagadka.ping.de>
117
118 Support for native Win32. Thanks to Stefan Jahn!
119
120 * Makefile.am: Put `-export-dynamic -no-undefined' into LDFLAGS
121 and add the library `libguile.la' to support linkers which do not
122 allow unresolved symbols inside shared libraries.
123
124 * configure.in: Define AC_LIBTOOL_WIN32_DLL to build clean dlls
125 on Win32 platforms.
126 Define extra compiler flags necessary to build clean dlls.
127
128 * readline.c: Include `io.h' and exclude `sys/time.h' for MinGW.
129
130 * readline.h: Defintion of SCM_RL_API. Prefixed each exported
131 symbol with SCM_RL_API.
132
133 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
134
135 * readline.c (scm_readline, scm_add_history,
136 scm_filename_completion_function, completion_function): Remove
137 calls to SCM_STRING_COERCE_0TERMINATION_X. Since the substring
138 type is gone, all strings are 0-terminated anyway.
139
140 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
141
142 * readline.scm: `feature?´ is deprecated. Use `provided?´
143 instead.
144
145 2001-08-25 Marius Vollmer <mvo@zagadka.ping.de>
146
147 * readline.scm: Use load-extension instead of explicit
148 dynamic-link/dynamic-call. Removed ".so" extension from library
149 name.
150
151 2001-08-02 Neil Jerram <neil@ossau.uklinux.net>
152
153 * readline.scm (call-with-readline-completion-function): New.
154
155 2001-07-18 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
156
157 * Makefile.am, readline.scm: Updated copyright notice.
158
159 2001-07-09 Thien-Thi Nguyen <ttn@revel.glug.org>
160
161 * readline.c: Remove "face-lift" comment.
162
163 2001-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
164
165 * readline.c (completion_function): Use scm_list_n instead of
166 SCM_LISTn.
167
168 2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
169
170 * readline.c, readline.h: Replace "scm_*_t" with "scm_t_*".
171
172 2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
173
174 Thanks to Matthias Köppe!
175
176 * configure.in: Check for rl_filename_completion_function.
177 * readline.c (s_scm_filename_completion_function): Use
178 rl_filename_completion_function instead of
179 filename_completion_function, if we have it.
180 (scm_init_readline): Use rl_compentry_func_t instead if Function
181 when _RL_FUNCTION_TYPEDEF is defined.
182
183 * readline.h (scm_clear_history): New prototype.
184
185 2001-06-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
186
187 * readline.c (current_input_getc): Mark unused parameters with
188 SCM_UNUSED.
189
190 2001-06-03 Marius Vollmer <mvo@zagadka.ping.de>
191
192 * configure.in: Added AC_PREREQ(2.50) and minimally changed for
193 autoconf 2.50. This is mostly so that the `transparent autoconf
194 wrapper' on Debian picks the right version of autoconf.
195
196 2001-05-31 Michael Livshin <mlivshin@bigfoot.com>
197
198 * Makefile.am (libguilereadline_la_SOURCES): removed readline.x
199 from here (not needed).
200 (CLEANFILES): added *.x (and removed from DISTCLEANFILES).
201 (MKDEP): copied from libguile/Makefile.am. not that it matters
202 now, but it will if we stop using BUILT_SOURCES for some reason.
203
204 2001-05-24 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
205
206 Make it compile with --disable-deprecated.
207
208 * readline.h: scm_option->scm_option_t.
209
210 * readline.c (stream_from_fport): scm_fport->scm_fport_t;
211 scm_option->scm_option_t.
212
213 2001-05-23 Michael Livshin <mlivshin@bigfoot.com>
214
215 * readline.c (strdup): make `len' a size_t.
216
217 2001-05-10 Marius Vollmer <mvo@zagadka.ping.de>
218
219 * readline.c (completion_function): Use SCM_VARIABLE_REF to access
220 scm_readline_completion_function_var.
221 (scm_init_readline): Use scm_c_define instead of scm_sysintern to
222 create scm_readline_completion_function_var.
223
224 2001-04-09 Marius Vollmer <mvo@zagadka.ping.de>
225
226 * readline.c (scm_clear_history): New function.
227 * readline.scm (readline-port): Call clear-history on exit.
228 Thanks to Utz-Uwe Haus.
229
230 2001-03-09 Keisuke Nishida <kxn30@po.cwru.edu>
231
232 * readline.c: Add #include <stdio.h>
233
234 2001-03-05 Neil Jerram <neil@ossau.uklinux.net>
235
236 * readline.scm (make-readline-port): Rewrite using
237 make-line-buffered-input-port.
238 (activate-readline): Call set-buffered-input-continuation?!.
239
240 2001-01-28 Marius Vollmer <mvo@zagadka.ping.de>
241
242 * readline.scm (make-readline-port): PROMPT becomes PROMPT2 as
243 soon as GET-CHARACTER returns any character at all that was
244 previously read. This makes the continuation prompt appear
245 properly for partial expressions. Thanks to Neil Jerram!
246
247 2001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
248
249 This patch fixes a problem reported by Martin Grabmueller about
250 the impossibility to access readline's run-time options.
251
252 * readline.scm: Added a comment about guile's behaviour if one of
253 the ports used by readline are closed.
254
255 (readline-options readline-enable readline-disable,
256 readline-set!): These are now defined here instead of in
257 boot-9.scm.
258
259 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
260
261 * readline.scm (set-readline-input-port!,
262 set-readline-output-port!): Make sure that only valid port
263 parameters are passed. Thanks to Martin Grabmueller for sending
264 a patch that formed the basis for this change.
265
266 2001-01-18 Neil Jerram <neil@ossau.uklinux.net>
267
268 * readline.scm (make-readline-port): Make readline port
269 input-only.
270
271 2000-12-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
272
273 * readline.scm (activate-readline): Lookup 'use-emacs-interface
274 in the-root-module.
275
276 2000-11-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
277
278 * readline.c (current_input_getc): Use more explicit predicate
279 than SCM_NIMP.
280
281 (scm_readline, scm_readline_init_ports, completion_function):
282 Remove redundant SCM_N?IMP tests.
283
284 (scm_readline): Fixed default input/output port parameter
285 handling.
286
287 2000-11-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
288
289 * readline.c (scm_readline, scm_add_history, completion_function,
290 scm_filename_completion_function): Replace calls to
291 SCM_COERCE_SUBSTR with SCM_STRING_COERCE_0TERMINATION_X.
292
293 (internal_readline, scm_add_history, scm_read_history,
294 scm_write_history, scm_filename_completion_function,
295 completion_function): Replace SCM_CHARS with SCM_STRING_CHARS.
296
297 2000-11-19 Gary Houston <ghouston@arglist.com>
298
299 * configure.in: test $ac_cv_lib_readline_readline instead of
300 $ac_cv_lib_readline_main. Thanks to Lars J. Aas.
301
302 2000-09-17 Marius Vollmer <mvo@zagadka.ping.de>
303
304 * configure.in: Check for curses, terminfo and termlib libraries
305 in addition to ncurses and termcap.
306 Check for `readline' in libreadline, not for `main'.
307 Thanks to Albert Chin!
308
309 2000-07-17 Marius Vollmer <mvo@zagadka.ping.de>
310
311 * configure.in (rl_pre_input_hook): Don't check for this with
312 AC_CHECK_FUNCS, it doesn't work on HP/UX. Test for it with
313 AC_TRY_LINK.
314
315 2000-06-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
316
317 * readline.c (sigwinch_enable_restart, scm_init_readline):
318 Re-enable restart for SIGWINCH signal.
319
320 * configure.in: Added test if readline clears SA_RESTART flag for
321 SIGWINCH. (Thanks to Dale P. Smith.)
322 Check for siginterrupt and rl_pre_input_hook.
323
324 2000-06-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
325
326 * readline.c (scm_readline): Added parenthesis around && within
327 ||.
328 Fixed up prototype for `reentry_barrier'.
329 Conditionally #include <unistd.h>. (Needed for `dup'.)
330
331 2000-06-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
332
333 * Makefile.am (dist-hook): Added kludge to fix automake generated
334 dependencies in the distribution archive Makefile.
335
336 2000-06-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
337
338 * readline.scm (apropos-completion-function): Don't define and
339 install if the 'regex feature is missing.
340
341 2000-06-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
342
343 * readline.c: Always provide scm_init_readline, also if readline
344 support is not included. Otherwise, a strange dynamic loading
345 error will occur. (It would be better not to install
346 libguilereadline at all.)
347
348 * readline-activator.scm (activate-readline): Report an error if
349 readline isn't provided by Guile.
350
351 * readline.scm: Report an error if readline isn't provided by
352 Guile; Added :no-backtrace to module header.
353
354 * configure.in: Put more ink before readline version warning.
355 (Thanks to Ian Grant.)
356
357 2000-06-01 Michael Livshin <mlivshin@bigfoot.com>
358
359 * autogen.sh: call ../guile-aclocal.sh instead of aclocal
360
361 2000-05-01 Gary Houston <ghouston@arglist.com>
362
363 * readline.c: include libguile.h, not libguile/libguile.h.
364
365 2000-04-21 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
366
367 * *.*: Change includes so that they always use the "prefixes"
368 libguile/, qt/, guile-readline/, or libltdl/.
369
370 * Makefile.am (DEFS): Added. automake adds -I options to DEFS,
371 and we don't want that.
372 (INCLUDES): Removed all -I options except for the root source
373 directory and the root build directory.
374
375 2000-04-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
376
377 * readline.c (scm_readline): Must unpack SCM values to access
378 their raw contents.
379
380 2000-03-19 Michael Livshin <mlivshin@bigfoot.com>
381
382 * *.[hc]: add Emacs magic at the end of file, to ensure GNU
383 indentation style.
384
385 2000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
386
387 * readline.c (current_input_getc): Don't pass int values through
388 SCM variables.
389 (match_paren): Bugfix: First arg to select is not number of
390 descriptors but the number of the highest descriptor + 1.
391
392 Thu Mar 9 08:00:26 2000 Greg J. Badros <gjb@cs.washington.edu>
393
394 * readline.c: scm_validate.h renamed to validate.h.
395
396 Wed Mar 8 10:43:10 2000 Greg J. Badros <gjb@cs.washington.edu>
397
398 * readline.c (match_paren): Use SELECT_TYPE, not fd_set, for type
399 of readset.
400
401 2000-01-25 Marius Vollmer <mvo@zagadka.ping.de>
402
403 * autogen.sh: Call libtoolize. Pass --add-missing option to
404 automake.
405
406 * readline.scm: Only link glue code when the 'readline feature is
407 not already present. Thanks to Clark McGrew.
408
409 Tue Jan 11 17:51:40 2000 Greg J. Badros <gjb@cs.washington.edu>
410
411 * readline.c (scm_init_readline): Drop extra argument to
412 scm_mutex_init as that argument should not exist. I do not know
413 how this escaped detection for so long.
414
415 2000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
416
417 * readline.c (match_paren): Changed return type to int (this is
418 the definition in readline 4) and modified code layout according
419 to GNU coding standards.
420
421 Wed Jan 5 11:18:01 2000 Greg J. Badros <gjb@cs.washington.edu>
422
423 * readline.c: Whitespace changes -- added space after
424 SCM_VALIDATE_* macros to match GNU coding standards.
425
426 Wed Jan 5 11:02:40 2000 Greg J. Badros <gjb@cs.washington.edu>
427
428 * readline.c: Rename GUILE_PROC to SCM_DEFINE.
429
430 Mon Dec 13 13:57:57 1999 Greg J. Badros <gjb@cs.washington.edu>
431
432 * readline.c: Include libguile/scm_validate.h
433
434 Sun Dec 12 19:56:52 1999 Greg J. Badros <gjb@cs.washington.edu>
435
436 * readline.c: Updated to use GUILE_PROC, SCM_VALIDATE, and have
437 (now empty) docstrings.
438
439 1999-11-18 Gary Houston <ghouston@freewire.co.uk>
440
441 * readline.c (scm_init_readline): set rl_readline_name to Guile,
442 to allow conditionals in .inputrc.
443
444 1999-10-05 Jim Blandy <jimb@savonarola.red-bean.com>
445
446 * Makefile.in, configure, aclocal.m4: Deleted from CVS repository.
447 Run the autogen.sh script to create generated files like these.
448 * autogen.sh: New script, invoked by the top-level autogen.sh.
449
450 1999-09-22 Jim Blandy <jimb@savonarola.red-bean.com>
451
452 * configure.in: Call AM_PROG_CC_STDC.
453 * configure, aclocal.m4: Regenerated.
454
455 1999-09-16 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
456
457 * Makefile.am (.c.x): Use same rule as in libguile.
458
459 1999-09-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
460
461 * readline.h, readline.scm: Updated copyright notices.
462
463 1999-09-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
464
465 * readline.scm (activate-readline): Set (using-readline?).
466
467 1999-09-11 Jim Blandy <jimb@savonarola.red-bean.com>
468
469 * aclocal.m4: Regenerated with newer libtool macros.
470
471 * Makefile.am (DISTCLEANFILES): Get rid of .x files.
472 * Makefile.in: Regenerated.
473 (Thanks to Keisuke Nishida.)
474
475 1999-09-11 Marius Vollmer <mvo@zagadka.ping.de>
476
477 * readline.scm: Moved from ../ice-9.
478 Dynamically link libguilereadline.so.
479 (readline): Just define in this module, do not overwrite builtin
480 variable. The builtin readline function is now named "%readline",
481 so this works. See below.
482 (activate-readline): New function which contains the readline
483 activation code formerly found in top-repl.
484
485 * readline.c (scm_readline): Export it to Scheme as "%readline".
486
487 * configure.in: Get version from ../GUILE-VERSION and use it for
488 package version.
489
490 * Makefile.am: Do not install and distribute
491 readline-activator.scm. Install and distribute readline.scm
492 instead.
493
494 * aclocal.m4, Makefile.in, configure, libtool: Regenerated, but
495 probably with the wrong version of the tools.
496
497 1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
498
499 The following change makes it possible for applications to have
500 their own version of scm_readline.
501 * readline.c, readline.h (rl_cleanup_after_signal,
502 rl_free_line_state): Made global.
503 (scm_readline_init_ports): New function.
504 (scm_readline): Use scm_readline_init_ports.
505 (Thanks to Anders Holst.)
506
507 * Makefile.am: Install guile-readline/readline.h.
508
509 1999-08-20 James Blandy <jimb@mule.m17n.org>
510
511 * Makefile.in, aclocal.m4, configure: Regenerated.
512
513 1999-08-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
514
515 * configure.in (HAVE_RL_GETC_FUNCTION): Modified test to actually
516 use rl_getc_function. Otherwise smart compilers, like gcc,
517 optimize away the reference so that no error occurs in the link
518 phase.
519
520 1999-08-04 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
521
522 * Makefile.am (INCLUDES): Added -I$(srcdir)/../libguile.
523 (Thanks to Greg Badros.)
524
525 1999-07-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
526
527 * readline.c (handle_error): Put a cosmetic newline on
528 rl_outstream on error before closing it.
529
530 * configure.in: Changed AC_MSG_ERROR into AC_MSG_WARN in case
531 readline doesn't exist on the system, so that configuration can
532 proceed normally without readline.
533
534 * readline.c: #include "libguile/_scm.h" (so that we get the
535 configuration information) and fix other includes so that they'll
536 work on a system where guile is not yet installed.
537
538 * Makefile.am (BUILT_SOURCES): Added.
539
540 1999-07-23 Marius Vollmer <mvo@zagadka.ping.de>
541
542 * Checked everything into CVS.
543
544 1999-07-22 Marius Vollmer <mvo@zagadka.ping.de>
545
546 * readline.c (stream_from_fport): New function.
547 (scm_readline): Use it to for the input and output ports. Close
548 the streams after readline returns.
549 (handle_error): Close them also when an error occured.
550
551 1999-06-17 Marius Vollmer <mvo@zagadka.ping.de>
552
553 * readline.h, readline.c: Removed exception notice from copyright
554 statement.
555
556 1999-05-16 Marius Vollmer <mvo@zagadka.ping.de>
557
558 * Started guile-readline package. Files are copied from old
559 guile-core package and slightly modified.