From: Richard M. Stallman Date: Sat, 25 Apr 1998 23:32:56 +0000 (+0000) Subject: (insert_from_string, insert_from_string_before_markers): X-Git-Tag: emacs-20.3~1311 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=62b82678be0be828d34c58ca547af421a2e91fab;p=emacs.git (insert_from_string, insert_from_string_before_markers): Don't special case LENGTH = 0. (insert_from_buffer): Likewise. --- diff --git a/src/insdel.c b/src/insdel.c index 030b87385bd..813e98cff9c 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -1130,13 +1130,10 @@ insert_from_string (string, pos, pos_byte, length, length_byte, inherit) register int pos, pos_byte, length, length_byte; int inherit; { - if (length > 0) - { - int opoint = PT; - insert_from_string_1 (string, pos, pos_byte, length, length_byte, - inherit, 0); - signal_after_change (opoint, 0, PT - opoint); - } + int opoint = PT; + insert_from_string_1 (string, pos, pos_byte, length, length_byte, + inherit, 0); + signal_after_change (opoint, 0, PT - opoint); } /* Like `insert_from_string' except that all markers pointing @@ -1149,13 +1146,10 @@ insert_from_string_before_markers (string, pos, pos_byte, register int pos, pos_byte, length, length_byte; int inherit; { - if (length > 0) - { - int opoint = PT; - insert_from_string_1 (string, pos, pos_byte, length, length_byte, - inherit, 1); - signal_after_change (opoint, 0, PT - opoint); - } + int opoint = PT; + insert_from_string_1 (string, pos, pos_byte, length, length_byte, + inherit, 1); + signal_after_change (opoint, 0, PT - opoint); } /* Subroutine of the insertion functions above. */ @@ -1311,13 +1305,10 @@ insert_from_buffer (buf, charpos, nchars, inherit) int charpos, nchars; int inherit; { - if (nchars > 0) - { - int opoint = PT; + int opoint = PT; - insert_from_buffer_1 (buf, charpos, nchars, inherit); - signal_after_change (opoint, 0, PT - opoint); - } + insert_from_buffer_1 (buf, charpos, nchars, inherit); + signal_after_change (opoint, 0, PT - opoint); } static void