changeset 10331:2ae69efc3e8b

Use SAVE_MODIFF and BUF_SAVE_MODIFF instead of direct access to the save_modiff field.
author Richard M. Stallman <rms@gnu.org>
date Wed, 04 Jan 1995 19:08:56 +0000
parents 240a2c88d439
children e14daed4a820
files src/filelock.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Wed Jan 04 07:19:10 1995 +0000
+++ b/src/filelock.c	Wed Jan 04 19:08:56 1995 +0000
@@ -381,7 +381,7 @@
   for (tail = Vbuffer_alist; GC_CONSP (tail); tail = XCONS (tail)->cdr)
     {
       b = XBUFFER (XCONS (XCONS (tail)->car)->cdr);
-      if (STRINGP (b->filename) && b->save_modified < BUF_MODIFF (b))
+      if (STRINGP (b->filename) && BUF_SAVE_MODIFF (b) < BUF_MODIFF (b))
 	unlock_file (b->filename);
     }
 }
@@ -399,7 +399,7 @@
     fn = current_buffer->filename;
   else
     CHECK_STRING (fn, 0);
-  if (current_buffer->save_modified < MODIFF
+  if (SAVE_MODIFF < MODIFF
       && !NILP (fn))
     lock_file (fn);
   return Qnil;    
@@ -411,8 +411,8 @@
 if it should normally be locked.")
   ()
 {
-  if (current_buffer->save_modified < MODIFF &&
-      STRINGP (current_buffer->filename))
+  if (SAVE_MODIFF < MODIFF
+      && STRINGP (current_buffer->filename))
     unlock_file (current_buffer->filename);
   return Qnil;
 }
@@ -423,8 +423,8 @@
 unlock_buffer (buffer)
      struct buffer *buffer;
 {
-  if (buffer->save_modified < BUF_MODIFF (buffer) &&
-      STRINGP (buffer->filename))
+  if (BUF_SAVE_MODIFF (buffer) < BUF_MODIFF (buffer)
+      && STRINGP (buffer->filename))
     unlock_file (buffer->filename);
 }