[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r105721: Fix bug #9139 with revisitin
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r105721: Fix bug #9139 with revisiting non-existent files. |
Date: |
Sun, 11 Sep 2011 01:52:07 -0400 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 105721
fixes bug(s): http://debbugs.gnu.org/9139
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sun 2011-09-11 01:52:07 -0400
message:
Fix bug #9139 with revisiting non-existent files.
src/fileio.c (Finsert_file_contents): If the file cannot be opened,
set its "size" to -1. This will set the modtime_size field of
the corresponding buffer to -1, which is what
verify-visited-file-modtime expects for files that do not exist.
modified:
src/ChangeLog
src/fileio.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-09-11 00:41:48 +0000
+++ b/src/ChangeLog 2011-09-11 05:52:07 +0000
@@ -1,3 +1,11 @@
+2011-09-11 Eli Zaretskii <address@hidden>
+
+ * fileio.c (Finsert_file_contents): If the file cannot be opened,
+ set its "size" to -1. This will set the modtime_size field of
+ the corresponding buffer to -1, which is what
+ verify-visited-file-modtime expects for files that do not exist.
+ (Bug#9139)
+
2011-09-11 Paul Eggert <address@hidden>
* keymap.h (KEY_DESCRIPTION_SIZE, push_key_description): Move decls
=== modified file 'src/fileio.c'
--- a/src/fileio.c 2011-09-09 01:06:52 +0000
+++ b/src/fileio.c 2011-09-11 05:52:07 +0000
@@ -3253,6 +3253,7 @@
if (NILP (visit))
report_file_error ("Opening input file", Fcons (orig_filename, Qnil));
st.st_mtime = -1;
+ st.st_size = -1;
how_much = 0;
if (!NILP (Vcoding_system_for_read))
Fset (Qbuffer_file_coding_system, Vcoding_system_for_read);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r105721: Fix bug #9139 with revisiting non-existent files.,
Eli Zaretskii <=