emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r112794: * fileio.c (Finsert_file_con


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r112794: * fileio.c (Finsert_file_contents): Remove unused local.
Date: Thu, 30 May 2013 18:31:10 -0700
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 112794
fixes bug: http://debbugs.gnu.org/8447
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Thu 2013-05-30 18:31:10 -0700
message:
  * fileio.c (Finsert_file_contents): Remove unused local.
modified:
  src/ChangeLog
  src/fileio.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-05-29 16:48:42 +0000
+++ b/src/ChangeLog     2013-05-31 01:31:10 +0000
@@ -1,3 +1,7 @@
+2013-05-31  Paul Eggert  <address@hidden>
+
+       * fileio.c (Finsert_file_contents): Remove unused local (Bug#8447).
+
 2013-05-29  Eli Zaretskii  <address@hidden>
 
        * Makefile.in (mostlyclean): Remove *.res files.

=== modified file 'src/fileio.c'
--- a/src/fileio.c      2013-05-29 01:07:53 +0000
+++ b/src/fileio.c      2013-05-31 01:31:10 +0000
@@ -3489,7 +3489,6 @@
   EMACS_TIME mtime;
   int fd;
   ptrdiff_t inserted = 0;
-  bool nochange = 0;
   ptrdiff_t how_much;
   off_t beg_offset, end_offset;
   int unprocessed;
@@ -4060,9 +4059,7 @@
       if (bufpos == inserted)
        {
          /* Truncate the buffer to the size of the file.  */
-         if (same_at_start == same_at_end)
-           nochange = 1;
-         else
+         if (same_at_start != same_at_end)
            del_range_byte (same_at_start, same_at_end, 0);
          inserted = 0;
 


reply via email to

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