Mercurial > hg > xemacs-beta
diff src/insdel.c @ 758:760db937b9ee
[xemacs-hg @ 2002-02-22 17:22:00 by michaels]
2001-09-04 Daiki Ueno <ueno@unixuser.org>
* insdel.c (prepare_to_modify_buffer): Don't call the function
ask-user-about-supersession-threat when CLASH_DETECTION is set.
author | michaels |
---|---|
date | Fri, 22 Feb 2002 17:22:02 +0000 |
parents | fdefd0186b75 |
children | 943eaba38521 |
line wrap: on
line diff
--- 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;