Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/src/buffer.c Fri Mar 26 17:53:18 1999 +0000 +++ b/src/buffer.c Fri Mar 26 17:55:42 1999 +0000 @@ -807,7 +807,8 @@ If buffer becoming unmodified, unlock the file. */ fn = current_buffer->file_truename; - if (!NILP (fn)) + /* Test buffer-file-name so that binding it to nil is effective. */ + if (!NILP (fn) && ! NILP (current_buffer->filename)) { already = SAVE_MODIFF < MODIFF; if (!already && !NILP (flag))
