view move-if-change @ 83297:8e357d90cc9f

Fix exponential slowdowns on repeated tty frame creation. * lisp/term/xterm.el: Protect extended function-key-map from being added to the real function-key-map each time the file is loaded. (xterm-function-map): New variable. * lisp/term/rxvt.el: Ditto. (rxvt-function-map): New variable. * lisp/term/lk201.el: Add note on buggy globalness of define-key. * lisp/term/iris-ansi.el: Ditto. * lisp/term/news.el: Ditto. * lisp/term/sun.el: Ditto. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-337
author Karoly Lorentey <lorentey@elte.hu>
date Tue, 03 May 2005 01:38:40 +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