From unknown Sun Aug 17 10:22:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13165: Fwd: Newlines in file names Resent-From: Whitfield Diffie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Dec 2012 22:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13165@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.135535285518294 (code B ref -1); Wed, 12 Dec 2012 22:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Dec 2012 22:54:15 +0000 Received: from localhost ([127.0.0.1]:39627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TivBv-0004kz-6t for submit@debbugs.gnu.org; Wed, 12 Dec 2012 17:54:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60307) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tiv9X-0004gk-Hy for submit@debbugs.gnu.org; Wed, 12 Dec 2012 17:51:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tiv8g-00032G-9R for submit@debbugs.gnu.org; Wed, 12 Dec 2012 17:50:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiv8g-00032C-5d for submit@debbugs.gnu.org; Wed, 12 Dec 2012 17:50:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiv8c-00008B-0o for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:50:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tiv8U-0002zd-TS for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:50:49 -0500 Received: from mail-qa0-f48.google.com ([209.85.216.48]:42654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiv8U-0002zZ-Kp for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2012 17:50:42 -0500 Received: by mail-qa0-f48.google.com with SMTP id l8so1995708qaq.0 for ; Wed, 12 Dec 2012 14:50:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=ZGhvVbQlsZzzTi0rdRgx53lxqbqMlK5M6Xlj5iPEHm4=; b=OYXSlyXKT0mTUjLJSDleL1V2XiLiYsVjzMUeBYIFYOYhtwcnXshEkfNunO4ipcINOG VERXZjEhZ4EIqo33tlYVZuRcaL0GXY8pGUHlEsearIizqr7wtV9EMrMVTZ8eXTj3UIaW 45kQ6BAi0tHKBcVNG+t3MBnzjrEC9X6+Duznidmcf/5wGi5ibc7SaXgSVJ4Hvzxu7eUs Xw7e8uwxRmHMq2w0YrUew6ldLOaRhqbkF5zVlaHJFG4rkuQaSlFa0lb5DnSHcbRlx5c2 gaILNu+zS6GVgqelGljGIsAePvVSIUDqpSiFGVTyc0XP/Dk9OkpGhVT9jRfAtx37TcsA 9irg== MIME-Version: 1.0 Received: by 10.224.180.205 with SMTP id bv13mr116531qab.7.1355352641747; Wed, 12 Dec 2012 14:50:41 -0800 (PST) Received: by 10.49.36.229 with HTTP; Wed, 12 Dec 2012 14:50:41 -0800 (PST) In-Reply-To: References: Date: Wed, 12 Dec 2012 14:50:41 -0800 X-Google-Sender-Auth: v3rjlYf0l_Vf6aZiSttgpK4UD_k Message-ID: From: Whitfield Diffie Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-Mailman-Approved-At: Wed, 12 Dec 2012 17:54:14 -0500 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.4 (---) Since this didn't attract much attention as a request for help, let me try it as a bug report. In emacs 22.1.1, if you have a file whose name contains a carriage return and put the cursor on the line with that file in dired, then (file-exists-p (dired-get-filename)) is nil. Whit ---------- Forwarded message ---------- From: Whitfield Diffie Date: Mon, Dec 10, 2012 at 11:47 AM Subject: Newlines in file names To: help-gnu-emacs@gnu.org Question: How do you translate a filename containing a newline to one containing a \n without getting a \\n. Problem: Create a directory ``test''. In the directory create a file with (call-process "touch" nil nil nil "Icon\n"). This file's name has five characters of which the last is a newline. (Such files appear in some downloads.) This directory now appears as /Users/diffie/test: total used in directory 0 available 327738716 drwxr-xr-x 3 diffie staff 102 Dec 10 11:04 . drwxr-xr-x 25 diffie staff 850 Dec 10 11:03 .. -rw-r--r-- 1 diffie staff 0 Dec 9 10:01 Icon Place the cursor on the line with the Icon file and type : (file-exists-p (dired get filename)) The response is ``nil''. Make the buffer writable with and edit the name by hand to ``Icon\n''. Type : (file-exists-p (dired-get-filename)) The response is now ``t''. Type g to revert the buffer and the name returns to being ``Icon''. Place the cursor on the line with the Icon file again and type M+x The entire file line disappears leaving only . and .. in the directory. Type g to revert the buffer and the line reappears but the file has not become executable. Edit the filename as before and repeat the attempt to make it executable. Now the file line becomes -rwxr-xr-x 1 diffie staff 0 Dec 9 10:01 Icon The file has become executable but its name has returned to being ``Icon'', lacks the newline character. Objective: Repair dired so that filenames containing newlines are displayed with \n in place of newline characters (and \r in place of carriage returns). I have tried setting print-escape-newlines to t and recoding filename with buffer-file-coding-system, file-name-coding-system, and default-file-name-coding-system, without success. Whit From unknown Sun Aug 17 10:22:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13165: Fwd: Newlines in file names Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Dec 2012 23:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Whitfield Diffie Cc: 13165@debbugs.gnu.org Received: via spool by 13165-submit@debbugs.gnu.org id=B13165.135535350319321 (code B ref 13165); Wed, 12 Dec 2012 23:06:01 +0000 Received: (at 13165) by debbugs.gnu.org; 12 Dec 2012 23:05:03 +0000 Received: from localhost ([127.0.0.1]:39639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TivML-00051Z-UO for submit@debbugs.gnu.org; Wed, 12 Dec 2012 18:05:02 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:48129) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TivMJ-00051B-AA for 13165@debbugs.gnu.org; Wed, 12 Dec 2012 18:05:00 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TivLV-0005FA-VO; Wed, 12 Dec 2012 18:04:10 -0500 From: Glenn Morris References: X-Spook: Agfa csim Lon Horiuchi Mantis IMF Soviet monarchist Saudi X-Ran: 7h#@|ha]GhK1`^@M}30Q'Z7r3zFN7rw-WvrtcbgY2Ya_4Or${2ChX#"<2k|l}?y<=fVgzO X-Hue: red X-Attribution: GM Date: Wed, 12 Dec 2012 18:04:09 -0500 In-Reply-To: (Whitfield Diffie's message of "Wed, 12 Dec 2012 14:50:41 -0800") 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-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 (----) Whitfield Diffie wrote: > Since this didn't attract much attention as a request for help, > let me try it as a bug report. > > In emacs 22.1.1, if you have a file whose name contains a carriage > return and put the cursor on the line with that file in dired, then > (file-exists-p (dired-get-filename)) is nil. It works fine if you add -b to dired-listing-switches. emacs-22.1 -Q --eval '(setq dired-listing-switches "-alb")' This was a suggestion when this was a help request: http://lists.gnu.org/archive/html/help-gnu-emacs/2012-12/msg00133.html I see no prospect of Dired handling file names with newlines without the -b switch in use. Note there are some issues with -b that are fixed in newer versions of Emacs than the one you are using, eg http://debbugs.gnu.org/10469 http://debbugs.gnu.org/10596 From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 12 18:07:37 2012 Received: (at control) by debbugs.gnu.org; 12 Dec 2012 23:07:37 +0000 Received: from localhost ([127.0.0.1]:39664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TivOq-000568-Eu for submit@debbugs.gnu.org; Wed, 12 Dec 2012 18:07:36 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:48187) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TivOo-000561-G4 for control@debbugs.gnu.org; Wed, 12 Dec 2012 18:07:35 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TivO1-0005W2-F5 for control@debbugs.gnu.org; Wed, 12 Dec 2012 18:06:45 -0500 Date: Wed, 12 Dec 2012 18:06:45 -0500 Message-Id: Subject: control message for bug 13165 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 (----) close 13165 24.1 From unknown Sun Aug 17 10:22:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13165: Fwd: Newlines in file names Resent-From: Whitfield Diffie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Dec 2012 05:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 13165@debbugs.gnu.org Received: via spool by 13165-submit@debbugs.gnu.org id=B13165.13555496731751 (code B ref 13165); Sat, 15 Dec 2012 05:35:01 +0000 Received: (at 13165) by debbugs.gnu.org; 15 Dec 2012 05:34:33 +0000 Received: from localhost ([127.0.0.1]:43210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjkOO-0000SB-UD for submit@debbugs.gnu.org; Sat, 15 Dec 2012 00:34:33 -0500 Received: from mail-qc0-f172.google.com ([209.85.216.172]:61972) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjkON-0000S5-GU for 13165@debbugs.gnu.org; Sat, 15 Dec 2012 00:34:32 -0500 Received: by mail-qc0-f172.google.com with SMTP id b25so3170571qca.3 for <13165@debbugs.gnu.org>; Fri, 14 Dec 2012 21:33:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=KMV6PQFoVnsuUvR1lqUof8via6hEGIwdbV5oUDTuSM0=; b=0k1K7aUN+WlKQgGAP41r9hzXoeTacgpMpbz5/EGbxPOeUoN+9vlsi2HvtBRWnoj5B6 aPMijhRZf/c4kr1ayZNv50YM6qSYb53h/yOSCUdbFwJULAuG8NLxyWhh7OweKSIU0McU vBueJSKaPePq/UNlRWXaGJfuOUCnGqooz98TJtIvit5rZ5LaC2jqeNxlxF0u0uPD+HtT 9TC6dwnE029rvbmamXqwkJJcTQ07sG4kvoNMyrMwDD/A6i2NW7dGwY69ZJ9wB/YB7RUc GcE0R9MrYGPxp/Tnz4BNM3L7ns4gj3i22thK5Q/LOB3++p0ErBWFNN5h6bzbsKujcwj7 MBuA== MIME-Version: 1.0 Received: by 10.224.221.72 with SMTP id ib8mr1609384qab.7.1355549609040; Fri, 14 Dec 2012 21:33:29 -0800 (PST) Received: by 10.49.36.229 with HTTP; Fri, 14 Dec 2012 21:33:28 -0800 (PST) In-Reply-To: References: Date: Fri, 14 Dec 2012 21:33:28 -0800 X-Google-Sender-Auth: ApRbbchGI0XsJbQPGm_9BMkfrd4 Message-ID: From: Whitfield Diffie Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: 0.1 (/) 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: 0.1 (/) >> In emacs 22.1.1, if you have a file whose name contains a carriage >> return and put the cursor on the line with that file in dired, then >> (file-exists-p (dired-get-filename)) is nil. > > It works fine if you add -b to dired-listing-switches. I find it hard to see (null (file-exists-p (dired-get-filename))) as anything but a bug; if -b didn't put the filenames in the right form, dired should have done so. I am, however, very grateful to you for setting me on the right path. My problem was code in dired-insert-directory that reformats filenames if it does not find b in the listing-switches. Your message put me on the right track and I have solved the problem. Thank you. What I am working with is a substantially revised dired, e.g., /Users/diffie/system/emacs/local/dired-mods: dr-x 10 29Oct12 17:10:33 dired-sort-halves.el dr-x 16 27Oct12 18:16:51 dired-sorting.el -r-- 2006 22Apr09 07:41:09 directory-needs-reversion-p.el -r-- 4714 7Feb12 20:19:43 dired-add-entry.el -r-- 418 20Jun06 22:16:47 dired-add-file.el -r-- 939 18Mar07 21:06:53 dired-add-zero-in-filename.el -r-- 594 30Nov11 11:06:45 dired-approximate-position.el -r-- 231 7Feb12 19:58:01 dired-at-headerline.el in which there are numerous format switches. (Anyone who is interested, is naturally welcome to it; I haven't compared it with dired in later versions of Emacs.) > emacs-22.1 -Q --eval '(setq dired-listing-switches "-alb")' > This was a suggestion when this was a help request: If it was a response to my help request, it didn't reach me. > I see no prospect of Dired handling file names with newlines without the > -b switch in use. My dired doesn't depend on ls. I does use it at present but I think directory-files would do just as well. Thanks again, Whit From unknown Sun Aug 17 10:22:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13165: Fwd: Newlines in file names Resent-From: Whitfield Diffie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Dec 2012 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 13165@debbugs.gnu.org Received: via spool by 13165-submit@debbugs.gnu.org id=B13165.135560192825626 (code B ref 13165); Sat, 15 Dec 2012 20:06:02 +0000 Received: (at 13165) by debbugs.gnu.org; 15 Dec 2012 20:05:28 +0000 Received: from localhost ([127.0.0.1]:44387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjxzE-0006fH-9M for submit@debbugs.gnu.org; Sat, 15 Dec 2012 15:05:28 -0500 Received: from mail-qc0-f172.google.com ([209.85.216.172]:42054) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjxzB-0006f5-KT for 13165@debbugs.gnu.org; Sat, 15 Dec 2012 15:05:26 -0500 Received: by mail-qc0-f172.google.com with SMTP id b25so3438125qca.3 for <13165@debbugs.gnu.org>; Sat, 15 Dec 2012 12:04:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=LBVx+i0khBGKLeDMeTc1VfBuHerWAOzzne+fq+yw10w=; b=Qpq9XW7iKfZbVICTThXBLCkOb6AyUjwdStYYizoJ/4j+lry6Yv5F/RLBvy3A/wKCTE 0DnOyr1Drc6dUVe11hFvpahLuUuH/syChNntZ4DnEhutQJ3xpzUjoMduvBHtnjQaN8rL bGJF65zwYesNMh1KUfEKMHb/f52o3XGMO9uIXUGafOD/Lq5p0liHFJbKDSOcB2+hEG4q r1NPsvk+eEeWFPexqZn36FBVXMnbHeQe4Tx+V8884rNFSDLz11636Kud8uyXmoZcdRL8 ReYlXnd+msfaHup1J23eEOFGgxO/JWjrrVvDfPdjiabpPHR217p/vFnCCEFMUOQvk87L YNgA== MIME-Version: 1.0 Received: by 10.224.108.6 with SMTP id d6mr4294968qap.57.1355601860062; Sat, 15 Dec 2012 12:04:20 -0800 (PST) Received: by 10.49.36.229 with HTTP; Sat, 15 Dec 2012 12:04:19 -0800 (PST) In-Reply-To: References: Date: Sat, 15 Dec 2012 12:04:19 -0800 X-Google-Sender-Auth: bv_sSwJc0451PInglNwHJbJeOPU Message-ID: From: Whitfield Diffie Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: 0.1 (/) 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: 0.1 (/) > I find it hard to see (null (file-exists-p (dired-get-filename))) > as anything but a bug; if -b didn't put the filenames in the right > form, dired should have done so. Moby sorry: I meant ``if ls didn't put the filenames in the right form...'' Whit From unknown Sun Aug 17 10:22:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13165: Fwd: Newlines in file names Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Dec 2012 15:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Whitfield Diffie Cc: Glenn Morris , 13165@debbugs.gnu.org Received: via spool by 13165-submit@debbugs.gnu.org id=B13165.13557582338928 (code B ref 13165); Mon, 17 Dec 2012 15:31:01 +0000 Received: (at 13165) by debbugs.gnu.org; 17 Dec 2012 15:30:33 +0000 Received: from localhost ([127.0.0.1]:47289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TkceG-0002Jw-CF for submit@debbugs.gnu.org; Mon, 17 Dec 2012 10:30:32 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:33516) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TkceE-0002Jp-Af for 13165@debbugs.gnu.org; Mon, 17 Dec 2012 10:30:30 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxLDj/2dsb2JhbABEtBGBCIIVAQEEAVYjEAs0EhQYDSSIHAW6CZBEA4hCmnGBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="210077249" Received: from 69-196-176-227.dsl.teksavvy.com (HELO pastel.home) ([69.196.176.227]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Dec 2012 10:29:14 -0500 Received: by pastel.home (Postfix, from userid 20848) id E71245912C; Mon, 17 Dec 2012 10:29:15 -0500 (EST) From: Stefan Monnier Message-ID: References: Date: Mon, 17 Dec 2012 10:29:15 -0500 In-Reply-To: (Whitfield Diffie's message of "Sat, 15 Dec 2012 12:04:19 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) 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: -0.0 (/) >> I find it hard to see (null (file-exists-p (dired-get-filename))) >> as anything but a bug; if ls didn't put the filenames in the right >> form, dired should have done so. I don't understand what you're saying here. How could dired guess what is the right form if ls doesn't provide it? Tho, I guess that with "ls --dired" the extra data returned by ls could arguably provide the needed info. Stefan