emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r105742: * src/fileio.c (Finsert_file


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r105742: * src/fileio.c (Finsert_file_contents): Don't assume beg_offset is 0.
Date: Sun, 11 Sep 2011 22:22:22 -0400
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 105742
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Sun 2011-09-11 22:22:22 -0400
message:
  * src/fileio.c (Finsert_file_contents): Don't assume beg_offset is 0.
modified:
  src/ChangeLog
  src/fileio.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-09-11 22:04:52 +0000
+++ b/src/ChangeLog     2011-09-12 02:22:22 +0000
@@ -1,3 +1,7 @@
+2011-09-12  Stefan Monnier  <address@hidden>
+
+       * fileio.c (Finsert_file_contents): Don't assume beg_offset is 0.
+
 2011-09-11  Chong Yidong  <address@hidden>
 
        * minibuf.c (Fread_from_minibuffer): Doc fix.

=== modified file 'src/fileio.c'
--- a/src/fileio.c      2011-09-11 14:49:24 +0000
+++ b/src/fileio.c      2011-09-12 02:22:22 +0000
@@ -3546,7 +3546,7 @@
       immediate_quit = 0;
       /* If the file matches the buffer completely,
         there's no need to replace anything.  */
-      if (same_at_start - BEGV_BYTE == end_offset)
+      if (same_at_start - BEGV_BYTE == end_offset - beg_offset)
        {
          emacs_close (fd);
          specpdl_ptr--;


reply via email to

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