view move-if-change @ 26055:cf5dd9e8bf79

(forward-sentence, forward-paragraph): When constraining the final position to the current field, don't use the ONLY-IN-LINE mode of constrain-to-field. (forward-sentence): Likewise. (forward-paragraph, forward-sentence): Likewise. (backward-kill-paragraph, backward-kill-sentence): Remove code to constrain the kill to an field, as the movement commands now do this. (backward-kill-sentence): Remove minibuffer-prompt hack. Constrain to any input field.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 17 Oct 1999 12:51:19 +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