From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Proposal for shell completion in M-x shell RET Date: Mon, 10 Sep 2007 16:10:49 +0200 Message-ID: <86ir6i4nme.fsf@lola.quinscape.zz> References: <86r6l67kqf.fsf@lola.quinscape.zz> <86642i62ve.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189437724 19791 80.91.229.12 (10 Sep 2007 15:22:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 15:22:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 01:21:51 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IUrSw-0004yw-53 for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2007 00:10:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUjyZ-0006sW-IQ for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 10:10:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUjyW-0006qh-Dd for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:10:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUjyV-0006pz-K0 for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:10:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUjyV-0006pv-Hk for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:10:51 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUjyU-00041R-U1 for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:10:51 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id QAA32168 for ; Mon, 10 Sep 2007 16:10:43 +0200 X-Delivered-To: Original-Received: (qmail 8049 invoked from network); 10 Sep 2007 14:10:49 -0000 Original-Received: from unknown (HELO www.quinscape.de) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 10 Sep 2007 14:10:49 -0000 Original-Received: by www.quinscape.de (Postfix, from userid 1001) id 59BE98F8EE; Mon, 10 Sep 2007 16:10:49 +0200 (CEST) In-Reply-To: (Andreas Schwab's message of "Mon\, 10 Sep 2007 16\:03\:22 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78452 Archived-At: Andreas Schwab writes: > David Kastrup writes: > >> Should be doable. Command line editing is necessary for completion? > > TAB completion is part of line editing. > >>> You'll also have to enable echoing to be able to capture anything. >> >> Hm. Completion is not really echoing. > > If the terminal is on -echo state then readline does not echo anything > besides the initial prompt. Checked it. If there is no unique completion, the completion list appears, but if a unique completion is performed, no echoing happens. At least with the version of bash I am using. So you are right: one would have to turn on echoing on the tty at least while one is fishing for completions. -- David Kastrup