Subject: 24.0.91; dired-get-filename in dired.el

From: Robert Glöckner <[email-masked]>
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''