Mercurial > emacs
view move-if-change @ 95555:97c7d857b5e3
(finder-headmark): Initialize and add doc string.
(generated-finder-keywords-file): Doc fix.
(finder-no-scan-regexp): New variable.
(finder-compile-keywords): Use a single let binding. Disable undo in
the output buffer. Use autoload-rubric. Use mapc rather than mapcar.
Don't scan files matching finder-no-scan-regexp. Use
with-temp-buffer. Use expand-file-name rather than concat. Use
directory-files to do regexp matching. No need to require jka-compr.
(finder-list-keywords): Remove un-needed set-buffer. Disable undo.
(finder-list-matches): Disable undo.
(finder-commentary): Use let rather than let*. Disable undo.
(finder-current-item): Use zerop.
(finder-mode): Use define-derived-mode.
(finder-exit): Doc fix. Use dolist.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 05 Jun 2008 02:35:15 +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