[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10817: 24.0.91; dired-get-filename in dired.el
From: |
Robert Glöckner |
Subject: |
bug#10817: 24.0.91; dired-get-filename in dired.el |
Date: |
Wed, 15 Feb 2012 15:26:10 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101217 Thunderbird/3.1.7 |
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''
- bug#10817: 24.0.91; dired-get-filename in dired.el,
Robert Glöckner <=