# HG changeset patch # User michaels # Date 1014398522 0 # Node ID 760db937b9eef3ef5c361c972b6c3098f078a542 # Parent 516c347c4479d85f6c6dc9dfbf83c73d50149011 [xemacs-hg @ 2002-02-22 17:22:00 by michaels] 2001-09-04 Daiki Ueno * insdel.c (prepare_to_modify_buffer): Don't call the function ask-user-about-supersession-threat when CLASH_DETECTION is set. diff -r 516c347c4479 -r 760db937b9ee src/ChangeLog --- a/src/ChangeLog Fri Feb 22 17:14:00 2002 +0000 +++ b/src/ChangeLog Fri Feb 22 17:22:02 2002 +0000 @@ -1,3 +1,8 @@ +2001-09-04 Daiki Ueno + + * insdel.c (prepare_to_modify_buffer): Don't call the function + ask-user-about-supersession-threat when CLASH_DETECTION is set. + 2002-02-13 Ben Wing * event-stream.c (reset_key_echo): diff -r 516c347c4479 -r 760db937b9ee src/insdel.c --- a/src/insdel.c Fri Feb 22 17:14:00 2002 +0000 +++ b/src/insdel.c Fri Feb 22 17:22:02 2002 +0000 @@ -2324,15 +2324,16 @@ if (!NILP (buf->filename) && lockit && BUF_SAVE_MODIFF (buf) >= BUF_MODIFF (buf)) { +#ifdef CLASH_DETECTION + if (!NILP (buf->file_truename)) + /* Make binding buffer-file-name to nil effective. */ + lock_file (buf->file_truename); +#else /* At least warn if this file has changed on disk since it was visited.*/ if (NILP (Fverify_visited_file_modtime (buffer)) && !NILP (Ffile_exists_p (buf->filename))) call1_in_buffer (buf, intern ("ask-user-about-supersession-threat"), buf->filename); -#ifdef CLASH_DETECTION - if (!NILP (buf->file_truename)) - /* Make binding buffer-file-name to nil effective. */ - lock_file (buf->file_truename); #endif /* not CLASH_DETECTION */ } UNGCPRO;