aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-05-24 20:25:09 -0600
committerTom Tromey <tom@tromey.com>2020-05-24 20:27:48 -0600
commit0a4f5f8cae7ced715aca791bf4b212f43165119c (patch)
tree93b70ac665a17a33c0d732e7746f62b3e6f1c9b3 /gdb/cli
parentddb9ebd500c5accf0128b703a8154ef710bf604c (diff)
downloadgdb-0a4f5f8cae7ced715aca791bf4b212f43165119c.zip
gdb-0a4f5f8cae7ced715aca791bf4b212f43165119c.tar.gz
gdb-0a4f5f8cae7ced715aca791bf4b212f43165119c.tar.bz2
Revert "Add completion styling"
This reverts commit eca1f90cf47a2edc1a1cd22e12c6c0f3b900654e. Several changes were requested, and it seemed simplest to revert it. gdb/ChangeLog 2020-05-23 Tom Tromey <tom@tromey.com> Revert commit eca1f90c: * NEWS: Remove entry for completion styling. * completer.c (_rl_completion_prefix_display_length): Move declaration later. (gdb_fnprint): Revert. (gdb_display_match_list_1): Likewise. * cli/cli-style.c (completion_prefix_style) (completion_difference_style, completion_suffix_style): Remove. (_initialize_cli_style): Revert. * cli/cli-style.h (completion_prefix_style) (completion_difference_style, completion_suffix_style): Don't declare. gdb/doc/ChangeLog 2020-05-23 Tom Tromey <tom@tromey.com> * gdb.texinfo (Output Styling): Don't mention completion styling. (Editing): Don't mention readline completion styling. gdb/testsuite/ChangeLog 2020-05-23 Tom Tromey <tom@tromey.com> * gdb.base/style.exp: Remove completion styling test. * lib/gdb-utils.exp (style): Remove completion styles.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-style.c42
-rw-r--r--gdb/cli/cli-style.h9
2 files changed, 0 insertions, 51 deletions
diff --git a/gdb/cli/cli-style.c b/gdb/cli/cli-style.c
index b16b800..a0c3cc5 100644
--- a/gdb/cli/cli-style.c
+++ b/gdb/cli/cli-style.c
@@ -98,21 +98,6 @@ cli_style_option metadata_style ("metadata", ui_file_style::DIM);
/* See cli-style.h. */
-cli_style_option completion_prefix_style ("completion-prefix",
- ui_file_style::DIM);
-
-/* See cli-style.h. */
-
-cli_style_option completion_difference_style ("completion-difference",
- ui_file_style::MAGENTA);
-
-/* See cli-style.h. */
-
-cli_style_option completion_suffix_style ("completion-suffix",
- ui_file_style::NONE);
-
-/* See cli-style.h. */
-
cli_style_option::cli_style_option (const char *name,
ui_file_style::basic_color fg)
: changed (name),
@@ -381,33 +366,6 @@ your data, for example \"<unavailable>\""),
&style_set_list, &style_show_list,
false);
- completion_prefix_style.add_setshow_commands (no_class, _("\
-Completion prefix display styling.\n\
-Configure completion prefix colors and display intensity\n\
-The \"completion-prefix\" style is used when GDB displays the shared\n\
-prefix common to the possible completions."),
- &style_set_list,
- &style_show_list,
- false);
-
- completion_difference_style.add_setshow_commands (no_class, _("\
-Completion difference display styling.\n\
-Configure completion difference colors and display intensity\n\
-The \"completion-difference\" style is used when GDB displays the\n\
-character that differs between the possible completions."),
- &style_set_list,
- &style_show_list,
- false);
-
- completion_suffix_style.add_setshow_commands (no_class, _("\
-Completion suffix display styling.\n\
-Configure completion suffix colors and display intensity\n\
-The \"completion-suffix\" style is used when GDB displays the suffix\n\
-of the possible completions."),
- &style_set_list,
- &style_show_list,
- false);
-
tui_border_style.add_setshow_commands (no_class, _("\
TUI border display styling.\n\
Configure TUI border colors\n\
diff --git a/gdb/cli/cli-style.h b/gdb/cli/cli-style.h
index c2e0df1..6422e52 100644
--- a/gdb/cli/cli-style.h
+++ b/gdb/cli/cli-style.h
@@ -124,15 +124,6 @@ extern cli_style_option tui_border_style;
/* The border style of a TUI window that does have the focus. */
extern cli_style_option tui_active_border_style;
-/* The style for the common prefix of completions. */
-extern cli_style_option completion_prefix_style;
-
-/* The style for the difference character of completions. */
-extern cli_style_option completion_difference_style;
-
-/* The style for the suffix of completions. */
-extern cli_style_option completion_suffix_style;
-
/* True if source styling is enabled. */
extern bool source_styling;