Mercurial > emacs
comparison src/fileio.c @ 83213:d83f49cefda3
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-593
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-594
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-595
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-596
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-597
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-598
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-599
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-600
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-601
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-602
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-603
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-42
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-43
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-44
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-253
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Thu, 07 Oct 2004 16:52:19 +0000 |
parents | f70dc61a797f b2a68db48f92 |
children | 7a0245dd1848 |
comparison
equal
deleted
inserted
replaced
83212:f70dc61a797f | 83213:d83f49cefda3 |
---|---|
5718 /* Get visited file's mode to become the auto save file's mode. */ | 5718 /* Get visited file's mode to become the auto save file's mode. */ |
5719 if (! NILP (current_buffer->filename) | 5719 if (! NILP (current_buffer->filename) |
5720 && stat (SDATA (current_buffer->filename), &st) >= 0) | 5720 && stat (SDATA (current_buffer->filename), &st) >= 0) |
5721 /* But make sure we can overwrite it later! */ | 5721 /* But make sure we can overwrite it later! */ |
5722 auto_save_mode_bits = st.st_mode | 0600; | 5722 auto_save_mode_bits = st.st_mode | 0600; |
5723 else if (! NILP (current_buffer->filename)) | |
5724 /* Remote files don't cooperate with stat. */ | |
5725 auto_save_mode_bits = XINT (Ffile_modes (current_buffer->filename)) | 0600; | |
5723 else | 5726 else |
5724 auto_save_mode_bits = 0666; | 5727 auto_save_mode_bits = 0666; |
5725 | 5728 |
5726 return | 5729 return |
5727 Fwrite_region (Qnil, Qnil, | 5730 Fwrite_region (Qnil, Qnil, |