1 2004-08-26 Marius Vollmer <marius.vollmer@uni-dortmund.de>
3 * LIBGUILEREADLINE-VERSION: Bumped versions for the 1.7.1 release.
4 Added LIBGUILEREADLINE_MAJOR variable for inclusion in the name of
6 * configure.in: AC_SUBST it.
7 * Makefile.am: Substitute it into name of library.
8 * ice-9/readline.scm: Use new name with load-extension.
10 2004-08-19 Marius Vollmer <marius.vollmer@uni-dortmund.de>
12 * readline.c: Avoid the use of discouraged or
15 2004-07-06 Marius Vollmer <marius.vollmer@uni-dortmund.de>
17 * readline.c: Replaced all uses of deprecated SCM_FALSEP,
18 SCM_NFALSEP, SCM_BOOL, SCM_NEGATE_BOOL, and SCM_BOOLP with
19 scm_is_false, scm_is_true, scm_from_bool, and scm_is_bool,
22 2004-06-16 Rob Browning <rlb@defaultvalue.org>
24 * configure.in: move package and version args to AC_INIT as is now
25 recommended. This also requires m4_esyscmd to read GUILE-VERSION
26 given the way AC_INIT handles its args. Also move "foreign"
29 * Makefile.am: move support for readline.scm to ice-9/ subdir.
31 * readline.scm: moved to ./ice-9/
33 * .cvsignore: add ice-9 dir.
35 * ice-9/Makefile.am: new file.
37 * ice-9/readline.scm: moved here from ../
39 * ice-9/.cvsignore: new file.
41 2004-02-15 Mikael Djurfeldt <mdj@chunk.mit.edu>
43 * configure.in: Use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL.
45 2004-02-08 Mikael Djurfeldt <djurfeldt@nada.kth.se>
47 * Makefile.am (TAGS_FILES): Use this variable instead of
48 ETAGS_ARGS so that TAGS can be built using separate build
51 2003-05-04 Marius Vollmer <mvo@zagadka.de>
53 * configure.in: When checking whether readline clears SA_RESTART,
54 let readline read from "/dev/null". Otherwise, it might be
55 stopped when run in the background with job control, say.
56 Thanks to Michael Talbot-Wilson!
58 2003-04-05 Mikael Djurfeldt <djurfeldt@nada.kth.se>
60 The intended side-effect of the following change is to make the
61 prompt appear properly when debugging or running Guile in an Emacs
62 buffer. (The readline library has some prompt magic which we were
63 expected to do ourselves when we were bold enough to provide our
64 own redisplay function---but we don't need to do that.)
66 * readline.c (redisplay): Removed. (It didn't do anything other
67 than calling rl_redisplay.)
68 (scm_init_readline): Don't inititalize rl_redisplay_function.
70 2003-03-19 Rob Browning <rlb@defaultvalue.org>
72 * readline.c: add HAVE_CONFIG_H test guarding #include config.h.
74 * autogen.sh: add a --force when autoreconfing. We may need to
75 change this if it doesn't work out...
77 * Makefile.am (ice-9/readline.scm): new target -- so readline will
78 work from the source tree when guile-readline is added to
80 (all-local): add ice-9/readline.scm.
81 (clean-local): remove ice-9/readline at clean time.
83 2003-02-27 Rob Browning <rlb@defaultvalue.org>
85 * autogen.sh: use autoreconf.
87 2003-01-08 Neil Jerram <neil@ossau.uklinux.net>
89 * readline.c (scm_readline): Check that scm_cur_outp is an output
90 port, not an input one.
92 2002-12-08 Rob Browning <rlb@defaultvalue.org>
94 * configure.in (GUILE_EFFECTIVE_VERSION): AC_SUBST.
96 * Makefile.am (ice9dir): VERSION -> GUILE_EFFECTIVE_VERSION.
98 2002-10-27 Marius Vollmer <mvo@zagadka.ping.de>
100 * readline.c (reentry_barrier_mutex): Reimplemented with
103 2002-10-21 Mikael Djurfeldt <mdj@linnaeus>
105 * readline.scm (activate-readline): Look for use-emacs-interface
106 option in the guile-user module instead of the-root-module.
108 2002-04-30 Marius Vollmer <marius.vollmer@uni-dortmund.de>
110 * autogen.sh: Invoke plain aclocal instead of guile-aclocal.sh.
111 We don't need the Guile m4 macros and the previous invocation of
112 guile-aclocal.sh created the aclocal.m4 file in the wrong
113 directory (see change from 2002-04-26).
115 2002-04-26 Marius Vollmer <mvo@zagadka.ping.de>
117 * autogen.sh: Change to parent dir before invoking
120 2002-04-16 Marius Vollmer <mvo@zagadka.ping.de>
122 * Makefile.am (dist-hook): Make sure $(distdir)/Makefile.in is
123 writable before modifying it.
125 2002-04-10 Rob Browning <rlb@defaultvalue.org>
127 * configure.in: add definitions to AC_DEFINE calls for new
130 * .cvsignore: add autom4te.cache and *.c.clean.c.
132 2002-03-24 Marius Vollmer <mvo@zagadka.ping.de>
134 * Makefile.am (.c.x): Pass "-o $@" to guile-snarf.
136 2002-03-13 Thien-Thi Nguyen <ttn@giblet.glug.org>
138 * Makefile.am (snarfcppopts): New var.
139 (.c.x): Use $(snarfcppopts). Rework guile-snarf usage.
141 2002-02-27 Stefan Jahn <stefan@lkcc.org>
143 * Makefile.am (EXTRA_DIST): Added the `LIBGUILEREADLINE-VERSION'
146 2002-02-25 Thien-Thi Nguyen <ttn@giblet.glug.org>
148 * configure.in (LIBGUILEREADLINE-VERSION):
149 Look for this file in $srcdir.
151 2002-02-24 Rob Browning <rlb@defaultvalue.org>
153 * configure.in: source ./LIBGUILEREADLINE-VERSION for version info
154 and then AC_SUBST the resulting variables:
155 LIBGUILEREADLINE_INTERFACE_CURRENT,
156 LIBGUILEREADLINE_INTERFACE_REVISION,
157 LIBGUILEREADLINE_INTERFACE_AGE, and
158 LIBGUILEREADLINE_INTERFACE.
160 * Makefile.am (libguilereadline_la_LDFLAGS): use
161 @LIBGUILEREADLINE_INTERFACE@ for version information.
163 * LIBGUILEREADLINE-VERSION: new file containing shared lib
164 versioning information.
166 2002-02-12 Thien-Thi Nguyen <ttn@giblet.glug.org>
168 * Makefile.am (AUTOMAKE_OPTIONS): Replace "gnu" with "foreign".
169 This undoes the 2002-02-08 change.
171 2002-02-08 Thien-Thi Nguyen <ttn@giblet.glug.org>
173 * Makefile.am (AUTOMAKE_OPTIONS): Replace "foreign" with "gnu".
175 2002-01-29 Neil Jerram <neil@ossau.uklinux.net>
177 * readline.scm (with-readline-completion-function): Renamed from
178 `call-with-readline-completion-function'.
180 2001-11-30 Neil Jerram <neil@ossau.uklinux.net>
182 * Makefile.am (EXTRA_DIST): Refer to $(ice9_DATA) rather than
183 readline.scm explicitly.
186 2001-11-04 Stefan Jahn <stefan@lkcc.org>
188 * configure.in (EXTRA_DEFS): Follow-up patch. Using SCM_IMPORT
189 instead of __SCM_IMPORT__.
191 * readline.c (scm_readline_init_ports): Disable input/output
192 stream redirection for Win32. The readline package for Win32
193 does not support this. The guile-readline library works fine
194 for command line editing.
196 * readline.h (SCM_RL_API): Renamed __FOO__ macros into FOO.
198 2001-11-02 Marius Vollmer <mvo@zagadka.ping.de>
200 Support for native Win32. Thanks to Stefan Jahn!
202 * Makefile.am: Put `-export-dynamic -no-undefined' into LDFLAGS
203 and add the library `libguile.la' to support linkers which do not
204 allow unresolved symbols inside shared libraries.
206 * configure.in: Define AC_LIBTOOL_WIN32_DLL to build clean dlls
208 Define extra compiler flags necessary to build clean dlls.
210 * readline.c: Include `io.h' and exclude `sys/time.h' for MinGW.
212 * readline.h: Defintion of SCM_RL_API. Prefixed each exported
213 symbol with SCM_RL_API.
215 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
217 * readline.c (scm_readline, scm_add_history,
218 scm_filename_completion_function, completion_function): Remove
219 calls to SCM_STRING_COERCE_0TERMINATION_X. Since the substring
220 type is gone, all strings are 0-terminated anyway.
222 2001-08-31 Dirk Herrmann <D.Herrmann@tu-bs.de>
224 * readline.scm: `feature?´ is deprecated. Use `provided?´
227 2001-08-25 Marius Vollmer <mvo@zagadka.ping.de>
229 * readline.scm: Use load-extension instead of explicit
230 dynamic-link/dynamic-call. Removed ".so" extension from library
233 2001-08-02 Neil Jerram <neil@ossau.uklinux.net>
235 * readline.scm (call-with-readline-completion-function): New.
237 2001-07-18 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
239 * Makefile.am, readline.scm: Updated copyright notice.
241 2001-07-09 Thien-Thi Nguyen <ttn@revel.glug.org>
243 * readline.c: Remove "face-lift" comment.
245 2001-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
247 * readline.c (completion_function): Use scm_list_n instead of
250 2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
252 * readline.c, readline.h: Replace "scm_*_t" with "scm_t_*".
254 2001-06-14 Marius Vollmer <mvo@zagadka.ping.de>
256 Thanks to Matthias Köppe!
258 * configure.in: Check for rl_filename_completion_function.
259 * readline.c (s_scm_filename_completion_function): Use
260 rl_filename_completion_function instead of
261 filename_completion_function, if we have it.
262 (scm_init_readline): Use rl_compentry_func_t instead if Function
263 when _RL_FUNCTION_TYPEDEF is defined.
265 * readline.h (scm_clear_history): New prototype.
267 2001-06-07 Dirk Herrmann <D.Herrmann@tu-bs.de>
269 * readline.c (current_input_getc): Mark unused parameters with
272 2001-06-03 Marius Vollmer <mvo@zagadka.ping.de>
274 * configure.in: Added AC_PREREQ(2.50) and minimally changed for
275 autoconf 2.50. This is mostly so that the `transparent autoconf
276 wrapper' on Debian picks the right version of autoconf.
278 2001-05-31 Michael Livshin <mlivshin@bigfoot.com>
280 * Makefile.am (libguilereadline_la_SOURCES): removed readline.x
281 from here (not needed).
282 (CLEANFILES): added *.x (and removed from DISTCLEANFILES).
283 (MKDEP): copied from libguile/Makefile.am. not that it matters
284 now, but it will if we stop using BUILT_SOURCES for some reason.
286 2001-05-24 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
288 Make it compile with --disable-deprecated.
290 * readline.h: scm_option->scm_option_t.
292 * readline.c (stream_from_fport): scm_fport->scm_fport_t;
293 scm_option->scm_option_t.
295 2001-05-23 Michael Livshin <mlivshin@bigfoot.com>
297 * readline.c (strdup): make `len' a size_t.
299 2001-05-10 Marius Vollmer <mvo@zagadka.ping.de>
301 * readline.c (completion_function): Use SCM_VARIABLE_REF to access
302 scm_readline_completion_function_var.
303 (scm_init_readline): Use scm_c_define instead of scm_sysintern to
304 create scm_readline_completion_function_var.
306 2001-04-09 Marius Vollmer <mvo@zagadka.ping.de>
308 * readline.c (scm_clear_history): New function.
309 * readline.scm (readline-port): Call clear-history on exit.
310 Thanks to Utz-Uwe Haus.
312 2001-03-09 Keisuke Nishida <kxn30@po.cwru.edu>
314 * readline.c: Add #include <stdio.h>
316 2001-03-05 Neil Jerram <neil@ossau.uklinux.net>
318 * readline.scm (make-readline-port): Rewrite using
319 make-line-buffered-input-port.
320 (activate-readline): Call set-buffered-input-continuation?!.
322 2001-01-28 Marius Vollmer <mvo@zagadka.ping.de>
324 * readline.scm (make-readline-port): PROMPT becomes PROMPT2 as
325 soon as GET-CHARACTER returns any character at all that was
326 previously read. This makes the continuation prompt appear
327 properly for partial expressions. Thanks to Neil Jerram!
329 2001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
331 This patch fixes a problem reported by Martin Grabmueller about
332 the impossibility to access readline's run-time options.
334 * readline.scm: Added a comment about guile's behaviour if one of
335 the ports used by readline are closed.
337 (readline-options readline-enable readline-disable,
338 readline-set!): These are now defined here instead of in
341 2001-01-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
343 * readline.scm (set-readline-input-port!,
344 set-readline-output-port!): Make sure that only valid port
345 parameters are passed. Thanks to Martin Grabmueller for sending
346 a patch that formed the basis for this change.
348 2001-01-18 Neil Jerram <neil@ossau.uklinux.net>
350 * readline.scm (make-readline-port): Make readline port
353 2000-12-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
355 * readline.scm (activate-readline): Lookup 'use-emacs-interface
358 2000-11-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
360 * readline.c (current_input_getc): Use more explicit predicate
363 (scm_readline, scm_readline_init_ports, completion_function):
364 Remove redundant SCM_N?IMP tests.
366 (scm_readline): Fixed default input/output port parameter
369 2000-11-24 Dirk Herrmann <D.Herrmann@tu-bs.de>
371 * readline.c (scm_readline, scm_add_history, completion_function,
372 scm_filename_completion_function): Replace calls to
373 SCM_COERCE_SUBSTR with SCM_STRING_COERCE_0TERMINATION_X.
375 (internal_readline, scm_add_history, scm_read_history,
376 scm_write_history, scm_filename_completion_function,
377 completion_function): Replace SCM_CHARS with SCM_STRING_CHARS.
379 2000-11-19 Gary Houston <ghouston@arglist.com>
381 * configure.in: test $ac_cv_lib_readline_readline instead of
382 $ac_cv_lib_readline_main. Thanks to Lars J. Aas.
384 2000-09-17 Marius Vollmer <mvo@zagadka.ping.de>
386 * configure.in: Check for curses, terminfo and termlib libraries
387 in addition to ncurses and termcap.
388 Check for `readline' in libreadline, not for `main'.
389 Thanks to Albert Chin!
391 2000-07-17 Marius Vollmer <mvo@zagadka.ping.de>
393 * configure.in (rl_pre_input_hook): Don't check for this with
394 AC_CHECK_FUNCS, it doesn't work on HP/UX. Test for it with
397 2000-06-19 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
399 * readline.c (sigwinch_enable_restart, scm_init_readline):
400 Re-enable restart for SIGWINCH signal.
402 * configure.in: Added test if readline clears SA_RESTART flag for
403 SIGWINCH. (Thanks to Dale P. Smith.)
404 Check for siginterrupt and rl_pre_input_hook.
406 2000-06-14 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
408 * readline.c (scm_readline): Added parenthesis around && within
410 Fixed up prototype for `reentry_barrier'.
411 Conditionally #include <unistd.h>. (Needed for `dup'.)
413 2000-06-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
415 * Makefile.am (dist-hook): Added kludge to fix automake generated
416 dependencies in the distribution archive Makefile.
418 2000-06-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
420 * readline.scm (apropos-completion-function): Don't define and
421 install if the 'regex feature is missing.
423 2000-06-06 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
425 * readline.c: Always provide scm_init_readline, also if readline
426 support is not included. Otherwise, a strange dynamic loading
427 error will occur. (It would be better not to install
428 libguilereadline at all.)
430 * readline-activator.scm (activate-readline): Report an error if
431 readline isn't provided by Guile.
433 * readline.scm: Report an error if readline isn't provided by
434 Guile; Added :no-backtrace to module header.
436 * configure.in: Put more ink before readline version warning.
437 (Thanks to Ian Grant.)
439 2000-06-01 Michael Livshin <mlivshin@bigfoot.com>
441 * autogen.sh: call ../guile-aclocal.sh instead of aclocal
443 2000-05-01 Gary Houston <ghouston@arglist.com>
445 * readline.c: include libguile.h, not libguile/libguile.h.
447 2000-04-21 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
449 * *.*: Change includes so that they always use the "prefixes"
450 libguile/, qt/, guile-readline/, or libltdl/.
452 * Makefile.am (DEFS): Added. automake adds -I options to DEFS,
453 and we don't want that.
454 (INCLUDES): Removed all -I options except for the root source
455 directory and the root build directory.
457 2000-04-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
459 * readline.c (scm_readline): Must unpack SCM values to access
462 2000-03-19 Michael Livshin <mlivshin@bigfoot.com>
464 * *.[hc]: add Emacs magic at the end of file, to ensure GNU
467 2000-03-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
469 * readline.c (current_input_getc): Don't pass int values through
471 (match_paren): Bugfix: First arg to select is not number of
472 descriptors but the number of the highest descriptor + 1.
474 Thu Mar 9 08:00:26 2000 Greg J. Badros <gjb@cs.washington.edu>
476 * readline.c: scm_validate.h renamed to validate.h.
478 Wed Mar 8 10:43:10 2000 Greg J. Badros <gjb@cs.washington.edu>
480 * readline.c (match_paren): Use SELECT_TYPE, not fd_set, for type
483 2000-01-25 Marius Vollmer <mvo@zagadka.ping.de>
485 * autogen.sh: Call libtoolize. Pass --add-missing option to
488 * readline.scm: Only link glue code when the 'readline feature is
489 not already present. Thanks to Clark McGrew.
491 Tue Jan 11 17:51:40 2000 Greg J. Badros <gjb@cs.washington.edu>
493 * readline.c (scm_init_readline): Drop extra argument to
494 scm_mutex_init as that argument should not exist. I do not know
495 how this escaped detection for so long.
497 2000-01-09 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
499 * readline.c (match_paren): Changed return type to int (this is
500 the definition in readline 4) and modified code layout according
501 to GNU coding standards.
503 Wed Jan 5 11:18:01 2000 Greg J. Badros <gjb@cs.washington.edu>
505 * readline.c: Whitespace changes -- added space after
506 SCM_VALIDATE_* macros to match GNU coding standards.
508 Wed Jan 5 11:02:40 2000 Greg J. Badros <gjb@cs.washington.edu>
510 * readline.c: Rename GUILE_PROC to SCM_DEFINE.
512 Mon Dec 13 13:57:57 1999 Greg J. Badros <gjb@cs.washington.edu>
514 * readline.c: Include libguile/scm_validate.h
516 Sun Dec 12 19:56:52 1999 Greg J. Badros <gjb@cs.washington.edu>
518 * readline.c: Updated to use GUILE_PROC, SCM_VALIDATE, and have
519 (now empty) docstrings.
521 1999-11-18 Gary Houston <ghouston@freewire.co.uk>
523 * readline.c (scm_init_readline): set rl_readline_name to Guile,
524 to allow conditionals in .inputrc.
526 1999-10-05 Jim Blandy <jimb@savonarola.red-bean.com>
528 * Makefile.in, configure, aclocal.m4: Deleted from CVS repository.
529 Run the autogen.sh script to create generated files like these.
530 * autogen.sh: New script, invoked by the top-level autogen.sh.
532 1999-09-22 Jim Blandy <jimb@savonarola.red-bean.com>
534 * configure.in: Call AM_PROG_CC_STDC.
535 * configure, aclocal.m4: Regenerated.
537 1999-09-16 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
539 * Makefile.am (.c.x): Use same rule as in libguile.
541 1999-09-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
543 * readline.h, readline.scm: Updated copyright notices.
545 1999-09-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
547 * readline.scm (activate-readline): Set (using-readline?).
549 1999-09-11 Jim Blandy <jimb@savonarola.red-bean.com>
551 * aclocal.m4: Regenerated with newer libtool macros.
553 * Makefile.am (DISTCLEANFILES): Get rid of .x files.
554 * Makefile.in: Regenerated.
555 (Thanks to Keisuke Nishida.)
557 1999-09-11 Marius Vollmer <mvo@zagadka.ping.de>
559 * readline.scm: Moved from ../ice-9.
560 Dynamically link libguilereadline.so.
561 (readline): Just define in this module, do not overwrite builtin
562 variable. The builtin readline function is now named "%readline",
563 so this works. See below.
564 (activate-readline): New function which contains the readline
565 activation code formerly found in top-repl.
567 * readline.c (scm_readline): Export it to Scheme as "%readline".
569 * configure.in: Get version from ../GUILE-VERSION and use it for
572 * Makefile.am: Do not install and distribute
573 readline-activator.scm. Install and distribute readline.scm
576 * aclocal.m4, Makefile.in, configure, libtool: Regenerated, but
577 probably with the wrong version of the tools.
579 1999-08-29 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
581 The following change makes it possible for applications to have
582 their own version of scm_readline.
583 * readline.c, readline.h (rl_cleanup_after_signal,
584 rl_free_line_state): Made global.
585 (scm_readline_init_ports): New function.
586 (scm_readline): Use scm_readline_init_ports.
587 (Thanks to Anders Holst.)
589 * Makefile.am: Install guile-readline/readline.h.
591 1999-08-20 James Blandy <jimb@mule.m17n.org>
593 * Makefile.in, aclocal.m4, configure: Regenerated.
595 1999-08-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
597 * configure.in (HAVE_RL_GETC_FUNCTION): Modified test to actually
598 use rl_getc_function. Otherwise smart compilers, like gcc,
599 optimize away the reference so that no error occurs in the link
602 1999-08-04 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
604 * Makefile.am (INCLUDES): Added -I$(srcdir)/../libguile.
605 (Thanks to Greg Badros.)
607 1999-07-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
609 * readline.c (handle_error): Put a cosmetic newline on
610 rl_outstream on error before closing it.
612 * configure.in: Changed AC_MSG_ERROR into AC_MSG_WARN in case
613 readline doesn't exist on the system, so that configuration can
614 proceed normally without readline.
616 * readline.c: #include "libguile/_scm.h" (so that we get the
617 configuration information) and fix other includes so that they'll
618 work on a system where guile is not yet installed.
620 * Makefile.am (BUILT_SOURCES): Added.
622 1999-07-23 Marius Vollmer <mvo@zagadka.ping.de>
624 * Checked everything into CVS.
626 1999-07-22 Marius Vollmer <mvo@zagadka.ping.de>
628 * readline.c (stream_from_fport): New function.
629 (scm_readline): Use it to for the input and output ports. Close
630 the streams after readline returns.
631 (handle_error): Close them also when an error occured.
633 1999-06-17 Marius Vollmer <mvo@zagadka.ping.de>
635 * readline.h, readline.c: Removed exception notice from copyright
638 1999-05-16 Marius Vollmer <mvo@zagadka.ping.de>
640 * Started guile-readline package. Files are copied from old
641 guile-core package and slightly modified.