2011-03-04 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / readline / CHANGES
CommitLineData
5bdf8622
DJ
1This document details the changes between this version, readline-5.1,
2and the previous version, readline-5.0.
3
41. Changes to Readline
5
6a. Fixed a bug that caused multiliine prompts to be wrapped and displayed
7 incorrectly.
8
9b. Fixed a bug that caused ^P/^N in emacs mode to fail to display the current
10 line correctly.
11
12c. Fixed a problem in computing the number of invisible characters on the first
13 line of a prompt whose length exceeds the screen width.
14
15d. Fixed vi-mode searching so that failure preserves the current line rather
16 than the last line in the history list.
17
18e. Fixed the vi-mode `~' command (change-case) to have the correct behavior at
19 end-of-line when manipulating multibyte characters.
20
21f. Fixed the vi-mode `r' command (change-char) to have the correct behavior at
22 end-of-line when manipulating multibyte characters.
23
24g. Fixed multiple bugs in the redisplay of multibyte characters: displaying
25 prompts longer than the screen width containing multibyte characters,
26
27h. Fix the calculation of the number of physical characters in the prompt
28 string when it contains multibyte characters.
29
30i. A non-zero value for the `rl_complete_suppress_append' variable now causes
31 no `/' to be appended to a directory name.
32
33j. Fixed forward-word and backward-word to work when words contained
34 multibyte characters.
35
36k. Fixed a bug in finding the delimiter of a `?' substring when performing
37 history expansion in a locale that supports multibyte characters.
38
39l. Fixed a memory leak caused by not freeing the timestamp in a history entry.
40
41m. Fixed a bug that caused "\M-x" style key bindings to not obey the setting
42 of the `convert-meta' variable.
43
44n. Fixed saving and restoring primary prompt when prompting for incremental
45 and non-incremental searches; search prompts now display multibyte
46 characters correctly.
47
48o. Fixed a bug that caused keys originally bound to self-insert but shadowed
49 by a multi-character key sequence to not be inserted.
50
51p. Fixed code so rl_prep_term_function and rl_deprep_term_function aren't
52 dereferenced if NULL (matching the documentation).
53
54q. Extensive changes to readline to add enough state so that commands
55 requiring additional characters (searches, multi-key sequences, numeric
56 arguments, commands requiring an additional specifier character like
57 vi-mode change-char, etc.) work without synchronously waiting for
58 additional input.
59
60r. Lots of changes so readline builds and runs on MinGW.
61
62s. Readline no longer tries to modify the terminal settings when running in
63 callback mode.
64
65t. The Readline display code no longer sets the location of the last invisible
66 character in the prompt if the \[\] sequence is empty.
67
68u. The `change-case' command now correctly changes the case of multibyte
69 characters.
70
71v. Changes to the shared library construction scripts to deal with Windows
72 DLL naming conventions for Cygwin.
73
74w. Fixed the redisplay code to avoid core dumps resulting from a poorly-timed
75 SIGWINCH.
76
77x. Fixed the non-incremental search code in vi mode to dispose of any current
78 undo list when copying a line from the history into the current editing
79 buffer.
80
81y. Fixed a bug that caused reversing the incremental search direction to
82 not work correctly.
83
84z. Fixed the vi-mode `U' command to only undo up to the first time insert mode
85 was entered, as Posix specifies.
86
87aa. Fixed a bug in the vi-mode `r' command that left the cursor in the wrong
88 place.
89
90bb. Fixed a redisplay bug caused by moving the cursor vertically to a line
91 with invisible characters in the prompt in a multibyte locale.
92
93cc. Fixed a bug that could cause the terminal special chars to be bound in the
94 wrong keymap in vi mode.
95
962. New Features in Readline
97
98a. The key sequence sent by the keypad `delete' key is now automatically
99 bound to delete-char.
100
101b. A negative argument to menu-complete now cycles backward through the
102 completion list.
103
104c. A new bindable readline variable: bind-tty-special-chars. If non-zero,
105 readline will bind the terminal special characters to their readline
106 equivalents when it's called (on by default).
107
108d. New bindable command: vi-rubout. Saves deleted text for possible
109 reinsertion, as with any vi-mode `text modification' command; `X' is bound
110 to this in vi command mode.
111
112e. If the rl_completion_query_items is set to a value < 0, readline never
113 asks the user whether or not to view the possible completions.
114
115f. The `C-w' binding in incremental search now understands multibyte
116 characters.
117
118g. New application-callable auxiliary function, rl_variable_value, returns
119 a string corresponding to a readline variable's value.
120
121h. When parsing inputrc files and variable binding commands, the parser
122 strips trailing whitespace from values assigned to boolean variables
123 before checking them.
124
125i. A new external application-controllable variable that allows the LINES
126 and COLUMNS environment variables to set the window size regardless of
127 what the kernel returns.
128
129-------------------------------------------------------------------------------
130This document details the changes between this version, readline-5.0,
131and the previous version, readline-4.3.
132
1331. Changes to Readline
134
135a. Fixes to avoid core dumps because of null pointer references in the
136 multibyte character code.
137
138b. Fix to avoid infinite recursion caused by certain key combinations.
139
140c. Fixed a bug that caused the vi-mode `last command' to be set incorrectly.
141
142d. Readline no longer tries to read ahead more than one line of input, even
143 when more is available.
144
145e. Fixed the code that adjusts the point to not mishandle null wide
146 characters.
147
148f. Fixed a bug in the history expansion `g' modifier that caused it to skip
149 every other match.
150
151g. Fixed a bug that caused the prompt to overwrite previous output when the
152 output doesn't contain a newline and the locale supports multibyte
153 characters. This same change fixes the problem of readline redisplay
154 slowing down dramatically as the line gets longer in multibyte locales.
155
156h. History traversal with arrow keys in vi insertion mode causes the cursor
157 to be placed at the end of the new line, like in emacs mode.
158
159i. The locale initialization code does a better job of using the right
160 precedence and defaulting when checking the appropriate environment
161 variables.
162
163j. Fixed the history word tokenizer to handle <( and >( better when used as
164 part of bash.
165
166k. The overwrite mode code received several bug fixes to improve undo.
167
168l. Many speedups to the multibyte character redisplay code.
169
170m. The callback character reading interface should not hang waiting to read
171 keyboard input.
172
173n. Fixed a bug with redoing vi-mode `s' command.
174
175o. The code that initializes the terminal tracks changes made to the terminal
176 special characters with stty(1) (or equivalent), so that these changes
177 are reflected in the readline bindings. New application-callable function
178 to make it work: rl_tty_unset_default_bindings().
179
180p. Fixed a bug that could cause garbage to be inserted in the buffer when
181 changing character case in vi mode when using a multibyte locale.
182
183q. Fixed a bug in the redisplay code that caused problems on systems
184 supporting multibyte characters when moving between history lines when the
185 new line has more glyphs but fewer bytes.
186
187r. Undo and redo now work better after exiting vi insertion mode.
188
189s. Make sure system calls are restarted after a SIGWINCH is received using
190 SA_RESTART.
191
192t. Improvements to the code that displays possible completions when using
193 multibyte characters.
194
195u. Fixed a problem when parsing nested if statements in inputrc files.
196
197v. The completer now takes multibyte characters into account when looking for
198 quoted substrings on which to perform completion.
199
200w. The history search functions now perform better bounds checking on the
201 history list.
202
203x. Change to history expansion functions to treat `^' as equivalent to word
204 one, as the documention states.
205
206y. Some changes to the display code to improve display and redisplay of
207 multibyte characters.
208
209z. Changes to speed up the multibyte character redisplay code.
210
211aa. Fixed a bug in the vi-mode `E' command that caused it to skip over the
212 last character of a word if invoked while point was on the word's
213 next-to-last character.
214
215bb. Fixed a bug that could cause incorrect filename quoting when
216 case-insensitive completion was enabled and the word being completed
217 contained backslashes quoting word break characters.
218
219cc. Fixed a bug in redisplay triggered when the prompt string contains
220 invisible characters.
221
222dd. Fixed some display (and other) bugs encountered in multibyte locales
223 when a non-ascii character was the last character on a line.
224
225ee. Fixed some display bugs caused by multibyte characters in prompt strings.
226
227ff. Fixed a problem with history expansion caused by non-whitespace characters
228 used as history word delimiters.
229
230gg. Fixed a problem that could cause readline to refer to freed memory when
231 moving between history lines while doing searches.
232
233hh. Improvements to the code that expands and displays prompt strings
234 containing multibyte characters.
235
236ii. Fixed a problem with vi-mode not correctly remembering the numeric argument
237 to the last `c'hange command for later use with `.'.
238
239jj. Fixed a bug in vi-mode that caused multi-digit count arguments to work
240 incorrectly.
241
242kk. Fixed a problem in vi-mode that caused the last text modification command
243 to not be remembered across different command lines.
244
245ll. Fixed problems with changing characters and changing case at the end of
246 the line.
247
248mm. Fixed a problem with readline saving the contents of the current line
249 before beginning a non-interactive search.
250
251nn. Fixed a problem with EOF detection when using rl_event_hook.
252
253oo. Fixed a problem with the vi mode `p' and `P' commands ignoring numeric
254 arguments.
255
2562. New Features in Readline
257
258a. History expansion has a new `a' modifier equivalent to the `g' modifier
259 for compatibility with the BSD csh.
260
261b. History expansion has a new `G' modifier equivalent to the BSD csh `g'
262 modifier, which performs a substitution once per word.
263
264c. All non-incremental search operations may now undo the operation of
265 replacing the current line with the history line.
266
267d. The text inserted by an `a' command in vi mode can be reinserted with
268 `.'.
269
270e. New bindable variable, `show-all-if-unmodified'. If set, the readline
271 completer will list possible completions immediately if there is more
272 than one completion and partial completion cannot be performed.
273
274f. There is a new application-callable `free_history_entry()' function.
275
276g. History list entries now contain timestamp information; the history file
277 functions know how to read and write timestamp information associated
278 with each entry.
279
280h. Four new key binding functions have been added:
281
282 rl_bind_key_if_unbound()
283 rl_bind_key_if_unbound_in_map()
284 rl_bind_keyseq_if_unbound()
285 rl_bind_keyseq_if_unbound_in_map()
286
287i. New application variable, rl_completion_quote_character, set to any
288 quote character readline finds before it calls the application completion
289 function.
290
291j. New application variable, rl_completion_suppress_quote, settable by an
292 application completion function. If set to non-zero, readline does not
293 attempt to append a closing quote to a completed word.
294
295k. New application variable, rl_completion_found_quote, set to a non-zero
296 value if readline determines that the word to be completed is quoted.
297 Set before readline calls any application completion function.
298
299l. New function hook, rl_completion_word_break_hook, called when readline
300 needs to break a line into words when completion is attempted. Allows
301 the word break characters to vary based on position in the line.
302
303m. New bindable command: unix-filename-rubout. Does the same thing as
304 unix-word-rubout, but adds `/' to the set of word delimiters.
305
306n. When listing completions, directories have a `/' appended if the
307 `mark-directories' option has been enabled.
308
309-------------------------------------------------------------------------------
9255ee31
EZ
310This document details the changes between this version, readline-4.3,
311and the previous version, readline-4.2a.
312
3131. Changes to Readline
314
315a. Fixed output of comment-begin character when listing variable values.
316
317b. Added some default key bindings for common escape sequences produced by
318 HOME and END keys.
319
320c. Fixed the mark handling code to be more emacs-compatible.
321
322d. A bug was fixed in the code that prints possible completions to keep it
323 from printing empty strings in certain circumstances.
324
325e. Change the key sequence printing code to print ESC as M\- if ESC is a
326 meta-prefix character -- it's easier for users to understand than \e.
327
328f. Fixed unstifle_history() to return values that match the documentation.
329
330g. Fixed the event loop (rl_event_hook) to handle the case where the input
331 file descriptor is invalidated.
332
333h. Fixed the prompt display code to work better when the application has a
334 custom redisplay function.
335
336i. Changes to make reading and writing the history file a little faster, and
337 to cope with huge history files without calling abort(3) from xmalloc.
338
339j. The vi-mode `S' and `s' commands are now undone correctly.
340
341k. Fixed a problem which caused the display to be messed up when the last
342 line of a multi-line prompt (possibly containing invisible characters)
343 was longer than the screen width.
344
3452. New Features in Readline
346
347a. Support for key `subsequences': allows, e.g., ESC and ESC-a to both
348 be bound to readline functions. Now the arrow keys may be used in vi
349 insert mode.
350
351b. When listing completions, and the number of lines displayed is more than
352 the screen length, readline uses an internal pager to display the results.
353 This is controlled by the `page-completions' variable (default on).
354
355c. New code to handle editing and displaying multibyte characters.
356
357d. The behavior introduced in bash-2.05a of deciding whether or not to
358 append a slash to a completed name that is a symlink to a directory has
359 been made optional, controlled by the `mark-symlinked-directories'
360 variable (default is the 2.05a behavior).
361
362e. The `insert-comment' command now acts as a toggle if given a numeric
363 argument: if the first characters on the line don't specify a
364 comment, insert one; if they do, delete the comment text
365
366f. New application-settable completion variable:
367 rl_completion_mark_symlink_dirs, allows an application's completion
368 function to temporarily override the user's preference for appending
369 slashes to names which are symlinks to directories.
370
371g. New function available to application completion functions:
372 rl_completion_mode, to tell how the completion function was invoked
373 and decide which argument to supply to rl_complete_internal (to list
374 completions, etc.).
375
376h. Readline now has an overwrite mode, toggled by the `overwrite-mode'
377 bindable command, which could be bound to `Insert'.
378
379i. New application-settable completion variable:
380 rl_completion_suppress_append, inhibits appending of
381 rl_completion_append_character to completed words.
382
383j. New key bindings when reading an incremental search string: ^W yanks
384 the currently-matched word out of the current line into the search
385 string; ^Y yanks the rest of the current line into the search string,
386 DEL or ^H deletes characters from the search string.
387
388-------------------------------------------------------------------------------
389This document details the changes between this version, readline-4.2a,
390and the previous version, readline-4.2.
391
3921. Changes to Readline
393
394a. More `const' and type casting fixes.
395
396b. Changed rl_message() to use vsnprintf(3) (if available) to fix buffer
397 overflow problems.
398
399c. The completion code no longer appends a `/' or ` ' to a match when
400 completing a symbolic link that resolves to a directory name, unless
401 the match does not add anything to the word being completed. This
402 means that a tab will complete the word up to the full name, but not
403 add anything, and a subsequent tab will add a slash.
404
405d. Fixed a trivial typo that made the vi-mode `dT' command not work.
406
407e. Fixed the tty code so that ^S and ^Q can be inserted with rl_quoted_insert.
408
409f. Fixed the tty code so that ^V works more than once.
410
411g. Changed the use of __P((...)) for function prototypes to PARAMS((...))
412 because the use of __P in typedefs conflicted g++ and glibc.
413
414h. The completion code now attempts to do a better job of preserving the
415 case of the word the user typed if ignoring case in completions.
416
417i. Readline defaults to not echoing the input and lets the terminal
418 initialization code enable echoing if there is a controlling terminal.
419
420j. The key binding code now processes only two hex digits after a `\x'
421 escape sequence, and the documentation was changed to note that the
422 octal and hex escape sequences result in an eight-bit value rather
423 than strict ASCII.
424
425k. Fixed a few places where negative array subscripts could have occurred.
426
427l. Fixed the vi-mode code to use a better method to determine the bounds of
428 the array used to hold the marks, and to avoid out-of-bounds references.
429
430m. Fixed the defines in chardefs.h to work better when chars are signed.
431
432n. Fixed configure.in to use the new names for bash autoconf macros.
433
434o. Readline no longer attempts to define its own versions of some ctype
435 macros if they are implemented as functions in libc but not as macros in
436 <ctype.h>.
437
438p. Fixed a problem where rl_backward could possibly set point to before
439 the beginning of the line.
440
441q. Fixed Makefile to not put -I/usr/include into CFLAGS, since it can cause
442 include file problems.
443
4442. New Features in Readline
445
446a. Added extern declaration for rl_get_termcap to readline.h, making it a
447 public function (it was always there, just not in readline.h).
448
449b. New #defines in readline.h: RL_READLINE_VERSION, currently 0x0402,
450 RL_VERSION_MAJOR, currently 4, and RL_VERSION_MINOR, currently 2.
451
452c. New readline variable: rl_readline_version, mirrors RL_READLINE_VERSION.
453
454d. New bindable boolean readline variable: match-hidden-files. Controls
455 completion of files beginning with a `.' (on Unix). Enabled by default.
456
457e. The history expansion code now allows any character to terminate a
458 `:first-' modifier, like csh.
459
460f. The incremental search code remembers the last search string and uses
461 it if ^R^R is typed without a search string.
462
463h. New bindable variable `history-preserve-point'. If set, the history
464 code attempts to place the user at the same location on each history
465 line retrived with previous-history or next-history.
466
467-------------------------------------------------------------------------------
468This document details the changes between this version, readline-4.2,
469and the previous version, readline-4.1.
470
4711. Changes to Readline
472
473a. When setting the terminal attributes on systems using `struct termio',
474 readline waits for output to drain before changing the attributes.
475
476b. A fix was made to the history word tokenization code to avoid attempts to
477 dereference a null pointer.
478
479c. Readline now defaults rl_terminal_name to $TERM if the calling application
480 has left it unset, and tries to initialize with the resultant value.
481
482d. Instead of calling (*rl_getc_function)() directly to get input in certain
483 places, readline now calls rl_read_key() consistently.
484
485e. Fixed a bug in the completion code that allowed a backslash to quote a
486 single quote inside a single-quoted string.
487
488f. rl_prompt is no longer assigned directly from the argument to readline(),
489 but uses memory allocated by readline. This allows constant strings to
490 be passed to readline without problems arising when the prompt processing
491 code wants to modify the string.
492
493g. Fixed a bug that caused non-interactive history searches to return the
494 wrong line when performing multiple searches backward for the same string.
495
496h. Many variables, function arguments, and function return values are now
497 declared `const' where appropriate, to improve behavior when linking with
498 C++ code.
499
500i. The control character detection code now works better on systems where
501 `char' is unsigned by default.
502
503j. The vi-mode numeric argument is now capped at 999999, just like emacs mode.
504
505k. The Function, CPFunction, CPPFunction, and VFunction typedefs have been
506 replaced with a set of specific prototyped typedefs, though they are
507 still in the readline header files for backwards compatibility.
508
509m. Nearly all of the (undocumented) internal global variables in the library
510 now have an _rl_ prefix -- there were a number that did not, like
511 screenheight, screenwidth, alphabetic, etc.
512
513n. The ding() convenience function has been renamed to rl_ding(), though the
514 old function is still defined for backwards compatibility.
515
516o. The completion convenience functions filename_completion_function,
517 username_completion_function, and completion_matches now have an rl_
518 prefix, though the old names are still defined for backwards compatibility.
519
520p. The functions shared by readline and bash (linkage is satisfied from bash
521 when compiling with bash, and internally otherwise) now have an sh_ prefix.
522
523q. Changed the shared library creation procedure on Linux and BSD/OS 4.x so
524 that the `soname' contains only the major version number rather than the
525 major and minor numbers.
526
527r. Fixed a redisplay bug that occurred when the prompt spanned more than one
528 physical line and contained invisible characters.
529
530s. Added a missing `includedir' variable to the Makefile.
531
532t. When installing the shared libraries, make sure symbolic links are relative.
533
534u. Added configure test so that it can set `${MAKE}' appropriately.
535
536v. Fixed a bug in rl_forward that could cause the point to be set to before
537 the beginning of the line in vi mode.
538
539w. Fixed a bug in the callback read-char interface to make it work when a
540 readline function pushes some input onto the input stream with
541 rl_execute_next (like the incremental search functions).
542
543x. Fixed a file descriptor leak in the history file manipulation code that
544 was tripped when attempting to truncate a non-regular file (like
545 /dev/null).
546
547y. Changes to make all of the exported readline functions declared in
548 readline.h have an rl_ prefix (rltty_set_default_bindings is now
549 rl_tty_set_default_bindings, crlf is now rl_crlf, etc.)
550
551z. The formatted documentation included in the base readline distribution
552 is no longer removed on a `make distclean'.
553
554aa. Some changes were made to avoid gcc warnings with -Wall.
555
556bb. rl_get_keymap_by_name now finds keymaps case-insensitively, so
557 `set keymap EMACS' works.
558
559cc. The history file writing and truncation functions now return a useful
560 status on error.
561
562dd. Fixed a bug that could cause applications to dereference a NULL pointer
563 if a NULL second argument was passed to history_expand().
564
565ee. If a hook function assigned to rl_event_hook sets rl_done to a non-zero
566 value, rl_read_key() now immediately returns '\n' (which is assumed to
567 be bound to accept-line).
568
5692. New Features in Readline
570
571a. The blink timeout for paren matching is now settable by applications,
572 via the rl_set_paren_blink_timeout() function.
573
574b. _rl_executing_macro has been renamed to rl_executing_macro, which means
575 it's now part of the public interface.
576
577c. Readline has a new variable, rl_readline_state, which is a bitmap that
578 encapsulates the current state of the library; intended for use by
579 callbacks and hook functions.
580
581d. rlfe has a new -l option to log input and output (-a appends to logfile),
582 a new -n option to set the readline application name, and -v and -h
583 options for version and help information.
584
585e. rlfe can now perform filename completion for the inferior process if the
586 OS has a /proc/<PID>/cwd that can be read with readlink(2) to get the
587 inferior's current working directory.
588
589f. A new file, rltypedefs.h, contains the new typedefs for function pointers
590 and is installed by `make install'.
591
592g. New application-callable function rl_set_prompt(const char *prompt):
593 expands its prompt string argument and sets rl_prompt to the result.
594
595h. New application-callable function rl_set_screen_size(int rows, int cols):
596 public method for applications to set readline's idea of the screen
597 dimensions.
598
599i. The history example program (examples/histexamp.c) is now built as one
600 of the examples.
601
602j. The documentation has been updated to cover nearly all of the public
603 functions and variables declared in readline.h.
604
605k. New function, rl_get_screen_size (int *rows, int *columns), returns
606 readline's idea of the screen dimensions.
607
608l. The timeout in rl_gather_tyi (readline keyboard input polling function)
609 is now settable via a function (rl_set_keyboard_input_timeout()).
610
611m. Renamed the max_input_history variable to history_max_entries; the old
612 variable is maintained for backwards compatibility.
613
614n. The list of characters that separate words for the history tokenizer is
615 now settable with a variable: history_word_delimiters. The default
616 value is as before.
617
618o. There is a new history.3 manual page documenting the history library.
619
620-------------------------------------------------------------------------------
1b17e766
EZ
621This document details the changes between this version, readline-4.1,
622and the previous version, readline-4.0.
623
6241. Changes to Readline
625
626a. Changed the HTML documents so that the table-of-contents is no longer
627 a separate file.
628
629b. Changes to the shared object configuration for: Irix 5.x, Irix 6.x,
630 OSF/1.
631
632c. The shared library major and minor versions are now constructed
633 automatically by configure and substituted into the makefiles.
634
635d. It's now possible to install the shared libraries separately from the
636 static libraries.
637
638e. The history library tries to truncate the history file only if it is a
639 regular file.
640
641f. A bug that caused _rl_dispatch to address negative array indices on
642 systems with signed chars was fixed.
643
644g. rl-yank-nth-arg now leaves the history position the same as when it was
645 called.
646
647h. Changes to the completion code to handle MS-DOS drive-letter:pathname
648 filenames.
649
650i. Completion is now case-insensitive by default on MS-DOS.
651
652j. Fixes to the history file manipulation code for MS-DOS.
653
654k. Readline attempts to bind the arrow keys to appropriate defaults on MS-DOS.
655
656l. Some fixes were made to the redisplay code for better operation on MS-DOS.
657
658m. The quoted-insert code will now insert tty special chars like ^C.
659
660n. A bug was fixed that caused the display code to reference memory before
661 the start of the prompt string.
662
663o. More support for __EMX__ (OS/2).
664
665p. A bug was fixed in readline's signal handling that could cause infinite
666 recursion in signal handlers.
667
668q. A bug was fixed that caused the point to be less than zero when rl_forward
669 was given a very large numeric argument.
670
671r. The vi-mode code now gets characters via the application-settable value
672 of rl_getc_function rather than calling rl_getc directly.
673
674s. The history file code now uses O_BINARY mode when reading and writing
675 the history file on cygwin32.
676
677t. Fixed a bug in the redisplay code for lines with more than 256 line
678 breaks.
679
680u. A bug was fixed which caused invisible character markers to not be
681 stripped from the prompt string if the terminal was in no-echo mode.
682
683v. Readline no longer tries to get the variables it needs for redisplay
684 from the termcap entry if the calling application has specified its
685 own redisplay function. Readline treats the terminal as `dumb' in
686 this case.
687
688w. Fixes to the SIGWINCH code so that a multiple-line prompt with escape
689 sequences is redrawn correctly.
690
691x. Changes to the install and install-shared targets so that the libraries
692 and header files are installed separately.
693
6942. New Features in Readline
695
696a. A new Readline `user manual' is in doc/rluserman.texinfo.
697
698b. Parentheses matching is now always compiled into readline, and enabled
699 or disabled when the value of the `blink-matching-paren' variable is
700 changed.
701
702c. MS-DOS systems now use ~/_inputrc as the last-ditch inputrc filename.
703
704d. MS-DOS systems now use ~/_history as the default history file.
705
706e. history-search-{forward,backward} now leave the point at the end of the
707 line when the string to search for is empty, like
708 {reverse,forward}-search-history.
709
710f. history-search-{forward,backward} now leave the last history line found
711 in the readline buffer if the second or subsequent search fails.
712
713g. New function for use by applications: rl_on_new_line_with_prompt, used
714 when an application displays the prompt itself before calling readline().
715
716h. New variable for use by applications: rl_already_prompted. An application
717 that displays the prompt itself before calling readline() must set this to
718 a non-zero value.
719
720i. A new variable, rl_gnu_readline_p, always 1. The intent is that an
721 application can verify whether or not it is linked with the `real'
722 readline library or some substitute.
723
724j. Per Bothner's `rlfe' (pronounced `Ralphie') readline front-end program
725 is included in the examples subdirectory, though it is not built
726 by default.
727
728-------------------------------------------------------------------------------
c862e87b 729This document details the changes between this version, readline-4.0,
d60d9f65
SS
730and the previous version, readline-2.2.
731
7321. Changes to Readline
733
c862e87b
JM
734a. The version number is now 4.0, to match the major and minor version
735 numbers on the shared readline and history libraries. Future
736 releases will maintain the identical numbering.
d60d9f65 737
c862e87b
JM
738b. Fixed a typo in the `make install' recipe that copied libreadline.a
739 to libhistory.old right after installing it.
d60d9f65 740
c862e87b
JM
741c. The readline and history info files are now installed out of the source
742 directory if they are not found in the build directory.
d60d9f65 743
c862e87b
JM
744d. The library no longer exports a function named `savestring' -- backwards
745 compatibility be damned.
d60d9f65 746
c862e87b
JM
747e. There is no longer any #ifdef SHELL code in the source files.
748
749f. Some changes were made to the key binding code to fix memory leaks and
750 better support Win32 systems.
751
752g. Fixed a silly typo in the paren matching code -- it's microseconds, not
753 milliseconds.
754
755h. The readline library should be compilable by C++ compilers.
756
757i. The readline.h public header file now includes function prototypes for
758 all readline functions, and some changes were made to fix errors in the
759 source files uncovered by the use of prototypes.
760
761j. The maximum numeric argument is now clamped at 1000000.
762
763k. Fixes to rl_yank_last_arg to make it behave better.
764
765l. Fixed a bug in the display code that caused core dumps if the prompt
766 string length exceeded 1024 characters.
767
768m. The menu completion code was fixed to properly insert a single completion
769 if there is only one match.
770
771n. A bug was fixed that caused the display code to improperly display tabs
772 after newlines.
773
774o. A fix was made to the completion code in which a typo caused the wrong
775 value to be passed to the function that computed the longest common
776 prefix of the list of matches.
777
778p. The completion code now checks the value of rl_filename_completion_desired,
779 which is set by application-supplied completion functions to indicate
780 that filename completion is being performed, to decide whether or not to
781 call an application-supplied `ignore completions' function.
782
783q. Code was added to the history library to catch history substitutions
784 using `&' without a previous history substitution or search having been
785 performed.
786
787
7882. New Features in Readline
789
790a. There is a new script, support/shobj-conf, to do system-specific shared
791 object and library configuration. It generates variables for configure
792 to substitute into makefiles. The README file provides a detailed
793 explanation of the shared library creation process.
794
795b. Shared libraries and objects are now built in the `shlib' subdirectory.
796 There is a shlib/Makefile.in to control the build process. `make shared'
797 from the top-level directory is still the right way to build shared
798 versions of the libraries.
799
800c. rlconf.h is now installed, so applications can find out which features
801 have been compiled into the installed readline and history libraries.
802
803d. rlstdc.h is now an installed header file.
804
805e. Many changes to the signal handling:
806 o Readline now catches SIGQUIT and cleans up the tty before returning;
807 o A new variable, rl_catch_signals, is available to application writers
808 to indicate to readline whether or not it should install its own
809 signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP,
810 SIGTTIN, and SIGTTOU;
811 o A new variable, rl_catch_sigwinch, is available to application
812 writers to indicate to readline whether or not it should install its
813 own signal handler for SIGWINCH, which will chain to the calling
814 applications's SIGWINCH handler, if one is installed;
815 o There is a new function, rl_free_line_state, for application signal
816 handlers to call to free up the state associated with the current
817 line after receiving a signal;
818 o There is a new function, rl_cleanup_after_signal, to clean up the
819 display and terminal state after receiving a signal;
820 o There is a new function, rl_reset_after_signal, to reinitialize the
821 terminal and display state after an application signal handler
822 returns and readline continues
823
824f. There is a new function, rl_resize_terminal, to reset readline's idea of
825 the screen size after a SIGWINCH.
826
827g. New public functions: rl_save_prompt and rl_restore_prompt. These were
828 previously private functions with a `_' prefix. These functions are
829 used when an application wants to write a message to the `message area'
830 with rl_message and have the prompt restored correctly when the message
831 is erased.
832
833h. New function hook: rl_pre_input_hook, called just before readline starts
834 reading input, after initialization.
835
836i. New function hook: rl_display_matches_hook, called when readline would
837 display the list of completion matches. The new function
838 rl_display_match_list is what readline uses internally, and is available
839 for use by application functions called via this hook.
840
841j. New bindable function, delete-char-or-list, like tcsh.
842
843k. A new variable, rl_erase_empty_line, which, if set by an application using
844 readline, will cause readline to erase, prompt and all, lines on which the
845 only thing typed was a newline.
846
847l. There is a new script, support/shlib-install, to install and uninstall
848 the shared readline and history libraries.
849
850m. A new bindable variable, `isearch-terminators', which is a string
851 containing the set of characters that should terminate an incremental
852 search without being executed as a command.
853
854n. A new bindable function, forward-backward-delete-char.
855
856-------------------------------------------------------------------------------
d60d9f65
SS
857This document details the changes between this version, readline-2.2,
858and the previous version, readline-2.1.
859
8601. Changes to Readline
861
862a. Added a missing `extern' to a declaration in readline.h that kept
863 readline from compiling cleanly on some systems.
864
865b. The history file is now opened with mode 0600 when it is written for
866 better security.
867
868c. Changes were made to the SIGWINCH handling code so that prompt redisplay
869 is done better.
870
871d. ^G now interrupts incremental searches correctly.
872
873e. A bug that caused a core dump when the set of characters to be quoted
874 when completing words was empty was fixed.
875
876f. Fixed a problem in the readline test program rltest.c that caused a core
877 dump.
878
879g. The code that handles parser directives in inputrc files now displays
880 more error messages.
881
882h. The history expansion code was fixed so that the appearance of the
883 history comment character at the beginning of a word inhibits history
884 expansion for that word and the rest of the input line.
885
886i. The code that prints completion listings now behaves better if one or
887 more of the filenames contains non-printable characters.
888
889j. The time delay when showing matching parentheses is now 0.5 seconds.
890
891
8922. New Features in Readline
893
894a. There is now an option for `iterative' yank-last-arg handline, so a user
895 can keep entering `M-.', yanking the last argument of successive history
896 lines.
897
898b. New variable, `print-completions-horizontally', which causes completion
899 matches to be displayed across the screen (like `ls -x') rather than up
900 and down the screen (like `ls').
901
902c. New variable, `completion-ignore-case', which causes filename completion
903 and matching to be performed case-insensitively.
904
905d. There is a new bindable command, `magic-space', which causes history
906 expansion to be performed on the current readline buffer and a space to
907 be inserted into the result.
908
909e. There is a new bindable command, `menu-complete', which enables tcsh-like
910 menu completion (successive executions of menu-complete insert a single
911 completion match, cycling through the list of possible completions).
912
913f. There is a new bindable command, `paste-from-clipboard', for use on Win32
914 systems, to insert the text from the Win32 clipboard into the editing
915 buffer.
916
917g. The key sequence translation code now understands printf-style backslash
918 escape sequences, including \NNN octal escapes. These escape sequences
919 may be used in key sequence definitions or macro values.
920
921h. An `$include' inputrc file parser directive has been added.
This page took 0.575014 seconds and 4 git commands to generate.