From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#10469: 24.0.92; find-name-dired quotes characters in output Date: Thu, 12 Jan 2012 04:09:46 -0500 Message-ID: References: <87y5tg7enk.fsf@web.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1326359456 26855 80.91.229.12 (12 Jan 2012 09:10:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jan 2012 09:10:56 +0000 (UTC) Cc: 10469@debbugs.gnu.org To: michael_heerdegen@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 12 10:10:51 2012 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 1RlGgH-0001YF-SV for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jan 2012 10:10:46 +0100 Original-Received: from localhost ([::1]:47473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlGgG-0001lF-Ra for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jan 2012 04:10:44 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlGg9-0001kn-KF for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2012 04:10:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlGg3-0007Nt-N0 for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2012 04:10:37 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlGg3-0007No-He for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2012 04:10:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RlGgX-0003Uz-Ix for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2012 04:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jan 2012 09:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10469-submit@debbugs.gnu.org id=B10469.132635942113396 (code B ref 10469); Thu, 12 Jan 2012 09:11:01 +0000 Original-Received: (at 10469) by debbugs.gnu.org; 12 Jan 2012 09:10:21 +0000 Original-Received: from localhost ([127.0.0.1]:54551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlGfs-0003U0-W1 for submit@debbugs.gnu.org; Thu, 12 Jan 2012 04:10:21 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:42619) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlGfq-0003Tt-Ms for 10469@debbugs.gnu.org; Thu, 12 Jan 2012 04:10:19 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RlGfK-0003Xi-L4; Thu, 12 Jan 2012 04:09:46 -0500 X-Spook: MILSATCOM Skipjack crypto anarchy Medco sniper pink noise X-Ran: =Zj'6*X.D\!5l (Michael Heerdegen's message of "Mon, 09 Jan 2012 22:24:31 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:55654 Archived-At: Michael Heerdegen wrote: > I create a directory "~/test a". > > Now I run > > (find-name-dired "~" "*test*") > > In the produced dired buffer, this directory is listed as "test\ a" (with > the space character quoted). > > If I try to visit or find it from dired, I get this error: > > dired-get-file-for-visit: File no longer exists; type `g' to update dired buffer [...] > This problem seems to be related to #10262. I don't think so (I don't think 10262 is a bug; see my comments there). I think there are a couple of issues here: 1) C-h v dired-listing-switches says "may contain even ... `b'", yet dired does not seem to handle the -b option of ls: mkdir /tmp/foo cd /tmp/foo mkdir "a b" emacs -Q --eval '(setq dired-listing-switches "-alb")' C-x d RET gives a dired buffer containing "a\ b", which cannot be visited by dired as you say above. So it seems dired does NOT understand -b, despite what the doc says. 2) You might think you can do better with find-dired by not using the default `find -ls', which is equivalent to "ls -dilsb", but by using: emacs -Q --eval '(setq find-ls-option (cons "-exec ls -dla --dired {} +" "-al"))' However, this produces a buffer that contains: /tmp/foo/: find . -exec ls -dla --dired \{\} + drwxr-xr-x 3 gm gm 60 Jan 12 00:44 . drwxr-xr-x 2 gm gm 40 Jan 12 00:44 a b //DIRED// 37 38 76 81 //DIRED-OPTIONS// --quoting-style=literal find finished at Thu Jan 12 01:05:36 Ie, it now recognizes the "a b" file correctly, but the buffer contains extra /DIRED/ guff at the end (because insert-directory normally deals with that, not dired-mode, and the former has not been called in this case). That would be easy to remove though. Also, if you haven't called dired yet in the session, dired-use-ls-dired will still have the value `unspecified' at this point (maybe this does not matter).