diff options
author | Chet Ramey <chet.ramey@case.edu> | 2020-11-03 14:39:29 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2020-11-03 14:39:29 -0500 |
commit | 8086db3318caec84ed28b10df07bf7a2db10e5f4 (patch) | |
tree | d2634f5eff1a194c062eb56e577afe104ce8db3a | |
parent | 656e206e69f0a893b48130d02a92e1e1d1de9f53 (diff) |
Readline-8.1-rc2 releasereadline-8.1-rc2
-rw-r--r-- | CHANGELOG | 9 | ||||
-rw-r--r-- | CHANGES | 9 | ||||
-rw-r--r-- | INSTALL | 5 | ||||
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | bind.c | 4 | ||||
-rwxr-xr-x | configure | 21 | ||||
-rw-r--r-- | configure.ac | 12 | ||||
-rw-r--r-- | doc/history.0 | 2 | ||||
-rw-r--r-- | doc/history.3 | 2 | ||||
-rw-r--r-- | doc/history.dvi | bin | 72244 -> 72252 bytes | |||
-rw-r--r-- | doc/history.html | 6 | ||||
-rw-r--r-- | doc/history.info | 46 | ||||
-rw-r--r-- | doc/history.pdf | bin | 204483 -> 204488 bytes | |||
-rw-r--r-- | doc/history.ps | 40 | ||||
-rw-r--r-- | doc/history_3.ps | 4 | ||||
-rw-r--r-- | doc/hstech.texi | 2 | ||||
-rw-r--r-- | doc/readline.0 | 4 | ||||
-rw-r--r-- | doc/readline.3 | 4 | ||||
-rw-r--r-- | doc/readline.dvi | bin | 323584 -> 323600 bytes | |||
-rw-r--r-- | doc/readline.html | 8 | ||||
-rw-r--r-- | doc/readline.info | 110 | ||||
-rw-r--r-- | doc/readline.pdf | bin | 398664 -> 398680 bytes | |||
-rw-r--r-- | doc/readline.ps | 16 | ||||
-rw-r--r-- | doc/readline_3.ps | 62 | ||||
-rw-r--r-- | doc/rluser.texi | 2 | ||||
-rw-r--r-- | doc/rluserman.dvi | bin | 114796 -> 114812 bytes | |||
-rw-r--r-- | doc/rluserman.html | 8 | ||||
-rw-r--r-- | doc/rluserman.info | 54 | ||||
-rw-r--r-- | doc/rluserman.pdf | bin | 232889 -> 232909 bytes | |||
-rw-r--r-- | doc/rluserman.ps | 20 | ||||
-rw-r--r-- | doc/version.texi | 6 | ||||
-rw-r--r-- | isearch.c | 12 | ||||
-rw-r--r-- | kill.c | 3 | ||||
-rw-r--r-- | readline.c | 3 | ||||
-rw-r--r-- | rlprivate.h | 5 | ||||
-rw-r--r-- | search.c | 2 | ||||
-rw-r--r-- | shlib/Makefile.in | 2 | ||||
-rw-r--r-- | terminal.c | 13 |
39 files changed, 289 insertions, 212 deletions
@@ -1394,3 +1394,12 @@ configure.ac configure.ac - add -Wno-parentheses -Wno-format-security to CFLAGS if gcc (or clang) is the compiler + + 10/29 + ----- +configure.ac + - --enable-bracketed-paste-default: new invocation option, toggles the + default value of enable-bracketed-paste (on by default) + +INSTALL + - document new --enable-bracketed-paste-default configure option @@ -77,6 +77,12 @@ 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 @@ -101,7 +107,8 @@ f. New active mark and face feature: when enabled, it will highlight the text g. Readline sets the mark in several additional commands. -h. Bracketed paste mode is enabled by default (for now). +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 @@ -183,6 +183,11 @@ The readline `configure' recognizes a single `--with-PACKAGE' option: `--enable-static' Build the static libraries by default. The default is `yes'. + +`--enable-bracketed-paste-default' + Enable bracketed paste by default, so the initial value of the + `enable-bracketed-paste' Readline variable is `on'. The default + is `yes'. Shared Libraries ================ diff --git a/Makefile.in b/Makefile.in index 7803f27..c57db60 100644 --- a/Makefile.in +++ b/Makefile.in @@ -75,7 +75,7 @@ ETAGS = etags CTAGS = ctags -w CFLAGS = @CFLAGS@ -LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' +LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' @BRACKETED_PASTE@ CPPFLAGS = @CPPFLAGS@ DEFS = @DEFS@ @CROSS_COMPILE@ @@ -25,7 +25,8 @@ f. New active mark and face feature: when enabled, it will highlight the text g. Readline sets the mark in several additional commands. -h. Bracketed paste mode is enabled by default (for now). +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 @@ -1812,7 +1812,7 @@ static const struct { { "convert-meta", &_rl_convert_meta_chars_to_ascii, 0 }, { "disable-completion", &rl_inhibit_completion, 0 }, { "echo-control-characters", &_rl_echo_control_chars, 0 }, - { "enable-bracketed-paste", &_rl_enable_bracketed_paste, 0 }, + { "enable-bracketed-paste", &_rl_enable_bracketed_paste, V_SPECIAL }, { "enable-keypad", &_rl_enable_keypad, 0 }, { "enable-meta-key", &_rl_enable_meta, 0 }, { "expand-tilde", &rl_complete_with_tilde_expansion, 0 }, @@ -1878,6 +1878,8 @@ hack_special_boolean_var (int i) } else if (_rl_stricmp (name, "show-mode-in-prompt") == 0) _rl_reset_prompt (); + else if (_rl_stricmp (name, "enable-bracketed-paste") == 0) + _rl_enable_active_region = _rl_enable_bracketed_paste; } typedef int _rl_sv_func_t PARAMS((const char *)); @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac for Readline 8.1, version 2.89. +# From configure.ac for Readline 8.1, version 2.90. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for readline 8.1. # @@ -673,6 +673,7 @@ CFLAGS CC SET_MAKE CROSS_COMPILE +BRACKETED_PASTE host_os host_vendor host_cpu @@ -727,6 +728,7 @@ enable_multibyte enable_shared enable_static enable_install_examples +enable_bracketed_paste_default enable_largefile ' ac_precious_vars='build_alias @@ -1356,6 +1358,9 @@ Optional Features: --enable-static build static libraries [[default=YES]] --disable-install-examples don't install examples [[default=install]] + --disable-bracketed-paste-default + disable bracketed paste by default + [[default=enable]] --disable-largefile omit support for large files Optional Packages: @@ -2568,6 +2573,7 @@ opt_multibyte=yes opt_static_libs=yes opt_shared_libs=yes opt_install_examples=yes +opt_bracketed_paste_default=yes # Check whether --enable-multibyte was given. if test "${enable_multibyte+set}" = set; then : @@ -2590,11 +2596,24 @@ if test "${enable_install_examples+set}" = set; then : fi +# Check whether --enable-bracketed-paste-default was given. +if test "${enable_bracketed_paste_default+set}" = set; then : + enableval=$enable_bracketed_paste_default; opt_bracketed_paste_default=$enableval +fi + + if test $opt_multibyte = no; then $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h fi +if test $opt_bracketed_paste_default = yes; then + BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=1' +else + BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=0' +fi + + CROSS_COMPILE= diff --git a/configure.ac b/configure.ac index edd78c9..147bae5 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ dnl Process this file with autoconf to produce a configure script. # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -AC_REVISION([for Readline 8.1, version 2.89]) +AC_REVISION([for Readline 8.1, version 2.90]) AC_INIT(readline, 8.1, bug-readline@gnu.org) @@ -52,16 +52,26 @@ opt_multibyte=yes opt_static_libs=yes opt_shared_libs=yes opt_install_examples=yes +opt_bracketed_paste_default=yes AC_ARG_ENABLE(multibyte, AC_HELP_STRING([--enable-multibyte], [enable multibyte characters if OS supports them]), opt_multibyte=$enableval) AC_ARG_ENABLE(shared, AC_HELP_STRING([--enable-shared], [build shared libraries [[default=YES]]]), opt_shared_libs=$enableval) AC_ARG_ENABLE(static, AC_HELP_STRING([--enable-static], [build static libraries [[default=YES]]]), opt_static_libs=$enableval) AC_ARG_ENABLE(install-examples, AC_HELP_STRING([--disable-install-examples], [don't install examples [[default=install]]]), opt_install_examples=$enableval) +AC_ARG_ENABLE(bracketed-paste-default, AC_HELP_STRING([--disable-bracketed-paste-default], [disable bracketed paste by default [[default=enable]]]), opt_bracketed_paste_default=$enableval) + if test $opt_multibyte = no; then AC_DEFINE(NO_MULTIBYTE_SUPPORT) fi +if test $opt_bracketed_paste_default = yes; then + BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=1' +else + BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=0' +fi +AC_SUBST(BRACKETED_PASTE) + dnl load up the cross-building cache file -- add more cases and cache dnl files as necessary diff --git a/doc/history.0 b/doc/history.0 index 5f5e703..3c1a794 100644 --- a/doc/history.0 +++ b/doc/history.0 @@ -384,7 +384,7 @@ HISTORY(3) Library Functions Manual HISTORY(3) -1 if there was an error in expansion; 2 if the returned line should be displayed, but not exe- cuted, as with the [1m:p [22mmodifier. - If an error ocurred in expansion, then [4moutput[24m contains a descriptive + If an error occurred in expansion, then [4moutput[24m contains a descriptive error message. [4mchar[24m [4m*[24m [1mget_history_event [22m([4mconst[24m [4mchar[24m [4m*string,[24m [4mint[24m [4m*cindex,[24m [4mint[24m [4mqchar[24m) diff --git a/doc/history.3 b/doc/history.3 index 9b787c6..df6cd37 100644 --- a/doc/history.3 +++ b/doc/history.3 @@ -552,7 +552,7 @@ if the returned line should be displayed, but not executed, as with the \fB:p\fP modifier. .PD .RE -If an error ocurred in expansion, then \fIoutput\fP contains a descriptive +If an error occurred in expansion, then \fIoutput\fP contains a descriptive error message. .Fn3 "char *" get_history_event "const char *string" "int *cindex" "int qchar" diff --git a/doc/history.dvi b/doc/history.dvi Binary files differindex 5722192..9734c24 100644 --- a/doc/history.dvi +++ b/doc/history.dvi diff --git a/doc/history.html b/doc/history.html index 8aa3b57..3110cf3 100644 --- a/doc/history.html +++ b/doc/history.html @@ -1,6 +1,6 @@ <HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- Created on July, 17 2020 by texi2html 1.64 --> +<!-- Created on October, 30 2020 by texi2html 1.64 --> <!-- Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author) Karl Berry <karl@freefriends.org> @@ -2180,7 +2180,7 @@ to permit their use in free software. <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="history.html#SEC_About"> ? </A>]</TD> </TR></TABLE> <H1>About this document</H1> -This document was generated by <I>Chet Ramey</I> on <I>July, 17 2020</I> +This document was generated by <I>Chet Ramey</I> on <I>October, 30 2020</I> using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html "><I>texi2html</I></A> <P></P> @@ -2342,7 +2342,7 @@ the following structure: <BR> <FONT SIZE="-1"> This document was generated -by <I>Chet Ramey</I> on <I>July, 17 2020</I> +by <I>Chet Ramey</I> on <I>October, 30 2020</I> using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html "><I>texi2html</I></A> diff --git a/doc/history.info b/doc/history.info index 360410d..749d53e 100644 --- a/doc/history.info +++ b/doc/history.info @@ -1,7 +1,7 @@ This is history.info, produced by makeinfo version 6.7 from history.texi. -This document describes the GNU History library (version 8.1, 17 July +This document describes the GNU History library (version 8.1, 29 October 2020), a programming tool that provides a consistent user interface for recalling lines of previously typed input. @@ -1395,28 +1395,28 @@ Appendix C Function and Variable Index Tag Table: -Node: Top845 -Node: Using History Interactively1490 -Node: History Interaction1998 -Node: Event Designators3896 -Node: Word Designators5170 -Node: Modifiers6930 -Node: Programming with GNU History8475 -Node: Introduction to History9219 -Node: History Storage10897 -Node: History Functions12032 -Node: Initializing History and State Management13021 -Node: History List Management13833 -Node: Information About the History List16127 -Node: Moving Around the History List17741 -Node: Searching the History List18834 -Node: Managing the History File20759 -Node: History Expansion22579 -Node: History Variables24508 -Node: History Programming Example28488 -Node: GNU Free Documentation License31165 -Node: Concept Index56337 -Node: Function and Variable Index57042 +Node: Top848 +Node: Using History Interactively1493 +Node: History Interaction2001 +Node: Event Designators3899 +Node: Word Designators5173 +Node: Modifiers6933 +Node: Programming with GNU History8478 +Node: Introduction to History9222 +Node: History Storage10900 +Node: History Functions12035 +Node: Initializing History and State Management13024 +Node: History List Management13836 +Node: Information About the History List16130 +Node: Moving Around the History List17744 +Node: Searching the History List18837 +Node: Managing the History File20762 +Node: History Expansion22582 +Node: History Variables24511 +Node: History Programming Example28491 +Node: GNU Free Documentation License31168 +Node: Concept Index56340 +Node: Function and Variable Index57045 End Tag Table diff --git a/doc/history.pdf b/doc/history.pdf Binary files differindex f5d6936..949244f 100644 --- a/doc/history.pdf +++ b/doc/history.pdf diff --git a/doc/history.ps b/doc/history.ps index 4d15b60..3e9c231 100644 --- a/doc/history.ps +++ b/doc/history.ps @@ -1,7 +1,7 @@ %!PS-Adobe-2.0 %%Creator: dvips(k) 5.999 Copyright 2019 Radical Eye Software %%Title: history.dvi -%%CreationDate: Fri Jul 17 19:13:14 2020 +%%CreationDate: Fri Oct 30 14:07:46 2020 %%Pages: 24 %%PageOrder: Ascend %%BoundingBox: 0 0 612 792 @@ -12,7 +12,7 @@ %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips -D 600 -t letter -o history.ps history.dvi %DVIPSParameters: dpi=600 -%DVIPSSource: TeX output 2020.07.17:1513 +%DVIPSSource: TeX output 2020.10.30:1007 %%BeginProcSet: tex.pro 0 0 %! /TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S @@ -5241,28 +5241,28 @@ ifelse %%Page: 1 1 TeXDict begin 1 0 bop 150 1318 a Fr(GNU)65 b(History)h(Library)p 150 1418 3600 34 v 1920 1515 a Fq(Edition)31 b(8.1,)h(for)e -Fp(History)e(Library)h Fq(V)-8 b(ersion)31 b(8.1.)3367 -1623 y(July)f(2020)150 4927 y Fo(Chet)45 b(Ramey)-11 +Fp(History)e(Library)h Fq(V)-8 b(ersion)31 b(8.1.)3217 +1623 y(Octob)s(er)f(2020)150 4927 y Fo(Chet)45 b(Ramey)-11 b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l(ersit)l(y)150 5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11 b(ree)45 b(Soft)l(w)l(are)h(F) -11 b(oundation)p 150 5141 3600 17 v eop end %%Page: 2 2 -TeXDict begin 2 1 bop 150 4413 a Fq(This)31 b(do)s(cumen)m(t)h(describ) -s(es)f(the)h(GNU)h(History)f(library)g(\(v)m(ersion)g(8.1,)i(17)f(July) -e(2020\),)k(a)d(program-)150 4523 y(ming)38 b(to)s(ol)h(that)f(pro)m -(vides)g(a)g(consisten)m(t)i(user)d(in)m(terface)i(for)f(recalling)h -(lines)g(of)f(previously)f(t)m(yp)s(ed)150 4633 y(input.)150 -4767 y(Cop)m(yrigh)m(t)602 4764 y(c)577 4767 y Fn(\015)30 -b Fq(1988{2020)35 b(F)-8 b(ree)31 b(Soft)m(w)m(are)h(F)-8 -b(oundation,)31 b(Inc.)390 4902 y(P)m(ermission)21 b(is)f(gran)m(ted)h -(to)g(cop)m(y)-8 b(,)24 b(distribute)c(and/or)h(mo)s(dify)e(this)i(do)s -(cumen)m(t)f(under)f(the)390 5011 y(terms)25 b(of)h(the)f(GNU)h(F)-8 -b(ree)27 b(Do)s(cumen)m(tation)g(License,)g(V)-8 b(ersion)26 -b(1.3)g(or)f(an)m(y)h(later)g(v)m(ersion)390 5121 y(published)43 -b(b)m(y)h(the)h(F)-8 b(ree)46 b(Soft)m(w)m(are)g(F)-8 -b(oundation;)53 b(with)44 b(no)g(In)m(v)-5 b(arian)m(t)46 -b(Sections,)j(no)390 5230 y(F)-8 b(ron)m(t-Co)m(v)m(er)31 -b(T)-8 b(exts,)30 b(and)f(no)f(Bac)m(k-Co)m(v)m(er)k(T)-8 +TeXDict begin 2 1 bop 150 4413 a Fq(This)35 b(do)s(cumen)m(t)g(describ) +s(es)g(the)h(GNU)h(History)f(library)f(\(v)m(ersion)i(8.1,)h(29)f +(Octob)s(er)f(2020\),)j(a)d(pro-)150 4523 y(gramming)23 +b(to)s(ol)g(that)g(pro)m(vides)f(a)h(consisten)m(t)h(user)d(in)m +(terface)j(for)e(recalling)i(lines)f(of)f(previously)g(t)m(yp)s(ed)150 +4633 y(input.)150 4767 y(Cop)m(yrigh)m(t)602 4764 y(c)577 +4767 y Fn(\015)30 b Fq(1988{2020)35 b(F)-8 b(ree)31 b(Soft)m(w)m(are)h +(F)-8 b(oundation,)31 b(Inc.)390 4902 y(P)m(ermission)21 +b(is)f(gran)m(ted)h(to)g(cop)m(y)-8 b(,)24 b(distribute)c(and/or)h(mo)s +(dify)e(this)i(do)s(cumen)m(t)f(under)f(the)390 5011 +y(terms)25 b(of)h(the)f(GNU)h(F)-8 b(ree)27 b(Do)s(cumen)m(tation)g +(License,)g(V)-8 b(ersion)26 b(1.3)g(or)f(an)m(y)h(later)g(v)m(ersion) +390 5121 y(published)43 b(b)m(y)h(the)h(F)-8 b(ree)46 +b(Soft)m(w)m(are)g(F)-8 b(oundation;)53 b(with)44 b(no)g(In)m(v)-5 +b(arian)m(t)46 b(Sections,)j(no)390 5230 y(F)-8 b(ron)m(t-Co)m(v)m(er) +31 b(T)-8 b(exts,)30 b(and)f(no)f(Bac)m(k-Co)m(v)m(er)k(T)-8 b(exts.)41 b(A)29 b(cop)m(y)h(of)f(the)g(license)h(is)f(included)390 5340 y(in)h(the)h(section)g(en)m(titled)h(\\GNU)f(F)-8 b(ree)32 b(Do)s(cumen)m(tation)g(License".)p eop end diff --git a/doc/history_3.ps b/doc/history_3.ps index 6a10f4c..1f2b083 100644 --- a/doc/history_3.ps +++ b/doc/history_3.ps @@ -1,6 +1,6 @@ %!PS-Adobe-3.0 %%Creator: groff version 1.22.4 -%%CreationDate: Fri Jul 17 15:13:14 2020 +%%CreationDate: Mon Oct 12 10:59:26 2020 %%DocumentNeededResources: font Times-Roman %%+ font Times-Bold %%+ font Times-Italic @@ -749,7 +749,7 @@ F -.25(va)-.15 G 3.065(lo).25 G 3.065(fe)-3.065 G(scape)-3.065 E (as an error in e)-.1 E(xpansion;)-.15 E(2)144 268.8 Q (if the returned line should be displayed, b)180 268.8 Q(ut not e)-.2 E -.15(xe)-.15 G(cuted, as with the).15 E F1(:p)2.5 E F0(modi\214er)2.5 E -(.)-.55 E(If an error ocurred in e)108 280.8 Q(xpansion, then)-.15 E F2 +(.)-.55 E(If an error occurred in e)108 280.8 Q(xpansion, then)-.15 E F2 (output)2.5 E F0(contains a descripti)2.5 E .3 -.15(ve e)-.25 H (rror message.).15 E F2 -.15(ch)108 304.8 S(ar *).15 E F1(get_history_e) 2.5 E -.1(ve)-.15 G(nt).1 E F0(\()4.166 E F2(const c)A(har *string)-.15 diff --git a/doc/hstech.texi b/doc/hstech.texi index 2de62f7..7ac1195 100644 --- a/doc/hstech.texi +++ b/doc/hstech.texi @@ -1,7 +1,7 @@ @ignore This file documents the user interface to the GNU History library. -Copyright (C) 1988-2016 Free Software Foundation, Inc. +Copyright (C) 1988-2020 Free Software Foundation, Inc. Authored by Brian Fox and Chet Ramey. Permission is granted to make and distribute verbatim copies of this manual diff --git a/doc/readline.0 b/doc/readline.0 index 4d201c4..d32329b 100644 --- a/doc/readline.0 +++ b/doc/readline.0 @@ -254,7 +254,7 @@ READLINE(3) Library Functions Manual READLINE(3) escapes to begin and end sequences of non-printing characters, which can be used to embed a terminal control sequence into the mode string. - [1menable-bracketed-paste (Off)[0m + [1menable-bracketed-paste (On)[0m When set to [1mOn[22m, readline will configure the terminal in a way that will enable it to insert each paste into the editing buffer as a single string of characters, instead of treating each char- @@ -1127,4 +1127,4 @@ READLINE(3) Library Functions Manual READLINE(3) -GNU Readline 8.0 2020 March 24 READLINE(3) +GNU Readline 8.1 2020 October 29 READLINE(3) diff --git a/doc/readline.3 b/doc/readline.3 index 0663556..179c781 100644 --- a/doc/readline.3 +++ b/doc/readline.3 @@ -8,7 +8,7 @@ .\" .\" Last Change: Tue Mar 24 09:27:30 EDT 2020 .\" -.TH READLINE 3 "2020 March 24" "GNU Readline 8.0" +.TH READLINE 3 "2020 October 29" "GNU Readline 8.1" .\" .\" File Name macro. This used to be `.PN', for Path Name, .\" but Sun doesn't seem to like that very much. @@ -447,7 +447,7 @@ Use the \e1 and \e2 escapes to begin and end sequences of non-printing characters, which can be used to embed a terminal control sequence into the mode string. .TP -.B enable\-bracketed\-paste (Off) +.B enable\-bracketed\-paste (On) When set to \fBOn\fP, readline will configure the terminal in a way that will enable it to insert each paste into the editing buffer as a single string of characters, instead of treating each character as if diff --git a/doc/readline.dvi b/doc/readline.dvi Binary files differindex cd68b10..715e5ae 100644 --- a/doc/readline.dvi +++ b/doc/readline.dvi diff --git a/doc/readline.html b/doc/readline.html index 63a30b6..1dd7693 100644 --- a/doc/readline.html +++ b/doc/readline.html @@ -1,6 +1,6 @@ <HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- Created on September, 9 2020 by texi2html 1.64 --> +<!-- Created on October, 30 2020 by texi2html 1.64 --> <!-- Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author) Karl Berry <karl@freefriends.org> @@ -725,7 +725,7 @@ When set to <SAMP>`On'</SAMP>, Readline will configure the terminal in a way that will enable it to insert each paste into the editing buffer as a single string of characters, instead of treating each character as if it had been read from the keyboard. This can prevent pasted characters -from being interpreted as editing commands. The default is <SAMP>`off'</SAMP>. +from being interpreted as editing commands. The default is <SAMP>`On'</SAMP>. <P> <DT><CODE>enable-keypad</CODE> @@ -7599,7 +7599,7 @@ to permit their use in free software. <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="readline.html#SEC_About"> ? </A>]</TD> </TR></TABLE> <H1>About this document</H1> -This document was generated by <I>Chet Ramey</I> on <I>September, 9 2020</I> +This document was generated by <I>Chet Ramey</I> on <I>October, 30 2020</I> using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html "><I>texi2html</I></A> <P></P> @@ -7761,7 +7761,7 @@ the following structure: <BR> <FONT SIZE="-1"> This document was generated -by <I>Chet Ramey</I> on <I>September, 9 2020</I> +by <I>Chet Ramey</I> on <I>October, 30 2020</I> using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html "><I>texi2html</I></A> diff --git a/doc/readline.info b/doc/readline.info index 1da0e27..93d54dc 100644 --- a/doc/readline.info +++ b/doc/readline.info @@ -1,6 +1,6 @@ This is readline.info, produced by makeinfo version 6.7 from rlman.texi. -This manual describes the GNU Readline Library (version 8.1, 17 July +This manual describes the GNU Readline Library (version 8.1, 29 October 2020), a library which aids in the consistency of user interface across discrete programs which provide a command line interface. @@ -473,7 +473,7 @@ Variable Settings buffer as a single string of characters, instead of treating each character as if it had been read from the keyboard. This can prevent pasted characters from being interpreted as - editing commands. The default is 'off'. + editing commands. The default is 'On'. 'enable-keypad' When set to 'on', Readline will try to enable the application @@ -5135,59 +5135,59 @@ Function and Variable Index Tag Table: -Node: Top861 -Node: Command Line Editing1586 -Node: Introduction and Notation2238 -Node: Readline Interaction3862 -Node: Readline Bare Essentials5054 -Node: Readline Movement Commands6838 -Node: Readline Killing Commands7799 -Node: Readline Arguments9718 -Node: Searching10763 -Node: Readline Init File12916 -Node: Readline Init File Syntax14070 -Node: Conditional Init Constructs34329 -Node: Sample Init File38526 -Node: Bindable Readline Commands41651 -Node: Commands For Moving42706 -Node: Commands For History44465 -Node: Commands For Text49228 -Node: Commands For Killing52931 -Node: Numeric Arguments55645 -Node: Commands For Completion56785 -Node: Keyboard Macros58754 -Node: Miscellaneous Commands59442 -Node: Readline vi Mode63364 -Node: Programming with GNU Readline65181 -Node: Basic Behavior66167 -Node: Custom Functions69850 -Node: Readline Typedefs71333 -Node: Function Writing72967 -Node: Readline Variables74281 -Node: Readline Convenience Functions86953 -Node: Function Naming88025 -Node: Keymaps89287 -Node: Binding Keys92366 -Node: Associating Function Names and Bindings96914 -Node: Allowing Undoing99693 -Node: Redisplay102243 -Node: Modifying Text106267 -Node: Character Input107514 -Node: Terminal Management109412 -Node: Utility Functions111235 -Node: Miscellaneous Functions114563 -Node: Alternate Interface117982 -Node: A Readline Example120724 -Node: Alternate Interface Example122663 -Node: Readline Signal Handling126195 -Node: Custom Completers135454 -Node: How Completing Works136174 -Node: Completion Functions139481 -Node: Completion Variables143055 -Node: A Short Completion Example158848 -Node: GNU Free Documentation License171628 -Node: Concept Index196802 -Node: Function and Variable Index198323 +Node: Top864 +Node: Command Line Editing1589 +Node: Introduction and Notation2241 +Node: Readline Interaction3865 +Node: Readline Bare Essentials5057 +Node: Readline Movement Commands6841 +Node: Readline Killing Commands7802 +Node: Readline Arguments9721 +Node: Searching10766 +Node: Readline Init File12919 +Node: Readline Init File Syntax14073 +Node: Conditional Init Constructs34331 +Node: Sample Init File38528 +Node: Bindable Readline Commands41653 +Node: Commands For Moving42708 +Node: Commands For History44467 +Node: Commands For Text49230 +Node: Commands For Killing52933 +Node: Numeric Arguments55647 +Node: Commands For Completion56787 +Node: Keyboard Macros58756 +Node: Miscellaneous Commands59444 +Node: Readline vi Mode63366 +Node: Programming with GNU Readline65183 +Node: Basic Behavior66169 +Node: Custom Functions69852 +Node: Readline Typedefs71335 +Node: Function Writing72969 +Node: Readline Variables74283 +Node: Readline Convenience Functions86955 +Node: Function Naming88027 +Node: Keymaps89289 +Node: Binding Keys92368 +Node: Associating Function Names and Bindings96916 +Node: Allowing Undoing99695 +Node: Redisplay102245 +Node: Modifying Text106269 +Node: Character Input107516 +Node: Terminal Management109414 +Node: Utility Functions111237 +Node: Miscellaneous Functions114565 +Node: Alternate Interface117984 +Node: A Readline Example120726 +Node: Alternate Interface Example122665 +Node: Readline Signal Handling126197 +Node: Custom Completers135456 +Node: How Completing Works136176 +Node: Completion Functions139483 +Node: Completion Variables143057 +Node: A Short Completion Example158850 +Node: GNU Free Documentation License171630 +Node: Concept Index196804 +Node: Function and Variable Index198325 End Tag Table diff --git a/doc/readline.pdf b/doc/readline.pdf Binary files differindex 70afd0f..8723e98 100644 --- a/doc/readline.pdf +++ b/doc/readline.pdf diff --git a/doc/readline.ps b/doc/readline.ps index e21297a..229f63f 100644 --- a/doc/readline.ps +++ b/doc/readline.ps @@ -1,7 +1,7 @@ %!PS-Adobe-2.0 %%Creator: dvips(k) 5.999 Copyright 2019 Radical Eye Software %%Title: readline.dvi -%%CreationDate: Wed Sep 9 19:34:50 2020 +%%CreationDate: Fri Oct 30 14:07:46 2020 %%Pages: 82 %%PageOrder: Ascend %%BoundingBox: 0 0 612 792 @@ -12,7 +12,7 @@ %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips -D 600 -t letter -o readline.ps readline.dvi %DVIPSParameters: dpi=600 -%DVIPSSource: TeX output 2020.09.09:1534 +%DVIPSSource: TeX output 2020.10.30:1007 %%BeginProcSet: tex.pro 0 0 %! /TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S @@ -6684,15 +6684,15 @@ ifelse %%Page: 1 1 TeXDict begin 1 0 bop 150 1318 a Fu(GNU)65 b(Readline)g(Library)p 150 1418 3600 34 v 1873 1515 a Ft(Edition)30 b(8.1,)i(for)e -Fs(Readline)e(Library)h Ft(V)-8 b(ersion)31 b(8.1.)3367 -1623 y(July)f(2020)150 4927 y Fr(Chet)45 b(Ramey)-11 +Fs(Readline)e(Library)h Ft(V)-8 b(ersion)31 b(8.1.)3217 +1623 y(Octob)s(er)f(2020)150 4927 y Fr(Chet)45 b(Ramey)-11 b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l(ersit)l(y)150 5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11 b(ree)45 b(Soft)l(w)l(are)h(F) -11 b(oundation)p 150 5141 3600 17 v eop end %%Page: 2 2 -TeXDict begin 2 1 bop 150 4413 a Ft(This)40 b(man)m(ual)g(describ)s(es) -g(the)g(GNU)h(Readline)g(Library)f(\(v)m(ersion)h(8.1,)j(17)e(July)d -(2020\),)46 b(a)40 b(library)150 4523 y(whic)m(h)f(aids)g(in)g(the)g +TeXDict begin 2 1 bop 150 4413 a Ft(This)28 b(man)m(ual)i(describ)s(es) +e(the)i(GNU)f(Readline)h(Library)e(\(v)m(ersion)i(8.1,)h(29)f(Octob)s +(er)f(2020\),)j(a)d(library)150 4523 y(whic)m(h)39 b(aids)g(in)g(the)g (consistency)h(of)g(user)e(in)m(terface)j(across)f(discrete)g(programs) e(whic)m(h)h(pro)m(vide)h(a)150 4633 y(command)30 b(line)h(in)m (terface.)150 4767 y(Cop)m(yrigh)m(t)602 4764 y(c)577 @@ -7339,7 +7339,7 @@ e(of)g(treating)h(eac)m(h)g(c)m(haracter)g(as)f(if)f(it)i(had)1110 5230 y(b)s(een)e(read)i(from)e(the)i(k)m(eyb)s(oard.)49 b(This)32 b(can)h(prev)m(en)m(t)h(pasted)f(c)m(haracters)1110 5340 y(from)d(b)s(eing)g(in)m(terpreted)h(as)f(editing)h(commands.)41 -b(The)29 b(default)i(is)f(`)p Fs(off)p Ft('.)p eop end +b(The)29 b(default)i(is)f(`)p Fs(On)p Ft('.)p eop end %%Page: 7 11 TeXDict begin 7 10 bop 150 -116 a Ft(Chapter)30 b(1:)41 b(Command)29 b(Line)i(Editing)2153 b(7)630 299 y Fs(enable-keypad)1110 diff --git a/doc/readline_3.ps b/doc/readline_3.ps index d5bef07..0870adc 100644 --- a/doc/readline_3.ps +++ b/doc/readline_3.ps @@ -1,6 +1,6 @@ %!PS-Adobe-3.0 %%Creator: groff version 1.22.4 -%%CreationDate: Fri Jul 17 15:13:14 2020 +%%CreationDate: Fri Oct 30 10:07:47 2020 %%DocumentNeededResources: font Times-Roman %%+ font Times-Bold %%+ font Times-Italic @@ -344,8 +344,8 @@ le is read, and the k)108 616.8 R 1.459 -.15(ey b)-.1 H 1.159 (re).15 G(xample, placing)-2.65 E(M\255Control\255u: uni)144 698.4 Q -.15(ve)-.25 G(rsal\255ar).15 E(gument)-.18 E(or)108 710.4 Q (C\255Meta\255u: uni)144 722.4 Q -.15(ve)-.25 G(rsal\255ar).15 E(gument) --.18 E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(1)198.45 E 0 Cg -EP +-.18 E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(1)195.395 E 0 +Cg EP %%Page: 2 2 %%BeginPageSetup BP @@ -441,7 +441,7 @@ tes should be used to indicate a macro de\214nition.)-.15 F .089 (Unquoted te)108 720 R .089(xt is assumed to be a function name.)-.15 F .09(In the macro body)5.089 F 2.59(,t)-.65 G .09 (he backslash escapes described abo)-2.59 F -.15(ve)-.15 G -(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(2)198.45 E 0 Cg EP +(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(2)195.395 E 0 Cg EP %%Page: 3 3 %%BeginPageSetup BP @@ -553,7 +553,7 @@ the v)5.783 F .782(alue of this)-.25 F -.25(va)144 708 S .367 (re simply)-2.868 F(listed on the terminal.)144 720 Q 2.5(An)5 G -2.25 -.15(eg a)-2.5 H(ti).15 E .3 -.15(ve v)-.25 H (alue causes readline to ne)-.1 E -.15(ve)-.25 G 2.5(ra).15 G(sk.)-2.5 E -(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(3)198.45 E 0 Cg EP +(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(3)195.395 E 0 Cg EP %%Page: 4 4 %%BeginPageSetup BP @@ -596,7 +596,7 @@ R -.15(ve)-.25 G 5.622(.T).15 G .622(he v)-5.622 F .622(alue is e)-.25 F (ailable. Use)-.05 F .298(the \\1 and \\2 escapes to be)2.798 F .298 (gin and end sequences of non-printing characters, which)-.15 F (can be used to embed a terminal control sequence into the mode string.) -144 312 Q F1(enable\255brack)108 324 Q(eted\255paste \(Off\))-.1 E F0 +144 312 Q F1(enable\255brack)108 324 Q(eted\255paste \(On\))-.1 E F0 1.222(When set to)144 336 R F1(On)3.721 E F0 3.721(,r)C 1.221 (eadline will con\214gure the terminal in a w)-3.721 F 1.221 (ay that will enable it to insert each)-.1 F .353 @@ -659,8 +659,8 @@ F0 .439(The string of characters that should terminate an incremental s\ earch without subsequently e)144 708 R -.15(xe)-.15 G(cut-).15 E .935 (ing the character as a command.)144 720 R .935(If this v)5.935 F .935 (ariable has not been gi)-.25 F -.15(ve)-.25 G 3.434(nav).15 G .934 -(alue, the characters)-3.684 F F2(ESC)3.434 E F0(GNU Readline 8.0)72 768 -Q(2020 March 24)128.74 E(4)198.45 E 0 Cg EP +(alue, the characters)-3.684 F F2(ESC)3.434 E F0(GNU Readline 8.1)72 768 +Q(2020 October 29)125.685 E(4)195.395 E 0 Cg EP %%Page: 5 5 %%BeginPageSetup BP @@ -773,7 +773,7 @@ es to be listed immediately instead of ringing the bell.)144 684 Q F2 (ginning of the prompt indicating the editing mode: emacs, vi)-.15 F (command, or vi insertion.)144 720 Q(The mode strings are user)5 E (-settable \(e.g.,)-.2 E F1(emacs\255mode\255string)2.5 E F0(\).)A -(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(5)198.45 E 0 Cg EP +(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(5)195.395 E 0 Cg EP %%Page: 6 6 %%BeginPageSetup BP @@ -884,8 +884,8 @@ F .503(Each program)5.503 F .114(using the readline library sets the)180 (ey s)-.1 H .397(equence that quotes the).15 F(current or pre)180 688.8 Q(vious w)-.25 E(ord in)-.1 E F1(bash)2.5 E F0(:)A F1($if)180 712.8 Q F0 (Bash)2.5 E 2.5(#Q)180 724.8 S(uote the current or pre)-2.5 E(vious w) --.25 E(ord)-.1 E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(6) -198.45 E 0 Cg EP +-.25 E(ord)-.1 E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(6) +195.395 E 0 Cg EP %%Page: 7 7 %%BeginPageSetup BP @@ -983,8 +983,8 @@ E(beginning\255of\255line \(C\255a\))108 616.8 Q F0(Mo)144 628.8 Q .3 664.8 S(rward\255char \(C\255f\)).25 E F0(Mo)144 676.8 Q .3 -.15(ve f) -.15 H(orw).15 E(ard a character)-.1 E(.)-.55 E F1 (backward\255char \(C\255b\))108 688.8 Q F0(Mo)144 700.8 Q .3 -.15(ve b) --.15 H(ack a character).15 E(.)-.55 E(GNU Readline 8.0)72 768 Q -(2020 March 24)128.74 E(7)198.45 E 0 Cg EP +-.15 H(ack a character).15 E(.)-.55 E(GNU Readline 8.1)72 768 Q +(2020 October 29)125.685 E(7)195.395 E 0 Cg EP %%Page: 8 8 %%BeginPageSetup BP @@ -1073,7 +1073,7 @@ ng of characters between the start of the current)-.1 F .12 /Times-Italic@0 SF(point)2.62 E F0 2.62(\). The)B .12 (search string must match at the be)2.62 F .12(ginning of a)-.15 F (history line.)144 700.8 Q(This is a non-incremental search.)5 E -(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(8)198.45 E 0 Cg EP +(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(8)195.395 E 0 Cg EP %%Page: 9 9 %%BeginPageSetup BP @@ -1178,8 +1178,8 @@ Q F0 2.5(,f)C(or e)-2.5 E(xample.)-.15 E F1(tab\255insert \(M-T)108 (ving point forw)-.15 F .321(ard as well.)-.1 F 1.182 (If point is at the end of the line, then this transposes the tw)144 724.8 R 3.683(oc)-.1 G 1.183(haracters before point.)-3.683 F(Ne)6.183 E --.05(ga)-.15 G(ti).05 E -.15(ve)-.25 G(GNU Readline 8.0)72 768 Q -(2020 March 24)128.74 E(9)198.45 E 0 Cg EP +-.05(ga)-.15 G(ti).05 E -.15(ve)-.25 G(GNU Readline 8.1)72 768 Q +(2020 October 29)125.685 E(9)195.395 E 0 Cg EP %%Page: 10 10 %%BeginPageSetup BP @@ -1272,8 +1272,8 @@ F 5.364(.T)-.65 G .364(he killed te)-5.364 F .364(xt is sa)-.15 F -.15 (ord follo)-.1 F 2.008(wing point to the kill b)-.25 F(uf)-.2 E(fer)-.25 E 7.007(.T)-.55 G 2.007(he w)-7.007 F 2.007 (ord boundaries are the same as)-.1 F F1 -.25(fo)4.507 G -.37(r-).25 G -(ward\255w)144 712.8 Q(ord)-.1 E F0(.)A(GNU Readline 8.0)72 768 Q -(2020 March 24)128.74 E(10)193.45 E 0 Cg EP +(ward\255w)144 712.8 Q(ord)-.1 E F0(.)A(GNU Readline 8.1)72 768 Q +(2020 October 29)125.685 E(10)190.395 E 0 Cg EP %%Page: 11 11 %%BeginPageSetup BP @@ -1380,7 +1380,8 @@ F1 -.25(Ke)87 626.4 S(yboard Macr).25 E(os)-.18 E(start\255kbd\255macr) E F0(Re-e)144 698.4 Q -.15(xe)-.15 G .999(cute the last k).15 F -.15(ey) -.1 G .999(board macro de\214ned, by making the characters in the macro\ appear as if).15 F(typed at the k)144 710.4 Q -.15(ey)-.1 G(board.).15 -E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(11)193.45 E 0 Cg EP +E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(11)190.395 E 0 Cg +EP %%Page: 12 12 %%BeginPageSetup BP @@ -1481,8 +1482,8 @@ F .283(alues to the readline output stream.)-.25 F .283(If a numeric ar) 5.283 F(gu-)-.18 E (ment is supplied, the output is formatted in such a w)144 700.8 Q (ay that it can be made part of an)-.1 E F2(inputr)2.5 E(c)-.37 E F0 -(\214le.)2.5 E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(12) -193.45 E 0 Cg EP +(\214le.)2.5 E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(12) +190.395 E 0 Cg EP %%Page: 13 13 %%BeginPageSetup BP @@ -1543,8 +1544,8 @@ E 2.5("C-M" accept-line)151.2 477.6 R 2.5("C-N" ne)151.2 489.6 R (":" to)151.2 657.6 R 2.5("~" self-insert)2.5 F 2.5("C-?" backw)151.2 669.6 R(ard-delete-char)-.1 E(Emacs Meta bindings)151.2 686.4 Q 2.5 ("M-C-G" abort)151.2 710.4 R 2.5("M-C-H" backw)151.2 722.4 R(ard-kill-w) --.1 E(ord)-.1 E(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(13) -193.45 E 0 Cg EP +-.1 E(ord)-.1 E(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(13) +190.395 E 0 Cg EP %%Page: 14 14 %%BeginPageSetup BP @@ -1585,8 +1586,8 @@ R(xpand)-.15 E 2.5("M-C-?" backw)151.2 576 R(ard-kill-w)-.1 E(ord)-.1 E 652.8 R 2.5("C-XC-X" e)151.2 664.8 R(xchange-point-and-mark)-.15 E 2.5 ("C-X\(" start-kbd-macro)151.2 676.8 R 2.5("C-X\)" end-kbd-macro)151.2 688.8 R 2.5("C-XE" call-last-kbd-macro)151.2 700.8 R 2.5("C-XC-?" backw) -151.2 712.8 R(ard-kill-line)-.1 E(GNU Readline 8.0)72 768 Q -(2020 March 24)128.74 E(14)193.45 E 0 Cg EP +151.2 712.8 R(ard-kill-line)-.1 E(GNU Readline 8.1)72 768 Q +(2020 October 29)125.685 E(14)190.395 E 0 Cg EP %%Page: 15 15 %%BeginPageSetup BP @@ -1625,7 +1626,8 @@ R 2.5("C-V" quoted-insert)151.2 228 R 2.5("C-W" unix-w)151.2 240 R ("." vi-redo)151.2 676.8 R 2.5("/" vi-search)151.2 688.8 R 2.5("0" be) 151.2 700.8 R(ginning-of-line)-.15 E("1" to "9")151.2 712.8 Q(vi-ar)5 E (g-digit)-.18 E 2.5(";" vi-char)151.2 724.8 R(-search)-.2 E -(GNU Readline 8.0)72 768 Q(2020 March 24)128.74 E(15)193.45 E 0 Cg EP +(GNU Readline 8.1)72 768 Q(2020 October 29)125.685 E(15)190.395 E 0 Cg +EP %%Page: 16 16 %%BeginPageSetup BP @@ -1663,8 +1665,8 @@ R 2.5("y" vi-yank-to)151.2 600 R 2.5("|" vi-column)151.2 612 R 2.5 (ox and Chet Rame)-.15 E(y)-.15 E F2(bash)108 676.8 Q F0(\(1\))A F1 (FILES)72 693.6 Q F2(~/.inputr)109.666 705.6 Q(c)-.37 E F0(Indi)144 717.6 Q(vidual)-.25 E/F3 10/Times-Bold@0 SF -.18(re)2.5 G(adline).18 E -F0(initialization \214le)2.5 E(GNU Readline 8.0)72 768 Q(2020 March 24) -128.74 E(16)193.45 E 0 Cg EP +F0(initialization \214le)2.5 E(GNU Readline 8.1)72 768 Q +(2020 October 29)125.685 E(16)190.395 E 0 Cg EP %%Page: 17 17 %%BeginPageSetup BP @@ -1695,8 +1697,8 @@ BP (ug reports concerning this manual page should be directed to)-.2 E F3 -.15(ch)2.5 G(et.r).15 E(ame)-.15 E(y@case)-.3 E(.edu)-.15 E F0(.).25 E F1 -.11(BU)72 252 S(GS).11 E F0(It')108 264 Q 2.5(st)-.55 G -(oo big and too slo)-2.5 E -.65(w.)-.25 G(GNU Readline 8.0)72 768 Q -(2020 March 24)128.74 E(17)193.45 E 0 Cg EP +(oo big and too slo)-2.5 E -.65(w.)-.25 G(GNU Readline 8.1)72 768 Q +(2020 October 29)125.685 E(17)190.395 E 0 Cg EP %%Trailer end %%EOF diff --git a/doc/rluser.texi b/doc/rluser.texi index 746e38c..26b0ff0 100644 --- a/doc/rluser.texi +++ b/doc/rluser.texi @@ -546,7 +546,7 @@ When set to @samp{On}, Readline will configure the terminal in a way that will enable it to insert each paste into the editing buffer as a single string of characters, instead of treating each character as if it had been read from the keyboard. This can prevent pasted characters -from being interpreted as editing commands. The default is @samp{off}. +from being interpreted as editing commands. The default is @samp{On}. @item enable-keypad @vindex enable-keypad diff --git a/doc/rluserman.dvi b/doc/rluserman.dvi Binary files differindex 3109d75..4c0b142 100644 --- a/doc/rluserman.dvi +++ b/doc/rluserman.dvi diff --git a/doc/rluserman.html b/doc/rluserman.html index 35cb1b5..ab522ac 100644 --- a/doc/rluserman.html +++ b/doc/rluserman.html @@ -1,6 +1,6 @@ <HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- Created on September, 9 2020 by texi2html 1.64 --> +<!-- Created on October, 30 2020 by texi2html 1.64 --> <!-- Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author) Karl Berry <karl@freefriends.org> @@ -721,7 +721,7 @@ When set to <SAMP>`On'</SAMP>, Readline will configure the terminal in a way that will enable it to insert each paste into the editing buffer as a single string of characters, instead of treating each character as if it had been read from the keyboard. This can prevent pasted characters -from being interpreted as editing commands. The default is <SAMP>`off'</SAMP>. +from being interpreted as editing commands. The default is <SAMP>`On'</SAMP>. <P> <DT><CODE>enable-keypad</CODE> @@ -3025,7 +3025,7 @@ to permit their use in free software. <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="rluserman.html#SEC_About"> ? </A>]</TD> </TR></TABLE> <H1>About this document</H1> -This document was generated by <I>Chet Ramey</I> on <I>September, 9 2020</I> +This document was generated by <I>Chet Ramey</I> on <I>October, 30 2020</I> using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html "><I>texi2html</I></A> <P></P> @@ -3187,7 +3187,7 @@ the following structure: <BR> <FONT SIZE="-1"> This document was generated -by <I>Chet Ramey</I> on <I>September, 9 2020</I> +by <I>Chet Ramey</I> on <I>October, 30 2020</I> using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html "><I>texi2html</I></A> diff --git a/doc/rluserman.info b/doc/rluserman.info index 1b86b0a..1604928 100644 --- a/doc/rluserman.info +++ b/doc/rluserman.info @@ -2,8 +2,8 @@ This is rluserman.info, produced by makeinfo version 6.7 from rluserman.texi. This manual describes the end user interface of the GNU Readline Library -(version 8.1, 17 July 2020), a library which aids in the consistency of -user interface across discrete programs which provide a command line +(version 8.1, 29 October 2020), a library which aids in the consistency +of user interface across discrete programs which provide a command line interface. Copyright (C) 1988-2020 Free Software Foundation, Inc. @@ -471,7 +471,7 @@ Variable Settings buffer as a single string of characters, instead of treating each character as if it had been read from the keyboard. This can prevent pasted characters from being interpreted as - editing commands. The default is 'off'. + editing commands. The default is 'On'. 'enable-keypad' When set to 'on', Readline will try to enable the application @@ -1998,30 +1998,30 @@ their use in free software. Tag Table: -Node: Top904 -Node: Command Line Editing1426 -Node: Introduction and Notation2080 -Node: Readline Interaction3705 -Node: Readline Bare Essentials4898 -Node: Readline Movement Commands6683 -Node: Readline Killing Commands7645 -Node: Readline Arguments9565 -Node: Searching10611 -Node: Readline Init File12765 -Node: Readline Init File Syntax13920 -Node: Conditional Init Constructs34180 -Node: Sample Init File38378 -Node: Bindable Readline Commands41504 -Node: Commands For Moving42560 -Node: Commands For History44320 -Node: Commands For Text49084 -Node: Commands For Killing52788 -Node: Numeric Arguments55503 -Node: Commands For Completion56644 -Node: Keyboard Macros58614 -Node: Miscellaneous Commands59303 -Node: Readline vi Mode63226 -Node: GNU Free Documentation License64140 +Node: Top907 +Node: Command Line Editing1429 +Node: Introduction and Notation2083 +Node: Readline Interaction3708 +Node: Readline Bare Essentials4901 +Node: Readline Movement Commands6686 +Node: Readline Killing Commands7648 +Node: Readline Arguments9568 +Node: Searching10614 +Node: Readline Init File12768 +Node: Readline Init File Syntax13923 +Node: Conditional Init Constructs34182 +Node: Sample Init File38380 +Node: Bindable Readline Commands41506 +Node: Commands For Moving42562 +Node: Commands For History44322 +Node: Commands For Text49086 +Node: Commands For Killing52790 +Node: Numeric Arguments55505 +Node: Commands For Completion56646 +Node: Keyboard Macros58616 +Node: Miscellaneous Commands59305 +Node: Readline vi Mode63228 +Node: GNU Free Documentation License64142 End Tag Table diff --git a/doc/rluserman.pdf b/doc/rluserman.pdf Binary files differindex 8501864..a7db1e9 100644 --- a/doc/rluserman.pdf +++ b/doc/rluserman.pdf diff --git a/doc/rluserman.ps b/doc/rluserman.ps index e2da0ba..9bae0d0 100644 --- a/doc/rluserman.ps +++ b/doc/rluserman.ps @@ -1,7 +1,7 @@ %!PS-Adobe-2.0 %%Creator: dvips(k) 5.999 Copyright 2019 Radical Eye Software %%Title: rluserman.dvi -%%CreationDate: Wed Sep 9 19:34:51 2020 +%%CreationDate: Fri Oct 30 14:07:47 2020 %%Pages: 35 %%PageOrder: Ascend %%BoundingBox: 0 0 612 792 @@ -12,7 +12,7 @@ %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips -D 600 -t letter -o rluserman.ps rluserman.dvi %DVIPSParameters: dpi=600 -%DVIPSSource: TeX output 2020.09.09:1534 +%DVIPSSource: TeX output 2020.10.30:1007 %%BeginProcSet: tex.pro 0 0 %! /TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S @@ -5185,18 +5185,18 @@ ifelse TeXDict begin 1 0 bop 150 1318 a Fp(GNU)65 b(Readline)g(Library)g(User) g(In)-5 b(terface)p 150 1418 3600 34 v 1873 1515 a Fo(Edition)30 b(8.1,)i(for)e Fn(Readline)e(Library)h Fo(V)-8 b(ersion)31 -b(8.1.)3367 1623 y(July)f(2020)150 4927 y Fm(Chet)45 +b(8.1.)3217 1623 y(Octob)s(er)f(2020)150 4927 y Fm(Chet)45 b(Ramey)-11 b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l (ersit)l(y)150 5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11 b(ree)45 b(Soft)l(w)l(are)h(F)-11 b(oundation)p 150 5141 3600 17 v eop end %%Page: 2 2 -TeXDict begin 2 1 bop 150 4413 a Fo(This)29 b(man)m(ual)g(describ)s(es) -g(the)h(end)e(user)h(in)m(terface)i(of)f(the)f(GNU)h(Readline)g -(Library)f(\(v)m(ersion)h(8.1,)h(17)150 4523 y(July)25 -b(2020\),)j(a)e(library)f(whic)m(h)f(aids)i(in)f(the)g(consistency)h -(of)f(user)g(in)m(terface)i(across)e(discrete)h(programs)150 -4633 y(whic)m(h)k(pro)m(vide)h(a)f(command)g(line)h(in)m(terface.)150 +TeXDict begin 2 1 bop 150 4413 a Fo(This)38 b(man)m(ual)h(describ)s(es) +f(the)h(end)f(user)g(in)m(terface)i(of)f(the)g(GNU)g(Readline)g +(Library)f(\(v)m(ersion)i(8.1,)150 4523 y(29)35 b(Octob)s(er)f(2020\),) +k(a)d(library)f(whic)m(h)g(aids)g(in)g(the)h(consistency)g(of)g(user)e +(in)m(terface)j(across)f(discrete)150 4633 y(programs)30 +b(whic)m(h)g(pro)m(vide)h(a)f(command)g(line)h(in)m(terface.)150 4767 y(Cop)m(yrigh)m(t)602 4764 y(c)577 4767 y Fl(\015)f Fo(1988{2020)35 b(F)-8 b(ree)31 b(Soft)m(w)m(are)h(F)-8 b(oundation,)31 b(Inc.)390 4902 y(P)m(ermission)21 b(is)f(gran)m(ted)h @@ -5742,7 +5742,7 @@ e(of)g(treating)h(eac)m(h)g(c)m(haracter)g(as)f(if)f(it)i(had)1110 5230 y(b)s(een)e(read)i(from)e(the)i(k)m(eyb)s(oard.)49 b(This)32 b(can)h(prev)m(en)m(t)h(pasted)f(c)m(haracters)1110 5340 y(from)d(b)s(eing)g(in)m(terpreted)h(as)f(editing)h(commands.)41 -b(The)29 b(default)i(is)f(`)p Fn(off)p Fo('.)p eop end +b(The)29 b(default)i(is)f(`)p Fn(On)p Fo('.)p eop end %%Page: 7 10 TeXDict begin 7 9 bop 150 -116 a Fo(Chapter)30 b(1:)41 b(Command)29 b(Line)i(Editing)2153 b(7)630 299 y Fn(enable-keypad)1110 diff --git a/doc/version.texi b/doc/version.texi index cb495ab..abb9cb6 100644 --- a/doc/version.texi +++ b/doc/version.texi @@ -4,7 +4,7 @@ Copyright (C) 1988-2020 Free Software Foundation, Inc. @set EDITION 8.1 @set VERSION 8.1 -@set UPDATED 17 July 2020 -@set UPDATED-MONTH July 2020 +@set UPDATED 29 October 2020 +@set UPDATED-MONTH October 2020 -@set LASTCHANGE Fri Jul 17 09:35:36 EDT 2020 +@set LASTCHANGE Thu Oct 29 16:49:01 EDT 2020 @@ -357,7 +357,7 @@ _rl_isearch_dispatch (_rl_search_cxt *cxt, int c) /* XXX - experimental code to allow users to bracketed-paste into the search string even when ESC is one of the isearch-terminators. Not perfect yet. */ - if (_rl_enable_bracketed_paste && c == ESC && strchr (cxt->search_terminators, c) && (n = _rl_nchars_available ()) > (2*BRACK_PASTE_SLEN-1)) + if (_rl_enable_bracketed_paste && c == ESC && strchr (cxt->search_terminators, c) && (n = _rl_nchars_available ()) > (BRACK_PASTE_SLEN-1)) { j = _rl_read_bracketed_paste_prefix (c); if (j == 1) @@ -418,9 +418,11 @@ add_character: { /* If we have a multibyte character, see if it's bound to something that affects the search. */ - if (cxt->mb[1]) +#if defined (HANDLE_MULTIBYTE) + if (MB_CUR_MAX > 1 && rl_byte_oriented == 0 && cxt->mb[1]) f = rl_function_of_keyseq (cxt->mb, cxt->keymap, (int *)NULL); else +#endif { f = cxt->keymap[c].function; if (f == rl_do_lowercase_version) @@ -680,7 +682,8 @@ opcode_dispatch: free (paste); break; } - rl_activate_mark (); + if (_rl_enable_active_region) + rl_activate_mark (); if (cxt->search_string_index + pastelen + 1 >= cxt->search_string_size) { cxt->search_string_size += pastelen + 2; @@ -805,7 +808,8 @@ opcode_dispatch: { cxt->prev_line_found = cxt->lines[cxt->history_pos]; rl_replace_line (cxt->lines[cxt->history_pos], 0); - rl_activate_mark (); + if (_rl_enable_active_region) + rl_activate_mark (); rl_point = cxt->sline_index; if (rl_mark_active_p () && cxt->search_string_index > 0) rl_mark = rl_point + cxt->search_string_index; @@ -729,7 +729,8 @@ rl_bracketed_paste_begin (int count, int key) buf = _rl_bracketed_text (&len); rl_mark = rl_point; retval = rl_insert_text (buf) == len ? 0 : 1; - rl_activate_mark (); + if (_rl_enable_active_region) + rl_activate_mark (); xfree (buf); return (retval); @@ -321,7 +321,8 @@ int _rl_show_mode_in_prompt = 0; /* Non-zero means to attempt to put the terminal in `bracketed paste mode', where it will prefix pasted text with an escape sequence and send another to mark the end of the paste. */ -int _rl_enable_bracketed_paste = 1; /* XXX - for now */ +int _rl_enable_bracketed_paste = BRACKETED_PASTE_DEFAULT; +int _rl_enable_active_region = BRACKETED_PASTE_DEFAULT; /* **************************************************************** */ /* */ diff --git a/rlprivate.h b/rlprivate.h index 050f506..23ab2d8 100644 --- a/rlprivate.h +++ b/rlprivate.h @@ -312,6 +312,10 @@ extern int _rl_isearch_cleanup PARAMS((_rl_search_cxt *, int)); extern int _rl_search_getchar PARAMS((_rl_search_cxt *)); /* kill.c */ +#ifndef BRACKETED_PASTE_DEFAULT +# define BRACKETED_PASTE_DEFAULT 1 /* XXX - for now */ +#endif + #define BRACK_PASTE_PREF "\033[200~" #define BRACK_PASTE_SUFF "\033[201~" @@ -532,6 +536,7 @@ extern int _rl_revert_all_at_newline; extern int _rl_echo_control_chars; extern int _rl_show_mode_in_prompt; extern int _rl_enable_bracketed_paste; +extern int _rl_enable_active_region; extern char *_rl_comment_begin; extern unsigned char _rl_parsing_conditionalized_out; extern Keymap _rl_keymap; @@ -192,7 +192,7 @@ noninc_dosearch (char *string, int dir, int flags) make_history_line_current (entry); - if (_rl_enable_bracketed_paste && ((flags & SF_PATTERN) == 0) && ind > 0 && ind < rl_end) + if (_rl_enable_active_region && ((flags & SF_PATTERN) == 0) && ind > 0 && ind < rl_end) { rl_point = ind; rl_mark = ind + strlen (string); diff --git a/shlib/Makefile.in b/shlib/Makefile.in index f2ec3e4..d138524 100644 --- a/shlib/Makefile.in +++ b/shlib/Makefile.in @@ -64,7 +64,7 @@ localedir = @localedir@ DESTDIR = CFLAGS = @CFLAGS@ -LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' +LOCAL_CFLAGS = @LOCAL_CFLAGS@ -DRL_LIBRARY_VERSION='"$(RL_LIBRARY_VERSION)"' @BRACKETED_PASTE@ CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ @LOCAL_LDFLAGS@ @CFLAGS@ @@ -456,7 +456,7 @@ _rl_init_terminal_io (const char *terminal_name) { const char *term; char *buffer; - int tty, tgetent_ret; + int tty, tgetent_ret, dumbterm; term = terminal_name ? terminal_name : sh_get_env_value ("TERM"); _rl_term_clrpag = _rl_term_cr = _rl_term_clreol = _rl_term_clrscroll = (char *)NULL; @@ -465,6 +465,8 @@ _rl_init_terminal_io (const char *terminal_name) if (term == 0) term = "dumb"; + dumbterm = STREQ (term, "dumb"); + #ifdef __MSDOS__ _rl_term_im = _rl_term_ei = _rl_term_ic = _rl_term_IC = (char *)NULL; _rl_term_up = _rl_term_dc = _rl_term_DC = _rl_visible_bell = (char *)NULL; @@ -544,6 +546,10 @@ _rl_init_terminal_io (const char *terminal_name) _rl_term_so = _rl_term_se = (char *)NULL; _rl_terminal_can_insert = term_has_meta = 0; + /* Assume generic unknown terminal can't handle the enable/disable + escape sequences */ + _rl_enable_bracketed_paste = 0; + /* Reasonable defaults for tgoto(). Readline currently only uses tgoto if _rl_term_IC or _rl_term_DC is defined, but just in case we change that later... */ @@ -595,6 +601,11 @@ _rl_init_terminal_io (const char *terminal_name) bind_termcap_arrow_keys (vi_insertion_keymap); #endif /* VI_MODE */ + /* There's no way to determine whether or not a given terminal supports + bracketed paste mode, so we assume a terminal named "dumb" does not. */ + if (dumbterm) + _rl_enable_bracketed_paste = 0; + return 0; } |