From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.bugs Subject: Re: *shell* TAB *Completions* fooled by $PWD/ Date: 18 Jul 2002 03:26:28 +0900 Organization: Global Online Japan Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <87wuru2otn.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <87vg7rutpk.fsf@jidanni.org> <200207081820.g68IKeP12935@aztec.santafe.edu> <87bs9hkatg.fsf@jidanni.org> <3D2C6579.3020005@ihs.com> <200207111201.g6BC1Nx16935@aztec.santafe.edu> <87znwyxun1.fsf@tc-1-100.kawasaki.gol.ne.jp> <87sn2qxtbu.fsf@tc-1-100.kawasaki.gol.ne.jp> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-14 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1026930446 19788 127.0.0.1 (17 Jul 2002 18:27:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 17 Jul 2002 18:27:26 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17UtWF-00058o-00 for ; Wed, 17 Jul 2002 20:27:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17UtWH-0000tz-00; Wed, 17 Jul 2002 14:27:25 -0400 Original-Received: from chx400.switch.ch ([130.59.10.2]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17UtVV-0000tV-00 for ; Wed, 17 Jul 2002 14:26:37 -0400 Original-Received: from nnrp.gol.com ([203.216.7.70]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 17UtVT-0003cn-00 for gnu-emacs-bug@moderators.isc.org; Wed, 17 Jul 2002 20:26:36 +0200 Original-Received: from news by nnrp.gol.com with local (Exim 3.35 #1 (Debian)) id 17UtVO-0004zB-00 for ; Thu, 18 Jul 2002 03:26:30 +0900 Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 20 Original-NNTP-Posting-Host: tc-2-230.kawasaki.gol.ne.jp Original-X-Trace: nnrp.gol.com 1026930390 19168 203.216.25.230 (17 Jul 2002 18:26:30 GMT) Original-X-Complaints-To: abuse@gol.com Original-NNTP-Posting-Date: Wed, 17 Jul 2002 18:26:30 +0000 (UTC) System-Type: i686-pc-linux-gnu Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2742 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2742 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > > This is a hard problem to solve, > > Isn't it enough to just send the current contents of the line, > followed by TAB, to the shell and to parse the output? There are many annoying little wrinkles involved in doing this correctly, so that it's definitely not a `just' thing. Annoying little wrinkle (1): you don't actually know who's listening when you send input to the subprocess -- it may be the shell you started, it may be some process running under the shell... [The recent conversation about python-mode is a somewhat different case, because there you can make more assumptions about what the subprocess is doing.] -Miles -- Saa, shall we dance? (from a dance-class advertisement)