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 15:56:05 +0200 Message-ID: <86642i62ve.fsf@lola.quinscape.zz> References: <86r6l67kqf.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 1189436511 15117 80.91.229.12 (10 Sep 2007 15:01:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 15:01:51 +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:01:38 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 1IUrEp-0003ht-O7 for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 23:56:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUjkT-0007zD-8v for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 09:56:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUjkJ-0007vy-Vx for emacs-devel@gnu.org; Mon, 10 Sep 2007 09:56:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUjkI-0007vD-DE for emacs-devel@gnu.org; Mon, 10 Sep 2007 09:56:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUjkI-0007v6-6O for emacs-devel@gnu.org; Mon, 10 Sep 2007 09:56:10 -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 1IUjkH-0000ls-Ka for emacs-devel@gnu.org; Mon, 10 Sep 2007 09:56:09 -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 PAA31486 for ; Mon, 10 Sep 2007 15:55:59 +0200 X-Delivered-To: Original-Received: (qmail 7220 invoked from network); 10 Sep 2007 13:56:05 -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 13:56:05 -0000 Original-Received: by www.quinscape.de (Postfix, from userid 1001) id 7215C8F8EE; Mon, 10 Sep 2007 15:56:05 +0200 (CEST) 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:78447 Archived-At: Andreas Schwab writes: > David Kastrup writes: > >> The way this would work would be when TAB is pressed to send the >> partial line up to the cursor as input to the shell, followed by TAB, >> then capture the output from bash and interpret it (either inserting >> completed output, or offering a completion menu). > > Command line editing is disabled in the inferior shell. If you want to > enable it you'll have to make sure all literal control characters are > preceded by the quote character before sending the line to the > shell. Should be doable. Command line editing is necessary for completion? > You'll also have to enable echoing to be able to capture anything. Hm. Completion is not really echoing. Worth an experiment, but probably one could expect this to work on more shells if one did not rely on a nice combination of non-echo/complete. -- David Kastrup