From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: Fernando Nasser Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] File-name completion improvements Date: Thu, 15 Feb 2001 03:13:00 -0000 Message-id: References: <3A8ACFD3.7700B474@cygnus.com> X-SW-Source: 2001-02/msg00247.html On Wed, 14 Feb 2001, Fernando Nasser wrote: > Instead of changing this: > rl_completer_word_break_characters = > gdb_completer_file_name_break_characters; > into this: > char *fbc = gdb_completer_file_name_break_characters; > rl_completer_word_break_characters = fbc; > so you can use the shorthand here: > p > tmp_command && strchr (fbc, p[-1]) == NULL; > just use the full name: > p > tmp_command && strchr (gdb_completer_file_name_break_characters, \ > p[-1]) == NULL; > > I know, it is an awful long variable name. The _real_ reason for that funky shorthand was not that it's long to type ("M-/" in Emacs makes that problem go away ;-). The real reason was that, due to reindentation, the code either looks ugly or gets past column 80. If people don't mind that, there's no point in introducing a new variable. > After committing, please post the final version so it makes into the > list archives. Will do.