From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 16:23:39 2012 Received: (at submit) by debbugs.gnu.org; 9 Jan 2012 21:23:39 +0000 Received: from localhost ([127.0.0.1]:51382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkMgt-0001pu-9F for submit@debbugs.gnu.org; Mon, 09 Jan 2012 16:23:39 -0500 Received: from eggs.gnu.org ([140.186.70.92]:54636) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkMgq-0001pg-H7 for submit@debbugs.gnu.org; Mon, 09 Jan 2012 16:23:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkMgT-0005fA-Vd for submit@debbugs.gnu.org; Mon, 09 Jan 2012 16:23:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,RCVD_IN_XBL,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:40430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkMgT-0005f6-Ph for submit@debbugs.gnu.org; Mon, 09 Jan 2012 16:23:13 -0500 Received: from eggs.gnu.org ([140.186.70.92]:56402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkMgT-0008EY-1g for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 16:23:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkMgR-0005er-Ts for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 16:23:13 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:48810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkMgR-0005en-P2 for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2012 16:23:11 -0500 Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate02.web.de (Postfix) with ESMTP id 015AE1BF54EA1 for ; Mon, 9 Jan 2012 22:23:10 +0100 (CET) Received: from snow ([89.204.153.169]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0MZDga-1S0n6P2Sj6-00Ky1Y; Mon, 09 Jan 2012 22:23:09 +0100 From: Michael Heerdegen To: bug-gnu-emacs@gnu.org Subject: 24.0.92; find-name-dired quotes characters in output Date: Mon, 09 Jan 2012 22:24:31 +0100 Message-ID: <87y5tg7enk.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:tDg5/QDAuJ42N/3XkFjKrmbxaUknrJG/svd4xP8O4g8 2K/o4sqt1SWQ+8IMLpUHXTIHilt04o/6XTRwkCkp26hjicENs7 YDiLAnWiVihWOeO9ySFHhyukMx3/qcbYtVZaf1BmWWKuOPuf00 Hu9ZsEipt0ugimw/7Ocz7vDoaE4DnEFGlSbfNEX7EDZzq3xcbZ 7gL0qAnykM2YUM+RrTxTHWfWmsqDxxaAJKsWgZJ18I= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: michael_heerdegen@web.de List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) Hello, this is on Debian Linux. 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. - Michael. In GNU Emacs 24.0.92.1 (i486-pc-linux-gnu, GTK+ Version 3.2.3) of 2012-01-05 on zelenka, modified by Debian (emacs-snapshot package, version 1:20120105-1) Windowing system distributor `The X.Org Foundation', version 11.0.11102902 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.92/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.92/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib/i386-linux-gnu/' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2'' Important settings: value of $LC_ALL: de_DE.utf8 value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: C value of $LANG: de_DE.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 23:20:33 2012 Received: (at 10469) by debbugs.gnu.org; 10 Jan 2012 04:20:33 +0000 Received: from localhost ([127.0.0.1]:51706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkTCK-0007Q2-Kx for submit@debbugs.gnu.org; Mon, 09 Jan 2012 23:20:33 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]:42569) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkTCI-0007Pv-BN for 10469@debbugs.gnu.org; Mon, 09 Jan 2012 23:20:31 -0500 Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate03.web.de (Postfix) with ESMTP id DBFD71AF5BD85 for <10469@debbugs.gnu.org>; Tue, 10 Jan 2012 05:20:11 +0100 (CET) Received: from snow ([82.113.106.234]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0MV4xx-1SDtjC1UbN-00YUf7; Tue, 10 Jan 2012 05:20:11 +0100 From: Michael Heerdegen To: 10469@debbugs.gnu.org Subject: Re: bug#10469: 24.0.92; find-name-dired quotes characters in output References: Date: Tue, 10 Jan 2012 05:21:35 +0100 In-Reply-To: (Michael Heerdegen's message of "Mon, 09 Jan 2012 22:24:31 +0100") Message-ID: <87aa5ww5kg.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:i6aOCG2engGFsNp4uJW1+wNUr0bNRmHYf4Gy8kr7YVL uj1JwFHvSIpHLfUSVsvfOfN9w9xuBycw+ys9AMzsXKeQpLmjtZ 6D37O/qBjoPXudfmlumQZT9xqFscq4OqUkm6tRkWNph5zfGfNx bVW3Vo5wbZy2JmoGuUVsCqrSmhPL+oBTEABm6N4mAKATlKDV0G QnV1LYYfrAkity3fPJRdEiez5t7IkqDXNUUtFxlvTw= X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10469 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: michael_heerdegen@web.de List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Hello again, Yes, this is resulting from #10262. After browsing the sources, `find-dired' seems indeed to fail to handle (cdr find-ls-option). The find program call is built like that in `find-dired': (concat find-program " . " (if (string= args "") "" (concat (shell-quote-argument "(") " " args " " (shell-quote-argument ")") " ")) (if (string-match "\\`\\(.*\\) {} \\(\\\\;\\|+\\)\\'" (car find-ls-option)) (format "%s %s %s" (match-string 1 (car find-ls-option)) (shell-quote-argument "{}") find-exec-terminator) (car find-ls-option))) which doesn't handle (cdr find-ls-option). Also `find-dired-filter' doesn't handle (cdr find-ls-option) completely. On the other hand `find-dired' has this call: (dired-mode dir (cdr find-ls-option)) but since the buffer content comes from find, giving (cdr find-ls-option) as an argument has no effect here. - Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 12 04:10:21 2012 Received: (at 10469) by debbugs.gnu.org; 12 Jan 2012 09:10:21 +0000 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 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 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 From: Glenn Morris To: michael_heerdegen@web.de Subject: Re: bug#10469: 24.0.92; find-name-dired quotes characters in output References: <87y5tg7enk.fsf@web.de> 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") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10469 Cc: 10469@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) 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). From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 13 10:47:42 2012 Received: (at 10469) by debbugs.gnu.org; 13 Jan 2012 15:47:42 +0000 Received: from localhost ([127.0.0.1]:56611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RljLw-0005xd-W2 for submit@debbugs.gnu.org; Fri, 13 Jan 2012 10:47:42 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:39642) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RljLu-0005xT-KA for 10469@debbugs.gnu.org; Fri, 13 Jan 2012 10:47:39 -0500 Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate02.web.de (Postfix) with ESMTP id 069321BF92E32 for <10469@debbugs.gnu.org>; Fri, 13 Jan 2012 16:47:00 +0100 (CET) Received: from snow ([82.113.99.102]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0MhULy-1RzOZV0z1W-00MnEf; Fri, 13 Jan 2012 16:46:59 +0100 From: Michael Heerdegen To: Glenn Morris Subject: Re: bug#10469: 24.0.92; find-name-dired quotes characters in output References: <87y5tg7enk.fsf@web.de> Date: Fri, 13 Jan 2012 16:48:19 +0100 In-Reply-To: (Glenn Morris's message of "Thu, 12 Jan 2012 04:09:46 -0500") Message-ID: <87d3ana9j0.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:IcCUA5nRHzb+dIEZKAwTG5n8UyNInFk+TV+CK/ks+bh rtqgmoSRqfymOUrrXQR5USkHpHamGxLKYqYENlpYhd334gbDrf 6UI8WvDqxOcv0A4ADxMGNi2z2+2Qa40mBWejc8AZPRv6MeEhcg g/4GcAJWJkD+46hzKV3+ETpJs8InpXkGwMMDI5O7dBeNvmIopv B21MLBdPuMbjLdfp+UmZQDCTsW15QqAbFQupO84lKw= X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10469 Cc: 10469@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: michael_heerdegen@web.de List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Glenn Morris writes: > I don't think so (I don't think 10262 is a bug; see my comments there). Ok, I guess you're right, I'm not very familiar with the dired code. > 1) C-h v dired-listing-switches says "may contain even ... `b'", yet > dired does not seem to handle the -b option of ls: Ah, ok, then it is this to be fixed. Thanks, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 13 18:12:31 2012 Received: (at 10469-done) by debbugs.gnu.org; 13 Jan 2012 23:12:31 +0000 Received: from localhost ([127.0.0.1]:56910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlqIR-0007ii-Ad for submit@debbugs.gnu.org; Fri, 13 Jan 2012 18:12:31 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:49837) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlqIQ-0007ic-03 for 10469-done@debbugs.gnu.org; Fri, 13 Jan 2012 18:12:30 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RlqHm-00054M-3I; Fri, 13 Jan 2012 18:11:50 -0500 From: Glenn Morris To: 10469-done@debbugs.gnu.org Subject: Re: bug#10469: 24.0.92; find-name-dired quotes characters in output References: <87y5tg7enk.fsf@web.de> X-Spook: CDC rail gun insurgency USCOI keyhole Bush Wired IRA DRM X-Ran: \LkH$L4j4:x#U{S%oW+JrS"}(Wh[}Kmb"9;:Z6-pL5$THTPsQ]pyd(D&B'+HZi4\jQ1(\f X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 13 Jan 2012 18:11:50 -0500 In-Reply-To: (Glenn Morris's message of "Thu, 12 Jan 2012 04:09:46 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10469-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Version: 24.0.93 Glenn Morris wrote: > 1) C-h v dired-listing-switches says "may contain even ... `b'", yet > dired does not seem to handle the -b option of ls: This should be fixed now, and hence the original issue. > emacs -Q --eval '(setq find-ls-option (cons "-exec ls -dla --dired {} +" "-al"))' This was not relevant. Dired itself does not process --dired, insert-directory (which is not called by find-dired) does. And in any case, --dired will not be useful with find, since there could be multiple DIRED sections depending on how many files are found. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 13 19:54:20 2012 Received: (at 10469) by debbugs.gnu.org; 14 Jan 2012 00:54:20 +0000 Received: from localhost ([127.0.0.1]:56918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rlrsx-0001bD-TE for submit@debbugs.gnu.org; Fri, 13 Jan 2012 19:54:20 -0500 Received: from fmmailgate04.web.de ([217.72.192.242]:59250) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rlrsv-0001b4-3D for 10469@debbugs.gnu.org; Fri, 13 Jan 2012 19:54:17 -0500 Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate04.web.de (Postfix) with ESMTP id 7C3FC70D9BD1 for <10469@debbugs.gnu.org>; Sat, 14 Jan 2012 01:53:36 +0100 (CET) Received: from snow ([82.113.106.67]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0M6Df8-1SanZN1HZa-00y3D5; Sat, 14 Jan 2012 01:53:35 +0100 From: Michael Heerdegen To: 10469@debbugs.gnu.org Subject: Re: bug#10469: 24.0.92; find-name-dired quotes characters in output References: <87y5tg7enk.fsf@web.de> Date: Sat, 14 Jan 2012 01:54:57 +0100 In-Reply-To: (Glenn Morris's message of "Fri, 13 Jan 2012 18:11:50 -0500") Message-ID: <87vcofrtlq.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:Wl7/hFw3qAs+vKU+FXO0qILQq5v8MfQL9AvejLbmdh6 caDtXMc7eJ2BfIUidtn7h+uFcCEVBmFlGeunX8QukwoaB1mkPh 7/H7bn94R7sPLCXx7Qk8fJQuB5VcgDemubAe2QZiFxhJ3L1PYi q/7W+S32eBxGwsf8/QSaG2Wp6wUHbuN+OyIDDDyxIt/yOxeyBw ejBBGnhOgFB/LpeEc1XVD67RALk6VVgiVE2fzrQMgU= X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 10469 Cc: rgm@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.1 (-) Glenn Morris writes: > > 1) C-h v dired-listing-switches says "may contain even ... `b'", yet > > dired does not seem to handle the -b option of ls: > > This should be fixed now, and hence the original issue. Works generally for me, thanks so far. There is still a problem with redisplay, however. Recipe: 1. I have a directory "~/today/!testdir". It contains a file "my file". 2. I run (find-name-dired "~/today/" "*my*"). Output looks like that: /home/micha/today/: find . \( -iname \*my\* \) -ls ... 6324228 4 -rw-r--r-- 1 micha users 4 Jan 14 01:25 !testdir/my\ file find finished at Sat Jan 14 01:32:17 3. Move to "my\ file". I can visit it, but if I hit l (`dired-do-redisplay'), the file's line eventually appears like that: 6324228 4 -rw-r--r-- 1 micha users 4 Jan 14 01:25 !!testdir/my file I.e. with two `!' characters on the front (!), and without the backslash before the space char. If I now try to visit the file again, I get an error. Dunno if this is the same issue or a different one. In any case, with Emacs 23.3 I don't have that problem. Thanks, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 13 21:10:55 2012 Received: (at 10469) by debbugs.gnu.org; 14 Jan 2012 02:10:55 +0000 Received: from localhost ([127.0.0.1]:56929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rlt53-0003KY-UD for submit@debbugs.gnu.org; Fri, 13 Jan 2012 21:10:54 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:51793) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rlt51-0003KR-LE for 10469@debbugs.gnu.org; Fri, 13 Jan 2012 21:10:52 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Rlt4M-0006vU-NV; Fri, 13 Jan 2012 21:10:10 -0500 From: Glenn Morris To: Michael Heerdegen Subject: Re: bug#10469: 24.0.92; find-name-dired quotes characters in output References: <87y5tg7enk.fsf@web.de> <87vcofrtlq.fsf@web.de> X-Spook: DRM militia Israel S Box pipeline Security Council X-Ran: 0zoKtY3PaJQdrP!7w&F*)I_^e~):^$$oLeF-SjOUQL:VQXtR>3(3tlGYwRl,cs.y]1L?Ad X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 13 Jan 2012 21:10:10 -0500 In-Reply-To: <87vcofrtlq.fsf@web.de> (Michael Heerdegen's message of "Sat, 14 Jan 2012 01:54:57 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10469 Cc: 10469@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Michael Heerdegen wrote: > 1. I have a directory "~/today/!testdir". It contains a file "my file". Have you tried not doing that... Anyway, it is somewhat fixed now. You still get "\ " -> " " on redisplay, due to the "compensate for a bug in ange-ftp" portion of dired-add-entry. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 14 11:10:55 2012 Received: (at 10469) by debbugs.gnu.org; 14 Jan 2012 16:10:55 +0000 Received: from localhost ([127.0.0.1]:57493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rm6Bz-00009E-3I for submit@debbugs.gnu.org; Sat, 14 Jan 2012 11:10:55 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:59819) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rm6Bw-000094-0v for 10469@debbugs.gnu.org; Sat, 14 Jan 2012 11:10:53 -0500 Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate02.web.de (Postfix) with ESMTP id 2A64C1BFB453C for <10469@debbugs.gnu.org>; Sat, 14 Jan 2012 17:10:07 +0100 (CET) Received: from snow ([217.185.137.18]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0MbQbk-1S4s1217Tg-00J4Ay; Sat, 14 Jan 2012 17:10:06 +0100 From: Michael Heerdegen To: Glenn Morris Subject: Re: bug#10469: 24.0.92; find-name-dired quotes characters in output References: <87y5tg7enk.fsf@web.de> <87vcofrtlq.fsf@web.de> Date: Sat, 14 Jan 2012 17:11:28 +0100 In-Reply-To: (Glenn Morris's message of "Fri, 13 Jan 2012 21:10:10 -0500") Message-ID: <87r4z2qn67.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Provags-ID: V02:K0:OMrVspY0nKEFxdRABH2Z5/XngjGHbc2l6KzRlHkFBCh evChPL1BdAwvBh0HVJfR8RZvlPI2V1/RaqMDj3/bETcBZEYvYE G7zfv3biuNXKtG0u46VzyuKwKBNa0XK6hj77rVMUpayWUksbu3 IR26Z8ZjmUFhcy79axkzlpz5VKJ1V/7U3Vz0AeXaU+YO2pnq3g xfDq9oT+2q1qTSxwaq6oHVPXJHuT7ZUv4yq4yW+KVk= X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 10469 Cc: 10469@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: michael_heerdegen@web.de List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.3 (/) Glenn Morris writes: > Anyway, it is somewhat fixed now. You still get "\ " -> " " on > redisplay, due to the "compensate for a bug in ange-ftp" portion of > dired-add-entry. Ok, this works now, thanks! Glenn, if you have some more time... Now that dired respects the -b option, I wonder if it would be possible to get file names with newline characters working? I.e., set dired-listing-switches to "-abl". Create a directory "a b" somewhere. It gets shown as "a\nb" as expected. But if I try to visit it from dired, I get this error: Debugger entered--Lisp error: (error "No subdir-alist in a") signal(error ("No subdir-alist in a")) error("No subdir-alist in %s" #) (or dired-subdir-alist (error "No subdir-alist in %s" (current-buffer))) (let ((here (point)) (alist (or dired-subdir-alist (error "No subdir-alis= t in %s" (current-buffer)))) elt dir) (while alist (setq elt (car alist) di= r (car elt) alist (if (<=3D (dired-get-subdir-min elt) here) nil (cdr alist= )))) (if localp (dired-make-relative dir default-directory) dir)) dired-current-directory() (equal (dired-current-directory) "/") (cond ((null file) nil) ((eq localp (quote verbatim)) file) ((and (not no= -error-if-not-filep) (member file (quote ("." "..")))) (error "Cannot opera= te on `.' or `..'")) ((and (eq localp (quote no-dir)) already-absolute) (fi= le-name-nondirectory file)) (already-absolute (let ((handler (find-file-nam= e-handler file nil))) (if (and handler (not (get handler (quote safe-magic)= ))) (concat "/:" file) file))) ((eq localp (quote no-dir)) file) ((equal (d= ired-current-directory) "/") (setq file (concat (dired-current-directory lo= calp) file)) (let ((handler (find-file-name-handler file nil))) (if (and ha= ndler (not (get handler (quote safe-magic)))) (concat "/:" file) file))) (t= (concat (dired-current-directory localp) file))) (let (case-fold-search file p1 p2 already-absolute) (save-excursion (if (= setq p1 (dired-move-to-filename (not no-error-if-not-filep))) (setq p2 (dir= ed-move-to-end-of-filename no-error-if-not-filep)))) (if (setq file (and p1= p2 (buffer-substring p1 p2))) (progn (set-text-properties 0 (length file) = nil file) (while (string-match "\\(?:[^\\]\\|\\`\\)\\(\"\\)" file) (setq fi= le (replace-match "\\\"" nil t file 1))) (if (dired-switches-escape-p dired= -actual-switches) (let ((start 0) (rep "") (shift -1)) (if (eq localp (quot= e verbatim)) (setq rep "\\\\" shift 1)) (while (string-match "\\(\\\\\\) " = file start) (setq file (replace-match rep nil t file 1) start (+ shift ...)= )))) (when (eq system-type (quote windows-nt)) (save-match-data (let ((star= t 0)) (while (string-match "\\\\" file start) (aset file ... 47) (setq star= t ...))))) (setq file (read (concat "\"" file "\""))) (if (and enable-multi= byte-characters (not (multibyte-string-p file))) (setq file (string-to-mult= ibyte file))))) (and file (file-name-absolute-p file) (not (eq (aref file 0= ) 126)) (setq already-absolute t)) (cond ((null file) nil) ((eq localp (quo= te verbatim)) file) ((and (not no-error-if-not-filep) (member file (quote (= "." "..")))) (error "Cannot operate on `.' or `..'")) ((and (eq localp (quo= te no-dir)) already-absolute) (file-name-nondirectory file)) (already-absol= ute (let ((handler (find-file-name-handler file nil))) (if (and handler (no= t (get handler ...))) (concat "/:" file) file))) ((eq localp (quote no-dir)= ) file) ((equal (dired-current-directory) "/") (setq file (concat (dired-cu= rrent-directory localp) file)) (let ((handler (find-file-name-handler file = nil))) (if (and handler (not (get handler ...))) (concat "/:" file) file)))= (t (concat (dired-current-directory localp) file)))) dired-get-filename(nil t) (or (dired-get-filename nil t) "") (file-name-nondirectory (or (dired-get-filename nil t) "")) (string-match dired-trivial-filenames (file-name-nondirectory (or (dired-= get-filename nil t) ""))) (and (not (eobp)) (string-match dired-trivial-filenames (file-name-nondir= ectory (or (dired-get-filename nil t) "")))) (while (and (not (eobp)) (string-match dired-trivial-filenames (file-name= -nondirectory (or (dired-get-filename nil t) "")))) (forward-line 1) (dired= -move-to-filename)) (if (stringp dired-trivial-filenames) (while (and (not (eobp)) (string-ma= tch dired-trivial-filenames (file-name-nondirectory (or (dired-get-filename= nil t) "")))) (forward-line 1) (dired-move-to-filename))) dired-goto-next-nontrivial-file() (if dired-trivial-filenames (dired-goto-next-nontrivial-file)) dired-initial-position("~/today/a\nb/") (if (not new-buffer-p) (cond (switches (setq dired-directory dir-or-list)= (dired-sort-other switches)) ((eq dired-auto-revert-buffer t) (revert-buff= er)) ((functionp dired-auto-revert-buffer) (when (funcall dired-auto-revert= -buffer dirname) (revert-buffer) (message "Changed directory automatically = updated"))) ((when (dired-directory-changed-p dirname) (message "%s" (subst= itute-command-keys "Directory has changed on disk; type \\[revert-buffer] t= o update Dired"))))) (setq default-directory (file-name-directory dirname))= (or switches (setq switches dired-listing-switches)) (if mode (funcall mod= e) (dired-mode dir-or-list switches)) (let ((failed t)) (unwind-protect (pr= ogn (dired-readin) (setq failed nil)) (if failed (kill-buffer buffer)))) (g= oto-char (point-min)) (dired-initial-position dirname)) (let* ((old-buf (current-buffer)) (dirname (if (consp dir-or-list) (car d= ir-or-list) dir-or-list)) (buffer (dired-find-buffer-nocreate dirname mode)= ) (new-buffer-p (null buffer))) (or buffer (setq buffer (create-file-buffer= (directory-file-name dirname)))) (set-buffer buffer) (if (not new-buffer-p= ) (cond (switches (setq dired-directory dir-or-list) (dired-sort-other swit= ches)) ((eq dired-auto-revert-buffer t) (revert-buffer)) ((functionp dired-= auto-revert-buffer) (when (funcall dired-auto-revert-buffer dirname) (rever= t-buffer) (message "Changed directory automatically updated"))) ((when (dir= ed-directory-changed-p dirname) (message "%s" (substitute-command-keys "Dir= ectory has changed on disk; type \\[revert-buffer] to update Dired"))))) (s= etq default-directory (file-name-directory dirname)) (or switches (setq swi= tches dired-listing-switches)) (if mode (funcall mode) (dired-mode dir-or-l= ist switches)) (let ((failed t)) (unwind-protect (progn (dired-readin) (set= q failed nil)) (if failed (kill-buffer buffer)))) (goto-char (point-min)) (= dired-initial-position dirname)) (set-buffer old-buf) buffer) dired-internal-noselect("~/today/a\nb/" nil) (let (dirname initially-was-dirname) (if (consp dir-or-list) (setq dirnam= e (car dir-or-list)) (setq dirname dir-or-list)) (setq initially-was-dirnam= e (string=3D (file-name-as-directory dirname) dirname)) (setq dirname (abbr= eviate-file-name (expand-file-name (directory-file-name dirname)))) (if fin= d-file-visit-truename (setq dirname (file-truename dirname))) (if (or initi= ally-was-dirname (file-directory-p dirname)) (setq dirname (file-name-as-di= rectory dirname))) (if (consp dir-or-list) (setq dir-or-list (cons dirname = (cdr dir-or-list))) (setq dir-or-list dirname)) (dired-internal-noselect di= r-or-list switches)) dired-noselect("/home/micha/today/a\nb" nil) (switch-to-buffer (dired-noselect dirname switches)) dired("/home/micha/today/a\nb") (or (and (cdr dired-subdir-alist) (dired-goto-subdir file)) (dired file)) (if (file-directory-p file) (or (and (cdr dired-subdir-alist) (dired-goto= -subdir file)) (dired file)) (view-file file)) (let ((file (dired-get-file-for-visit))) (if (file-directory-p file) (or = (and (cdr dired-subdir-alist) (dired-goto-subdir file)) (dired file)) (view= -file file))) dired-view-file() call-interactively(dired-view-file nil nil) Would be cool if it worked. Regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 17 17:29:27 2012 Received: (at 10469) by debbugs.gnu.org; 17 Jan 2012 22:29:27 +0000 Received: from localhost ([127.0.0.1]:33938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnHWw-0005wV-Jb for submit@debbugs.gnu.org; Tue, 17 Jan 2012 17:29:27 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:37828) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnHWu-0005wP-Or for 10469@debbugs.gnu.org; Tue, 17 Jan 2012 17:29:25 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RnHVt-0003xJ-PN; Tue, 17 Jan 2012 17:28:21 -0500 From: Glenn Morris To: michael_heerdegen@web.de Subject: Re: bug#10469: 24.0.92; find-name-dired quotes characters in output References: <87y5tg7enk.fsf@web.de> <87vcofrtlq.fsf@web.de> <87r4z2qn67.fsf@web.de> X-Spook: Zachawi Chobetsu George W. Bush cybercash brigand X-Ran: c"1l`Rh}0bO=KGn]b;lN?\#wrxC29:~[VU}p&F+:xAI*,j;m>6HYUV=\%QP1~fC-w|IoU] X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 17 Jan 2012 17:28:21 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 10469 Cc: 10469@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) Michael Heerdegen wrote: > I.e., set dired-listing-switches to "-abl". Create a directory "a > b" somewhere. It gets shown as "a\nb" as expected. But if I try to > visit it from dired, I get this error: I think this works too now. But Dired obviously has not been designed with files with newlines in the name in mind, so I would not be surprised if there are still many places where it gets it wrong. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 17 19:16:43 2012 Received: (at 10469) by debbugs.gnu.org; 18 Jan 2012 00:16:43 +0000 Received: from localhost ([127.0.0.1]:33973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnJCl-0008RH-HG for submit@debbugs.gnu.org; Tue, 17 Jan 2012 19:16:43 -0500 Received: from fmmailgate05.web.de ([217.72.192.243]:38731) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnJCj-0008RA-Nk for 10469@debbugs.gnu.org; Tue, 17 Jan 2012 19:16:42 -0500 Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate05.web.de (Postfix) with ESMTP id 6AEE1691A3C8 for <10469@debbugs.gnu.org>; Wed, 18 Jan 2012 01:15:33 +0100 (CET) Received: from snow ([89.204.138.21]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0LtoGb-1SmJca2Hi9-011d8t; Wed, 18 Jan 2012 01:15:30 +0100 From: Michael Heerdegen To: Glenn Morris Subject: Re: bug#10469: 24.0.92; find-name-dired quotes characters in output References: <87y5tg7enk.fsf@web.de> <87vcofrtlq.fsf@web.de> <87r4z2qn67.fsf@web.de> Date: Wed, 18 Jan 2012 01:16:47 +0100 In-Reply-To: (Glenn Morris's message of "Tue, 17 Jan 2012 17:28:21 -0500") Message-ID: <87aa5lamq8.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:8yqTGM+N05KypVxRGkguV1cLQm2XIpf+5dfSErBdw/E B307oQRnpDNaarZAUFyeHPAL0tIfjdIDZTZLB6BDbttQhmJ6qf pGGryDdaE5PkxDmyVzGd4C7RBj4st01ft7L5OdOeSMjuh9aX4w qpYlHhOYhd0X8MSBBuTpcPcwdw9m7wjQ+m6XUWoMzy9kpDPY6b 3MLRfLWvZqG6/82HP0i9xPeDVsk5Lch8YUokz4sBPk= X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10469 Cc: 10469@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: michael_heerdegen@web.de List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Glenn Morris writes: > > I.e., set dired-listing-switches to "-abl". Create a directory "a > > b" somewhere. It gets shown as "a\nb" as expected. But if I try to > > visit it from dired, I get this error: > > I think this works too now. But Dired obviously has not been designed > with files with newlines in the name in mind, so I would not be > surprised if there are still many places where it gets it wrong. I made some small tests - worked, even wdired worked! I've set `dired-listing-switches' in my init file to include -b now, so that I can test this in the future. Thanks again, Michael. From unknown Sun Jun 22 07:55:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 15 Feb 2012 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 21 16:43:54 2012 Received: (at control) by debbugs.gnu.org; 21 Feb 2012 21:43:54 +0000 Received: from localhost ([127.0.0.1]:49279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzxV4-0004a1-5r for submit@debbugs.gnu.org; Tue, 21 Feb 2012 16:43:54 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:52045 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzxV2-0004Zr-32 for control@debbugs.gnu.org; Tue, 21 Feb 2012 16:43:52 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RzxSn-0005LA-7U for control@debbugs.gnu.org; Tue, 21 Feb 2012 16:41:33 -0500 Date: Tue, 21 Feb 2012 16:41:33 -0500 Message-Id: Subject: control message for bug 10817 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) unarchive 10469 forcemerge 10469 10817 From unknown Sun Jun 22 07:55:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 21 Mar 2012 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator