Hrvoje Niksic <hniksic(a)iskon.hr> writes:
> > It would be really nice to have clash detection back. I
remember
> > somebody (you?) mentioning an algorithm how clash detection could be
> > implemented to work reliably.
> > Whatever happened to that project?
>
> Its in 21.2 since January 1999 or so (I implemented it in September
> 1998, just after the feature freeze).
Oops.
Let's enable it by default, then. Why is it disabled at all? It's a
very useful feature IMHO.
Here's the patch. I'll apply this after a few days if no
one objects.
Index: configure.in
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/configure.in,v
retrieving revision 1.111.2.97
diff -u -r1.111.2.97 configure.in
--- configure.in 2000/04/03 06:28:54 1.111.2.97
+++ configure.in 2000/04/13 05:41:29
@@ -1602,7 +1602,7 @@
XE_ADD_OBJS(sunpro.o)
fi
-if test "$with_clash_detection" = "yes"; then
+if test "$with_clash_detection" != "no"; then
AC_DEFINE(CLASH_DETECTION)
XE_ADD_OBJS(filelock.o)
fi
@@ -4675,7 +4675,7 @@
test "$with_socks" = yes && echo " Compiling in support for
SOCKS."
test "$with_dnet" = yes && echo " Compiling in support for
DNET."
test "$with_modules" = "yes" && echo " Compiling in
support for dynamic shared object modules."
-test "$with_clash_detection" = yes && \
+test "$with_clash_detection" != "no" && \
echo " Clash detection will use \"$lockdir\" for locking files."
test "$use_union_type" = yes && echo " Using the union type for
Lisp_Objects."
test "$pdump" = yes && echo " Using the new portable
dumper."
Index: configure.usage
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/configure.usage,v
retrieving revision 1.17.2.17
diff -u -r1.17.2.17 configure.usage
--- configure.usage 2000/03/27 17:48:47 1.17.2.17
+++ configure.usage 2000/04/13 05:41:29
@@ -248,7 +248,7 @@
--with-system-malloc Force use of the system malloc, rather than GNU malloc.
--with-debug-malloc Use the debugging malloc package.
--with-clash-detection Use lock files to detect multiple edits of the same
- file. The default is to not do clash detection.
+ file. The default is to do clash detection.
--lockdir=DIR The directory to put clash detection files in, such as
`/var/lock/emacs'.
Defaults to `${statedir}/xemacs/lock'.
--
Yoshiki Hayashi