Mercurial > emacs
view move-if-change @ 66135:5a1bac1c915b
* net/tramp.el (tramp-completion-mode): New defvar. Used in
`tramp-completion-mode' for checking if we are in completion mode.
(tramp-completion-handle-file-name-all-completions): Reorder code
in order to complete for file names only in case there are no
method/user/host completions. This is necessary for cooperation
with ido. Reported by Kim F. Storm <storm@cua.dk>.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Mon, 17 Oct 2005 04:46:46 +0000 |
parents | 354e0c45cedf |
children | 14a97ab281d5 |
line wrap: on
line source
#!/bin/sh if test -r $2 then if cmp $1 $2 > /dev/null then echo $2 is unchanged rm -f $1 else mv -f $1 $2 fi else mv -f $1 $2 fi