From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: richard@rswheeldon.com Newsgroups: gmane.emacs.bugs Subject: Shell-mode: File completion breaks editing previous commands Date: Fri, 4 Apr 2008 12:39:53 +0100 Message-ID: <18422.5001.19000.358870@lusitania.rswheeldon.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 1207371794 31704 80.91.229.12 (5 Apr 2008 05:03:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2008 05:03:14 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 05 07:03:45 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ji0Z6-0007WJ-OL for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Apr 2008 07:03:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ji0YU-0000uf-73 for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Apr 2008 01:03:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhkH0-0006G7-No for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 07:39:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhkH0-0006Eh-4C for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 07:39:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhkGz-0006EU-OK for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 07:39:57 -0400 Original-Received: from mail-out1.abel.net.uk ([195.72.113.191] helo=islay.abel.net.uk) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JhkGz-0003MA-Dc for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2008 07:39:57 -0400 Original-Received: from lusitania.rswheeldon.com.rswheldon.abelalways.co.uk (unknown [85.119.116.132]) by islay.abel.net.uk (Postfix) with ESMTP id 08E1615403A; Fri, 4 Apr 2008 12:39:51 +0100 (BST) X-Mailer: VM 7.01 under Emacs 21.4.2 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-Mailman-Approved-At: Sat, 05 Apr 2008 01:02:15 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17803 Archived-At: 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. For example, the following sequence: 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 % This behaviour worked under Emacs 21. Richard In GNU Emacs 22.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-03-31 on belgrano Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--with-x' '--without-sound'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t delete-selection-mode: t pc-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC SPC SPC SPC SPC SPC SPC x s h e l l t o u c h SPC f o o b a SPC b a r e c h o SPC f o b a x Recent messages: Completed Completing file name... Completed Making completion list... [2 times] Loading emacsbug...done Mark set [2 times] Completing file name... Completed Completing file name... Completed