From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13234 invoked by alias); 28 Jan 2004 20:09: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 13198 invoked from network); 28 Jan 2004 20:09:12 -0000 Received: from unknown (HELO mirapoint1.tis.cwru.edu) (129.22.104.46) by sources.redhat.com with SMTP; 28 Jan 2004 20:09:12 -0000 Received: from caleb.ins.cwru.edu (caleb.INS.CWRU.Edu [129.22.8.211]) by mirapoint1.tis.cwru.edu (MOS 3.4.3-CR) with SMTP id AQH18760; Wed, 28 Jan 2004 15:08:34 -0500 (EST) Date: Wed, 28 Jan 2004 20:09:00 -0000 From: Chet Ramey To: eliz@elta.co.il Subject: Re: Difficulty with the readline completion interface in GDB Cc: drow@mvista.com, bug-readline@gnu.org, gdb@sources.redhat.com, chet@po.cwru.edu Reply-To: chet@po.CWRU.Edu References: <20040118224929.GA8226@nevyn.them.org> In-Reply-To: Message from eliz@elta.co.il of Mon, 19 Jan 2004 08:15:24 +0200 (id ) Message-ID: <040128200429.AA22556.SM@caleb.ins.cwru.edu> Read-Receipt-To: chet@po.CWRU.Edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-01/txt/msg00328.txt.bz2 > > 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. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ( ``Discere est Dolere'' -- chet ) Live...Laugh...Love Chet Ramey, ITS, CWRU chet@po.cwru.edu http://tiswww.tis.cwru.edu/~chet/