emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r111459: * insdel.c (make_gap_larger)


From: Dmitry Antipov
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111459: * insdel.c (make_gap_larger): Fix comment because gap_left doesn't
Date: Wed, 09 Jan 2013 18:08:49 +0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111459
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Wed 2013-01-09 18:08:49 +0400
message:
  * insdel.c (make_gap_larger): Fix comment because gap_left doesn't
  adjust markers.
  (make_gap_smaller): Likewise for gap_right.
modified:
  src/ChangeLog
  src/insdel.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-01-09 13:50:22 +0000
+++ b/src/ChangeLog     2013-01-09 14:08:49 +0000
@@ -6,7 +6,7 @@
        * editfns.c (Fbuffer_size): Rename from Fbufsize to fit the common
        naming convention.
        (syms_of_editfns): Adjust defsubr.  Drop commented-out obsolete code.
-       * insdel.c (make_gap_larger): Use GAP_BYTES_DFL.
+       * insdel.c (make_gap_larger): Use GAP_BYTES_DFL.  Adjust comment.
        (make_gap_smaller): Use GAP_BYTES_MIN.  Adjust comment.
        (make_gap_1): New function to adjust the gap of any buffer.
        * coding.c (coding_alloc_by_making_gap): Use it.

=== modified file 'src/insdel.c'
--- a/src/insdel.c      2013-01-09 13:50:22 +0000
+++ b/src/insdel.c      2013-01-09 14:08:49 +0000
@@ -412,8 +412,7 @@
   GPT_BYTE = Z_BYTE + GAP_SIZE;
   GAP_SIZE = nbytes_added;
 
-  /* Move the new gap down to be consecutive with the end of the old one.
-     This adjusts the markers properly too.  */
+  /* Move the new gap down to be consecutive with the end of the old one.  */
   gap_left (real_gap_loc + old_gap_size, real_gap_loc_byte + old_gap_size, 1);
 
   /* Now combine the two into one large gap.  */
@@ -467,8 +466,7 @@
   Z_BYTE += new_gap_size;
   GAP_SIZE = nbytes_removed;
 
-  /* Move the unwanted pretend gap to the end of the buffer.  This
-     adjusts the markers properly too.  */
+  /* Move the unwanted pretend gap to the end of the buffer.  */
   gap_right (Z, Z_BYTE);
 
   enlarge_buffer_text (current_buffer, -nbytes_removed);


reply via email to

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