From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: "Pierre Muller" <muller@ics.u-strasbg.fr>
Subject: Re: [RFA] use filename_completer for add_setshow_optional_filename_cmd
Date: Tue, 01 Jul 2008 22:03:00 -0000 [thread overview]
Message-ID: <200807012302.38644.pedro@codesourcery.com> (raw)
In-Reply-To: <000001c8dbc2$b1d7afe0$15870fa0$@u-strasbg.fr>
(following the spirit of speaking up if you spent the time
looking at the patch)
A Tuesday 01 July 2008 22:37:42, Pierre Muller wrote:
> I discovered that
> set debug-file-directory does not use filename_completer.
>
> This is because add_setshow_optional_filename_cmd
> does not set the set completer to filename completer,
> contrary to add_setshow_filename_cmd.
>
> Is there any reason for this?
> Or is it just a bug?
IMHO, it's just a feature miss.
> The following small patch fixes this
> by setting the set part completer to filename_completer
> for add_setshow_optional_filename_cmd
> exactly as is done in add_setshow_filename_cmd.
>
> There are currently only three adffected commands:
>
> "set debug-file-directory"
> "set args"
> "set solib-search-path"
>
> Only the second one might be questionable,
> but I also find that it is reasonable to have filename
> completion for "set args" as this is now done on
> most shells.
>
IMHO, it does make more sense to have a filename completer
in "set args," than a default symbol completer. You're normally
not very interested in passing symbol names as arguments to
your program.
> Is this OK to commit?
FWIW, looks good to me.
--
Pedro Alves
next prev parent reply other threads:[~2008-07-01 22:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 21:38 Pierre Muller
2008-07-01 22:03 ` Pedro Alves [this message]
2008-07-04 6:17 ` Joel Brobecker
2008-07-04 14:56 ` Pierre Muller
2008-07-04 18:01 ` Eli Zaretskii
2008-07-04 22:56 ` Pierre Muller
2008-07-04 10:45 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200807012302.38644.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=muller@ics.u-strasbg.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox