Changes between Initial Version and Version 1 of Ticket #5755, comment 1


Ignore:
Timestamp:
07/05/2025 06:44:10 PM (2 months ago)
Author:
Bruce Dubbs

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5755, comment 1

    initial v1  
     11. Changes to Readline
     2{{{
     3a. Fixed a bug in clearing the visible line structure before redisplay.
     4
     5b. Fix a bug where setlocale(3) returning NULL caused a crash.
     6
     7c. Fixed signal checking in callback mode to handle signals that arrive before
     8   readline restore's the application's signal handlers.
     9
     10d. Fixed a bug with word completion where the directory name needs to be
     11   dequoted and tilde-expanded.
     12
     13e. Fixed a bug that caused compilation to fail on systems with select but not
     14   pselect.
     15
     16f. System-specific changes for: WIN32, z/OS, Cygwin, MSYS
     17
     18g. Fixed a bug that caused word completion mismatches if the quoted text the
     19   user typed was longer than the unquoted match.
     20
     21h. Fixes for freeing undo lists that might appear in history list entries
     22   after non-incremental searches.
     23
     24i. Fixes for some errors revealed by address sanitizer.
     25
     26j. In vi mode, if an `f' or `F' move command associated with a `c' or `C'
     27   command fails, don't enter insert mode.
     28
     29k. Fixed bug with truncating a history file containing timestamps that caused
     30   the timestamp associated with the first history entry not to be written.
     31
     32l. Fix vi-mode so that a motion command attached to d/D, y/Y, or t/T must
     33   consume or delete at least one character.
     34
     35m. Fix a redisplay error when displaying meta characters as octal sequences
     36   and other C locale issues.
     37
     38n. Fix error that caused characters composing an incomplete multibyte
     39   character not to be inserted into the line.
     40
     41o. In callback mode, let the application echo the signal characters (e.g., ^C)
     42   when the application's signal handlers are installed.
     43
     44p. Added some support for lines that consume more than the physical number of
     45   screen lines.
     46
     47q. Make sure dump-variables returns the string values for active-region-start-color
     48   and active-region-end-color if they're set.
     49
     50r. Fixes to how characters between 128 and 159 are printed when displaying
     51   macro values (use symbolic notation instead of directly printing the
     52   character).
     53
     54s. Don't convert meta characters that contain NULL (\M-\C-@) to actual NULs,
     55   which prematurely terminates the macro value.
     56
     57t. Fix typo in the readline color prefix extension that it uses for coloring
     58   filename prefixes when displaying possible completions.
     59
     60u. Call the filename rewrite hook on the word being completed before comparing
     61   it against possible completions from the file system to get consistent
     62   strings.
     63
     64v. Fix infinite recursion that can happen if someone binds a key that doesn't
     65   have a different upper and lower case represenation to do-lowercase-version.
     66
     67w. Check for non-ANSI (dumb) terminals a little more thoroughly.
     68
     69x. Don't attempt to history-expand the `quick substitution' character at the
     70   beginning of a line if the application has set the quoting state to single
     71   quotes.
     72
     73y. Fix small memory leak if non-incremental or incremental search is
     74   interrupted by a signal.
     75
     76z. Loading very large history files should be much faster.
     77
     78aa. Retry opening startup files if the open is interrupted by a signal
     79    and is not automatically restarted.
     80
     81bb. Make sure the bracketed-paste input buffer is null-terminated when read
     82    returns an error.
     83
     84cc. Fixed a small memory leak in execute-named-command if the command doesn't
     85    exist or the function doesn't return.
     86   
     87dd. Fix for attempting to change case of invalid multibyte characters.
     88
     89ee. Fix for possible completions that compare identically when using case-
     90    insensitive completion but have different byte lengths.
     91   
     92ff. Fix to make non-incremental searches use undo lists and set the history
     93    position the same way as incremental searches.
     94   
     95gg. Don't check for signals when handling a received signal.
     96   
     97hh. Fix off-by-one error when tokenizing words like $((expr)) while performing
     98    history expansion.
     99   
     100ii. Fixes for incremental searches and redisplay in the C locale.
     101
     102jj. Fixes for some use-after-free of the undo list errors when stacking multiple
     103    commands that use rl_maybe_replace_line to save changes to a history entry.
     104   
     105kk. Fixes to ensure that completion-prefix-display-length and
     106    colored-completion-prefix are mutually exclusive.
     107
     108ll. Fixed a bug that allowed a history search to change the current history
     109    list position.
     110
     111mm. Fixed a bug that allowed ^G to retain a saved command to execute.
     112
     113nn. Updates to new export-completions command to allow filename suffixes.
     114
     115oo. Fixed a redisplay bug with prompts containing multiple sequences of
     116    invisible characters that are longer than the screen width.
     117
     118pp. The history library no longer skips blank lines while it is reading a
     119    multiline history entry from a history file.
     120
    11212. New Features in Readline
    2 {{{
     122
    3123a. Output a newline if there is no prompt and readline reads an empty line.
    4124
     
    26146   readline command from the standard input and executes it. Bound to M-x
    27147   in emacs mode by default.
    28 
    29148i. Incremental and non-incremental searches now allow ^V/^Q (or, in the former
    30149   case, anything bound to quoted-insert) to quote characters in the search
    31150   string.
    32151
    33 j. There is a new rl_print_keybinding function that prints the key bindings
    34    for a single bindable function specified by name.
     152j. Documentation has been significantly updated.
    35153
    36 k. Documentation has been significantly updated.
    37 
    38 l. New `force-meta-prefix' bindable variable, which forces the use of ESC as
     154k. New `force-meta-prefix' bindable variable, which forces the use of ESC as
    39155   the meta prefix when using "\M-" in key bindings instead of overloading
    40156   convert-meta.
    41157
    42 m. The default value for `readline-colored-completion-prefix' no longer has a
     158l. The default value for `readline-colored-completion-prefix' no longer has a
    43159   leading `.'; the original report was based on a misunderstanding.
    44160
    45 n. There is a new bindable command, `export-completions', which writes the
     161m. There is a new bindable command, `export-completions', which writes the
    46162   possible completions for a word to the standard output in a defined format.
    47163
    48 o. Readline can reset its idea of the screen dimensions when executing after
     164n. Readline can reset its idea of the screen dimensions when executing after
    49165   a SIGCONT.
    50166}}}