From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29243 invoked by alias); 3 Jun 2013 19:25:34 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 29205 invoked by uid 48); 3 Jun 2013 19:25:34 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug cli/15548] Limit completions to a pre-defined limit when completions list is very large Date: Mon, 03 Jun 2013 19:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q2/txt/msg00347.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15548 --- Comment #2 from dje at google dot com --- One problem I see with implementing this (and hopefully I'm either wrong or will be easy to fix) is that readline doesn't work the way we want it to for this purpose. readline first finds all completions and *then* asks if the user wants to see them all. Instead, we need readline to, say, first fetch the first N+1 items, and then if it returns N+1 then ask the user if s/he wants to see them all (or the next N, or whatever). -- You are receiving this mail because: You are on the CC list for the bug.