From: Chet Ramey Date: Wed, 13 Apr 2022 15:45:29 +0000 (-0400) Subject: add CHANGES and NEWS for readline-8.2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27b98c2acb21588d6fe23d5654bc0963d68ca3eb;p=thirdparty%2Freadline.git add CHANGES and NEWS for readline-8.2 --- diff --git a/CHANGES-8.1 b/CHANGES-8.1 deleted file mode 100644 index 374aa65..0000000 --- a/CHANGES-8.1 +++ /dev/null @@ -1,120 +0,0 @@ -This document details the changes between this version, readline-8.1, and -the previous version, readline-8.0. - -1. Changes to Readline - -a. There are a number of fixes that were found as the result of fuzzing with - random input. - -b. Changed the revert-all-at-newline behavior to make sure to start at the end - of the history list when doing it, instead of the line where the user hit - return. - -c. When parsing `set' commands from the inputrc file or an application, readline - now allows trailing whitespace. - -d. Fixed a bug that left a file descriptor open to the history file if the - file size was 0. - -e. Fixed a problem with binding key sequences containing meta characters. - -f. Fixed a bug that caused the wrong line to be displayed if the user tried to - move back beyond the beginning of the history list, or forward past the end - of the history list. - -g. If readline catches SIGTSTP, it now sets a hook that allows the calling - application to handle it if it desires. - -h. Fixed a redisplay problem with a prompt string containing embedded newlines. - -i. Fixed a problem with completing filenames containing invalid multibyte - sequences when case-insensitive comparisons are enabled. - -j. Fixed a redisplay problem with prompt strings containing invisible multibyte - characters. - -k. Fixed a problem with multibyte characters mapped to editing commands that - modify the search string in incremental search. - -l. Fixed a bug with maintaining the key sequence while resolving a bound - command in the presence of ambiguous sequences (sequences with a common - prefix), in most cases while attempting to unbind it. - -m. Fixed several buffer overflows found as the result of fuzzing. - -n. Reworked backslash handling when translating key sequences for key binding - to be more uniform and consistent, which introduces a slight backwards - incompatibility. - -o. Fixed a bug with saving the history that resulted in errors not being - propagated to the calling application when the history file is not writable. - -p. Readline only calls chown(2) on a newly-written history file if it really - needs to, instead of having it be a no-op. - -q. Readline now behaves better when operate-and-get-next is used when the - history list is `full': when there are already $HISTSIZE entries. - -r. Fixed a bug that could cause vi redo (`.') of a replace command not to work - correctly in the C or POSIX locale. - -s. Fixed a bug with vi-mode digit arguments that caused the last command to be - set incorrectly. This prevents yank-last-arg from working as intended, for - example. - -t. Make sure that all undo groups are closed when leaving vi insertion mode. - -u. Make sure that the vi-mode `C' and `c' commands enter insert mode even if - the motion command doesn't have any effect. - -v. Fixed several potential memory leaks in the callback mode context handling. - -w. If readline is handling a SIGTTOU, make sure SIGTTOU is blocked while - executing the terminal cleanup code, since it's no longer run in a signal - handling context. - -x. Fixed a bug that could cause an application with an application-specific - redisplay function to crash if the line data structures had not been - initialized. - -y. Terminals that are named "dumb" or unknown do not enable bracketed paste - by default. - -z. Ensure that disabling bracketed paste turns off highlighting the incremental - search string when the search is successful. - -2. New Features in Readline - -a. If a second consecutive completion attempt produces matches where the first - did not, treat it as a new completion attempt and insert a match as - appropriate. - -b. Bracketed paste mode works in more places: incremental search strings, vi - overstrike mode, character search, and reading numeric arguments. - -c. Readline automatically switches to horizontal scrolling if the terminal has - only one line. - -d. Unbinding all key sequences bound to a particular readline function now - descends into keymaps for multi-key sequences. - -e. rl-clear-display: new bindable command that clears the screen and, if - possible, the scrollback buffer (bound to emacs mode M-C-l by default). - -f. New active mark and face feature: when enabled, it will highlight the text - inserted by a bracketed paste (the `active region') and the text found by - incremental and non-incremental history searches. - -g. Readline sets the mark in several additional commands. - -h. Bracketed paste mode is enabled by default. There is a configure-time - option (--enable-bracketed-paste-default) to set the default to on or off. - -i. Readline tries to take advantage of the more regular structure of UTF-8 - characters to identify the beginning and end of characters when moving - through the line buffer. - -j. The bindable operate-and-get-next command (and its default bindings) are - now part of readline instead of a bash-specific addition. - -k. The signal cleanup code now blocks SIGINT while processing after a SIGINT. diff --git a/CHANGES-8.2 b/CHANGES-8.2 index 97b42d2..cace80a 100644 --- a/CHANGES-8.2 +++ b/CHANGES-8.2 @@ -45,6 +45,15 @@ m. Fixed a problem with line wrapping prompts when a group of invisible n. Fixed a couple problems that could cause rl_end to be set incorrectly by transpose-words. +o. Prevent some display problems when running a command as the result of a + trap or one bound using `bind -x' and the command generates output. + +p. Fixed an issue with multi-line prompt strings that have one or more + invisible characters at the end of a physical line. + +q. Fixed an issue that caused a history line's undo list to be cleared when + it should not have been. + 2. New Features in Readline a. There is now an HS_HISTORY_VERSION containing the version number of the @@ -77,9 +86,19 @@ g. There is a new option: `enable-active-region'. This separates control of h. rl_completer_word_break_characters is now `const char *' like rl_basic_word_break_characters. -i. The non-incremental history searches now leave the current history offset - at the position of the last matching history entry, like incremental search. - -j. Readline looks in $LS_COLORS for a custom filename extension +i. Readline looks in $LS_COLORS for a custom filename extension (*.readline-colored-completion-prefix) and uses that as the default color for the common prefix displayed when `colored-completion-prefix' is set. + +j. Two new bindable string variables: active-region-start-color and + active-region-end-color. The first sets the color used to display the + active region; the second turns it off. If set, these are used in place + of terminal standout mode. + +k. New readline state (RL_STATE_EOF) and application-visible variable + (rl_eof_found) to allow applications to detect when readline reads EOF + before calling the deprep-terminal hook. + +l. There is a new configuration option: --with-shared-termcap-library, which + forces linking the shared readline library with the shared termcap (or + curses/ncurses/termlib) library so applications don't have to do it. diff --git a/NEWS-8.1 b/NEWS-8.1 deleted file mode 100644 index ecec734..0000000 --- a/NEWS-8.1 +++ /dev/null @@ -1,38 +0,0 @@ -This is a terse description of the new features added to readline-8.1 since -the release of readline-8.0. - -New Features in Readline - -a. If a second consecutive completion attempt produces matches where the first - did not, treat it as a new completion attempt and insert a match as - appropriate. - -b. Bracketed paste mode works in more places: incremental search strings, vi - overstrike mode, character search, and reading numeric arguments. - -c. Readline automatically switches to horizontal scrolling if the terminal has - only one line. - -d. Unbinding all key sequences bound to a particular readline function now - descends into keymaps for multi-key sequences. - -e. rl-clear-display: new bindable command that clears the screen and, if - possible, the scrollback buffer (bound to emacs mode M-C-l by default). - -f. New active mark and face feature: when enabled, it will highlight the text - inserted by a bracketed paste (the `active region') and the text found by - incremental and non-incremental history searches. - -g. Readline sets the mark in several additional commands. - -h. Bracketed paste mode is enabled by default. There is a configure-time - option (--enable-bracketed-paste-default) to set the default to on or off. - -i. Readline tries to take advantage of the more regular structure of UTF-8 - characters to identify the beginning and end of characters when moving - through the line buffer. - -j. The bindable operate-and-get-next command (and its default bindings) are - now part of readline instead of a bash-specific addition. - -k. The signal cleanup code now blocks SIGINT while processing after a SIGINT. diff --git a/NEWS-8.2 b/NEWS-8.2 index 58753a6..234ec91 100644 --- a/NEWS-8.2 +++ b/NEWS-8.2 @@ -33,9 +33,19 @@ g. There is a new option: `enable-active-region'. This separates control of h. rl_completer_word_break_characters is now `const char *' like rl_basic_word_break_characters. -i. The non-incremental history searches now leave the current history offset - at the position of the last matching history entry, like incremental search. - -j. Readline looks in $LS_COLORS for a custom filename extension +i. Readline looks in $LS_COLORS for a custom filename extension (*.readline-colored-completion-prefix) and uses that as the default color for the common prefix displayed when `colored-completion-prefix' is set. + +j. Two new bindable string variables: active-region-start-color and + active-region-end-color. The first sets the color used to display the + active region; the second turns it off. If set, these are used in place + of terminal standout mode. + +k. New readline state (RL_STATE_EOF) and application-visible variable + (rl_eof_found) to allow applications to detect when readline reads EOF + before calling the deprep-terminal hook. + +l. There is a new configuration option: --with-shared-termcap-library, which + forces linking the shared readline library with the shared termcap (or + curses/ncurses/termlib) library so applications don't have to do it.