From: "Robert Glöckner" <robert.gloeckner@gmx.net>
To: 10817@debbugs.gnu.org
Subject: bug#10817: 24.0.91; dired-get-filename in dired.el
Date: Wed, 15 Feb 2012 15:26:10 +0100 [thread overview]
Message-ID: <4F3BC082.9010007@gmx.net> (raw)
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''
next reply other threads:[~2012-02-15 14:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 14:26 Robert Glöckner [this message]
2012-02-15 17:15 ` bug#10817: 24.0.91; dired-get-filename in dired.el Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F3BC082.9010007@gmx.net \
--to=robert.gloeckner@gmx.net \
--cc=10817@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.