Mercurial > emacs
changeset 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 | 2a1ffba95a70 |
children | f4dd298e46a3 |
files | src/buffer.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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))