bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7547: 24.0.50; verify-visited-file-modtime no longer returns t for n


From: Glenn Morris
Subject: bug#7547: 24.0.50; verify-visited-file-modtime no longer returns t for non-existent file
Date: Thu, 09 Dec 2010 22:45:29 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

What's the value of modtime_size supposed to be in nonexistent files?
Undefined? It might be nice if it were -1, like modtime.

Maybe this works:

*** fileio.c    2010-12-07 21:00:53.000000000 -0800
--- fileio.c.~1~        2010-12-07 16:04:07.000000000 -0800
***************
*** 5091,5097 ****
           && (st.st_mtime == b->modtime + 1
               || st.st_mtime == b->modtime - 1)))
        && (st.st_size == b->modtime_size
!           || b->modtime_size < 0))
      return Qt;
    return Qnil;
  }
--- 5085,5091 ----
           && (st.st_mtime == b->modtime + 1
               || st.st_mtime == b->modtime - 1)))
        && (st.st_size == b->modtime_size
!           || b->modtime_size < 0 || st.st_mtime < 0))
      return Qt;
    return Qnil;
  }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]