Mercurial > emacs
comparison src/buffer.c @ 24520:e8b7cb3fac8c
(Fset_buffer_modified_p): Don't lock or unlock
if buffer-file-name is nil.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 26 Mar 1999 17:55:42 +0000 |
parents | 3c42b33fb636 |
children | a9eb0deae6c0 |
comparison
equal
deleted
inserted
replaced
24519:2a1ffba95a70 | 24520:e8b7cb3fac8c |
---|---|
805 #ifdef CLASH_DETECTION | 805 #ifdef CLASH_DETECTION |
806 /* If buffer becoming modified, lock the file. | 806 /* If buffer becoming modified, lock the file. |
807 If buffer becoming unmodified, unlock the file. */ | 807 If buffer becoming unmodified, unlock the file. */ |
808 | 808 |
809 fn = current_buffer->file_truename; | 809 fn = current_buffer->file_truename; |
810 if (!NILP (fn)) | 810 /* Test buffer-file-name so that binding it to nil is effective. */ |
811 if (!NILP (fn) && ! NILP (current_buffer->filename)) | |
811 { | 812 { |
812 already = SAVE_MODIFF < MODIFF; | 813 already = SAVE_MODIFF < MODIFF; |
813 if (!already && !NILP (flag)) | 814 if (!already && !NILP (flag)) |
814 lock_file (fn); | 815 lock_file (fn); |
815 else if (already && NILP (flag)) | 816 else if (already && NILP (flag)) |