Give a name to the TUI SingleKey keymap
authorTom Tromey <tom@tromey.com>
Tue, 10 Sep 2019 23:25:35 +0000 (17:25 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 18 Sep 2019 21:03:29 +0000 (15:03 -0600)
commit11061048d1fed4465b0e62eb3c14dabf0beab59b
treefda69cbe391d420c44ee650f6b2267d77efd71e4
parent7a27b85f6d9b5eea9bd1493f903158fbea4b2231
Give a name to the TUI SingleKey keymap

Readline 8.0 has a feature that lets an application name a keymap.
This in turn makes it simpler for users to bind keys in keymaps in
their .inputrc.

This patch gives a name to the TUI SingleKey keymap, so that
additional bindings can be made there.  For example:

    $if gdb
    set keymap SingleKey
    "X": "echo hello\\n\n"
    $endif

The call to rl_initialize, in tui_initialize_readline, had to be
removed so that .inputrc was not read too early.  Note that Readline
explicitly documents that this call is not needed.

gdb/ChangeLog
2019-09-18  Tom Tromey  <tom@tromey.com>

* NEWS: Add entry.
* tui/tui.c (tui_initialize_readline): Set name of keymap.  Do not
call rl_initialize.
(tui_enable): Do not call rl_initialize.

gdb/doc/ChangeLog
2019-09-18  Tom Tromey  <tom@tromey.com>

* gdb.texinfo (Editing): Document readline application name.
(TUI Single Key Mode): Document TUI SingleKey keymap name.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/tui/tui.c
This page took 0.027457 seconds and 4 git commands to generate.