From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.devel Subject: Re: Shell-mode: File completion breaks editing previous commands Date: Wed, 9 Apr 2008 07:29:18 -0400 Message-ID: <18428.43150.358991.358580@rgrjr.rgrjr.dyndns.org> References: <87tzig9es5.fsf@stupidchicken.com> <18424.40053.181304.491320@lusitania.rswheeldon.com> <878wzq2qtv.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207740576 3877 80.91.229.12 (9 Apr 2008 11:29:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Apr 2008 11:29:36 +0000 (UTC) Cc: richard@rswheeldon.com, 114@emacsbugs.donarmstrong.com, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 09 13:30:07 2008 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 1JjYVC-0002r3-AS for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2008 13:30:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JjYUZ-0007z1-5b for ged-emacs-devel@m.gmane.org; Wed, 09 Apr 2008 07:29:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JjYUT-0007yp-TE for emacs-devel@gnu.org; Wed, 09 Apr 2008 07:29:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JjYUS-0007yQ-NV for emacs-devel@gnu.org; Wed, 09 Apr 2008 07:29:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JjYUS-0007yL-Gj for emacs-devel@gnu.org; Wed, 09 Apr 2008 07:29:20 -0400 Original-Received: from c-98-216-94-251.hsd1.ma.comcast.net ([98.216.94.251] helo=rgrjr.dyndns.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JjYUR-00057F-TE for emacs-devel@gnu.org; Wed, 09 Apr 2008 07:29:20 -0400 Original-Received: (qmail 30545 invoked by uid 89); 9 Apr 2008 11:29:18 -0000 Original-Received: from unknown (HELO rgr.rgrjr.dyndns.org) (192.168.57.1) by home with SMTP; 9 Apr 2008 11:29:18 -0000 Original-Received: by rgr.rgrjr.dyndns.org (Postfix, from userid 500) id 8C3214B5E9; Wed, 9 Apr 2008 07:29:18 -0400 (EDT) In-Reply-To: <878wzq2qtv.fsf@stupidchicken.com> X-Mailer: VM 7.19 under Emacs 23.0.60.2 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:94779 Archived-At: From: Chong Yidong Date: Mon, 07 Apr 2008 01:10:04 -0400 richard@rswheeldon.com writes: >>> Emacs shell mode allows editing of previous commands. These can then >>> be executed by pressing return. Shell mode also allows tab completion >>> to expand filenames. These do not work together. If we try to modify >>> a previously executed command (to re-execute it with different params) >>> and attempt to use filename completion, the beginning of the command >>> is lost. >>> >>> touch foo bar >>> echo bar >>> Edit the echo command to "touch foo bar" and press return. >>> >>> produces the following output: >>> >>> % touch foo bar >>> % echo bar foo >>> foo >>> % foo >>> bash: ./foo: Permission denied >>> % >> >> I can't reproduce this on either Emacs 22 or Emacs 23. Please provide a >> more precise recipe, include all keystrokes beginning from emacs -Q. > > Recent input: > x s h e l l c d SPC / t m p > t o u c h SPC f o o e t o u c > h SPC b a r e l s SPC f o > b > a x r e p r > o r > > Sorry, I can't see how I can make this much simpler. I still can't reproduce this problem. Does anyone on emacs-devel see the bug? I have seen this intermittently for a long time now, but still haven't been able to reproduce it reliably. -- Bob Rogers http://rgrjr.dyndns.org/