bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarch


From: Michael Albinus
Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy
Date: Fri, 13 Jan 2012 14:32:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Juanma Barranquero <address@hidden> writes:

>>  (compare-strings (file-truename (expand-file-name name1 dir)) 0 nil
>>                   (file-truename (expand-file-name name2 dir)) 0 nil
>>                   read-file-name-completion-ignore-case))
>
> I think we should push for it to be added to Emacs, if only for the
> thrill of having a ChangeLog entry
>
> 2012-01-13  Michael Albinus <address@hidden>
>           Juanma Barranquero  <address@hidden>
>           Eli Zaretskii <address@hidden>
>
>       * files.el (file-name-compare): New function.
>
> i.e., three authors for a three-line function (plus header and comments) ;-)

Perfect reasoning, I'm for it :-)

Thinking about, `file-truename' would need some massage for the remote
case. Currently, it just expands symlinks. But it could also do some
normalization for the user and host name. For example:

(file-truename "/ssh:127.0.0.1:/path/to/symlink")
 => "/ssh:address@hidden:/extend/path/to/file"

But that's for Emacs 24.2, of course.

> Juanma

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]