GNU bug report logs - #10817
24.0.91; dired-get-filename in dired.el

Previous Next

Package: emacs;

Reported by: Robert Glöckner <robert.gloeckner <at> gmx.net>

Date: Wed, 15 Feb 2012 17:09:01 UTC

Severity: normal

Merged with 10469

Found in versions 24.0.91, 24.0.92

Fixed in version 24.0.93

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Robert Glöckner <robert.gloeckner <at> gmx.net>
To: 10817 <at> debbugs.gnu.org
Subject: bug#10817: 24.0.91; dired-get-filename in dired.el
Date: Wed, 15 Feb 2012 15:26:10 +0100
dired-get-filename does not work properly with find-dired especially
when filenames contain whitespaces.

the following fix is not elegant, but works fine.
(imho replacing the read would be best)

replace this:
(read (concat "\"" file "\""))

with:
(setq file
      (replace-regexp-in-string
       "\\\\ " " "
       (read
        (concat
         "\"" (replace-regexp-in-string "\\ " "\\\\ " file) "\""))))


In GNU Emacs 24.0.91.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d 
scroll bars)
 of 2011-11-04 on ms-tron
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--with-x-toolkit=lucid' '--with-gif=no' 
'--with-tiff=no''




This bug report was last modified 13 years and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.