unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10817: 24.0.91; dired-get-filename in dired.el
@ 2012-02-15 14:26 Robert Glöckner
  2012-02-15 17:15 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Glöckner @ 2012-02-15 14:26 UTC (permalink / raw)
  To: 10817

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''





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#10817: 24.0.91; dired-get-filename in dired.el
  2012-02-15 14:26 bug#10817: 24.0.91; dired-get-filename in dired.el Robert Glöckner
@ 2012-02-15 17:15 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-02-15 17:15 UTC (permalink / raw)
  To: Robert Glöckner; +Cc: 10817

Robert Glöckner wrote:

> dired-get-filename does not work properly with find-dired especially
> when filenames contain whitespaces.

I suspect it does, following
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10469

If it does not work for you in the current trunk (24.0.91 is a little
old), please give a complete example starting from emacs -Q.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-15 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 14:26 bug#10817: 24.0.91; dired-get-filename in dired.el Robert Glöckner
2012-02-15 17:15 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).