]> git.eshelyaron.com Git - emacs.git/commitdiff
src/insdel.c (replace_range): Remove comment
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 30 Mar 2025 04:10:12 +0000 (00:10 -0400)
committerEshel Yaron <me@eshelyaron.com>
Mon, 31 Mar 2025 08:54:36 +0000 (10:54 +0200)
It should have been removed in commit b16afa45bb6a.

(cherry picked from commit e1b15d58b508da279162c585b6b3783f9e267427)

src/insdel.c

index 053b2d4638059ad2b26d2877f51a9692236a1409..6656221faa1b317dbaa00ccf75471281efdec515 100644 (file)
@@ -1553,9 +1553,6 @@ replace_range (ptrdiff_t from, ptrdiff_t to, Lisp_Object new,
   if (to < GPT)
     gap_left (to, to_byte, 0);
 
-  /* Even if we don't record for undo, we must keep the original text
-     because we may have to recover it because of inappropriate byte
-     combining.  */
   if (! EQ (BVAR (current_buffer, undo_list), Qt))
     deletion = make_buffer_string_both (from, from_byte, to, to_byte, 1);