[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/fileio.c [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/fileio.c [lexbind] |
Date: |
Wed, 06 Oct 2004 01:42:49 -0400 |
Index: emacs/src/fileio.c
diff -c emacs/src/fileio.c:1.449.2.19 emacs/src/fileio.c:1.449.2.20
*** emacs/src/fileio.c:1.449.2.19 Thu Sep 16 00:15:01 2004
--- emacs/src/fileio.c Wed Oct 6 05:23:55 2004
***************
*** 4260,4266 ****
if (how_much < 0)
{
xfree (conversion_buffer);
!
if (how_much == -1)
error ("IO error reading %s: %s",
SDATA (orig_filename), emacs_strerror (errno));
--- 4260,4266 ----
if (how_much < 0)
{
xfree (conversion_buffer);
! coding_free_composition_data (&coding);
if (how_much == -1)
error ("IO error reading %s: %s",
SDATA (orig_filename), emacs_strerror (errno));
***************
*** 4282,4287 ****
--- 4282,4288 ----
if (bufpos == inserted)
{
xfree (conversion_buffer);
+ coding_free_composition_data (&coding);
emacs_close (fd);
specpdl_ptr--;
/* Truncate the buffer to the size of the file. */
***************
*** 5717,5722 ****
--- 5718,5726 ----
&& stat (SDATA (current_buffer->filename), &st) >= 0)
/* But make sure we can overwrite it later! */
auto_save_mode_bits = st.st_mode | 0600;
+ else if (! NILP (current_buffer->filename))
+ /* Remote files don't cooperate with stat. */
+ auto_save_mode_bits = XINT (Ffile_modes (current_buffer->filename)) |
0600;
else
auto_save_mode_bits = 0666;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/src/fileio.c [lexbind],
Miles Bader <=