From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Proposal for shell completion in M-x shell RET Date: Mon, 10 Sep 2007 10:29:25 -0400 Message-ID: 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 1189436934 16646 80.91.229.12 (10 Sep 2007 15:08:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 15:08:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 01:08:41 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 1IUrl1-0007BR-Hj for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2007 00:29:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUkGf-0005UA-2Z for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 10:29:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUkGb-0005S9-MI for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:29:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUkGZ-0005Rj-KO for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:29:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUkGZ-0005Rg-H4 for emacs-devel@gnu.org; Mon, 10 Sep 2007 10:29:31 -0400 Original-Received: from tomts25.bellnexxia.net ([209.226.175.188] helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUkGV-0000GM-3B; Mon, 10 Sep 2007 10:29:27 -0400 Original-Received: from pastel.home ([70.55.141.227]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070910142926.EFYL19497.tomts25-srv.bellnexxia.net@pastel.home>; Mon, 10 Sep 2007 10:29:26 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D65FA800F; Mon, 10 Sep 2007 10:29:25 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Mon\, 10 Sep 2007 10\:19\:24 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) 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:78448 Archived-At: >> 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, > It would most likely have to be another key, because shell.el cannot know if > the command is sent to bash or to some other application, so it could only > be the user's choice to either get local completion or to send "prefix string > plus TAB" to the application. BTW, maybe we can do it the way `gdb' does it: instead of sending TAB, we send a "list_all_completions" command, presuming that bash offers such a function. Stefan