Mercurial > emacs
view move-if-change @ 47394:e48ab1d671be
(Fdo_auto_save): Catch error making directory.
Only call push_message if we need to.
At the same time, make an unwind-protect to pop it.
Rename local message_p to old_message_p.
(do_auto_save_make_dir, do_auto_save_eh): New functions.
(do_auto_save_unwind): Don't call pop_message.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 11 Sep 2002 02:03:24 +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