From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#9160: 24.0.50; Emacs freezes in *shell* buffer. Date: Tue, 06 Sep 2011 15:19:44 +0900 Message-ID: References: <87wrf7dgqt.fsf@m17n.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315290027 15209 80.91.229.12 (6 Sep 2011 06:20:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2011 06:20:27 +0000 (UTC) Cc: 9160@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 06 08:20:22 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R0p1B-0006vA-TY for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2011 08:20:22 +0200 Original-Received: from localhost ([::1]:37565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0p1B-0001ZY-5L for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2011 02:20:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0p18-0001ZT-Lk for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 02:20:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0p17-0008Bm-4J for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 02:20:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0p16-0008Bi-VH for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 02:20:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R0p4j-0001eq-Rn; Tue, 06 Sep 2011 02:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Sep 2011 06:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9160 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9160-submit@debbugs.gnu.org id=B9160.13152902196345 (code B ref 9160); Tue, 06 Sep 2011 06:24:01 +0000 Original-Received: (at 9160) by debbugs.gnu.org; 6 Sep 2011 06:23:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0p4N-0001eH-2a for submit@debbugs.gnu.org; Tue, 06 Sep 2011 02:23:39 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0p4J-0001e3-Fh for 9160@debbugs.gnu.org; Tue, 06 Sep 2011 02:23:37 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id p866JkRQ015872; Tue, 6 Sep 2011 15:19:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id p866JkgM005586; Tue, 6 Sep 2011 15:19:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id p866JjeB017746; Tue, 6 Sep 2011 15:19:45 +0900 (JST) env-from (handa@m17n.org) In-Reply-To: (message from Stefan Monnier on Sun, 28 Aug 2011 01:16:37 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 06 Sep 2011 02:24:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50626 Archived-At: In article , Stefan Monnier writes: > > Thank you I confirmed that the above test case now works. > > But, found another bug. If I use `rm' command instead of > > `ls': > > % rm 0\ TAB > > the completion doesn't work and I just see a message "No > > match". > If there's not space after the backslash, then that's a bug that's > already in Emacs-23, and I don't know yet how to fix it. > When there is a space after the backslash, we indeed have a bug and > I think I've fixed it with the patch below. I confirmed that that above test case is fixed now. But, I found several other bugs related completions. All the following testcases are with the latest trunk Emacs with -Q argument, and they don't happen with Emacs 23.3. (1) SPC not escaped in *Completions* buffer % mkdir tmp % cd tmp % touch '0 a' '0-a' % rm 0 Now the the *Completions* buffer is: <...> Possible completions are: 0 a 0-a Note that SPC is not escapsed in '0 a'. So, when I click it, *shell* buffer becomes this: % rm 0 a This happens with 'ls' command too. (2) The second arg to rm command is not completed. % mkdir tmp % cd tmp % touch abc def % rm a % rm abc d Now just "No match" is shown instead of "d" completed to "def". This DOES NOT happen with 'ls' command. (3) Error in post-command-hook for *.tar.gz file. % mkdir tmp % cd tmp % echo abc > abc % echo def > def % tar cfz temp.tar.gz abc def % tar tfz temp Now the command line is correctly completed to: % tar tfz temp.tar.gz But, this error is signaled: Error in post-command-hook (completion-in-region--postch): (wrong-type-argument listp [tar-header # abc 436 8308 8308 4 (20069 47563) 4380 nil ustar handa handa 0 0 nil]) --- Kenichi Handa handa@m17n.org