From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9053 invoked by alias); 29 Jan 2004 23:33:14 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9016 invoked from network); 29 Jan 2004 23:33:13 -0000 Received: from unknown (HELO localhost.redhat.com) (66.187.230.200) by sources.redhat.com with SMTP; 29 Jan 2004 23:33:13 -0000 Received: by localhost.redhat.com (Postfix, from userid 469) id 4FB301A440D; Thu, 29 Jan 2004 18:30:36 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16409.38812.239100.775853@localhost.redhat.com> Date: Thu, 29 Jan 2004 23:33:00 -0000 To: Daniel Jacobowitz Cc: chet@po.cwru.edu, eliz@elta.co.il, bug-readline@gnu.org, gdb@sources.redhat.com Subject: Re: Difficulty with the readline completion interface in GDB In-Reply-To: <20040128201743.GA16409@nevyn.them.org> References: <20040118224929.GA8226@nevyn.them.org> <040128200429.AA22556.SM@caleb.ins.cwru.edu> <20040128201743.GA16409@nevyn.them.org> X-SW-Source: 2004-01/txt/msg00335.txt.bz2 Daniel Jacobowitz writes: > On Wed, Jan 28, 2004 at 03:04:29PM -0500, Chet Ramey wrote: > > > > There's a lot of possible solutions. There could be a hook called before > > > > rl_complete generates the matches list, which could fudge the complete > > > > characters - most direct solution, not very elegant. A function could be > > > > called to get the list of complete characters, which would then be sensitive > > > > to rl_point - not sure what other issues this could cause. The filename > > > > completion code could search backwards according to the list of filename > > > > wordbreak characters; this would solve the specific problem but not the > > > > more general one. Probably there are others. > > > > > > I think the first solution is the easiest one and will do the job. > > > > I added the hook: char *(*rl_completion_word_break_hook)(void) > > > > The completion code sets the word break characters from this function's > > return value, defaulting to rl_completer_word_break_characters if it is > > unset or returns NULL. > > > > This will be in bash-3.0/readline-5.0. > > Great, thank you! Would you mind posting the patch for this feature, > so that I can merge it into the version of readline we are currently > using? Can this be made part of the official set of readline-4.3 patches? It would be easier to keep track of. thanks elena > > -- > Daniel Jacobowitz > MontaVista Software Debian GNU/Linux Developer