]> code.delx.au - gnu-emacs/commitdiff
* insdel.c (insert_1): Remove.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 25 Jan 2013 17:13:31 +0000 (21:13 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 25 Jan 2013 17:13:31 +0000 (21:13 +0400)
* lisp.h (insert_1): Remove prototype.
* xdisp.c (message_dolog): Adjust users to call insert_1_both.

src/ChangeLog
src/insdel.c
src/lisp.h
src/xdisp.c

index c6152668a220e9d43ff853f61870077f094588ff..e147889f79651843c290b6caf5dfa392bf0e7bd5 100644 (file)
@@ -6,6 +6,9 @@
 
        * font.c (num_fonts): Remove the leftover from old
        debugging code.  Adjust comment style here and there.
+       * insdel.c (insert_1): Remove.
+       * lisp.h (insert_1): Remove prototype.
+       * xdisp.c (message_dolog): Adjust users to call insert_1_both.
 
 2013-01-25  Eli Zaretskii  <eliz@gnu.org>
 
index 303247816caa3f584998c78ec5c779a0acac5eed..4cf4e6452a1cd9e0942cf25180346a7acb779d86 100644 (file)
@@ -658,17 +658,6 @@ insert_before_markers_and_inherit (const char *string,
     }
 }
 
-/* Subroutine used by the insert functions above.  */
-
-void
-insert_1 (const char *string, ptrdiff_t nbytes,
-         bool inherit, bool prepare, bool before_markers)
-{
-  insert_1_both (string, chars_in_text ((unsigned char *) string, nbytes),
-                nbytes, inherit, prepare, before_markers);
-}
-
-\f
 #ifdef BYTE_COMBINING_DEBUG
 
 /* See if the bytes before POS/POS_BYTE combine with bytes
index 04cefc8fe664beeca3151b4c552a20eb5a28d41f..2e9088f1834f5d538a2f6e047bc1fb935816ddf3 100644 (file)
@@ -2874,7 +2874,6 @@ extern int count_combining_after (const unsigned char *,
                                  ptrdiff_t, ptrdiff_t, ptrdiff_t);
 extern void insert (const char *, ptrdiff_t);
 extern void insert_and_inherit (const char *, ptrdiff_t);
-extern void insert_1 (const char *, ptrdiff_t, bool, bool, bool);
 extern void insert_1_both (const char *, ptrdiff_t, ptrdiff_t,
                           bool, bool, bool);
 extern void insert_from_gap (ptrdiff_t, ptrdiff_t);
index 68ee4417c723728e3d6339879b087cea14b638db..0169238e994bde6b94858cbabb6a84d0aa893c7b 100644 (file)
@@ -9462,13 +9462,14 @@ message_dolog (const char *m, ptrdiff_t nbytes, int nlflag, int multibyte)
            }
        }
       else if (nbytes)
-       insert_1 (m, nbytes, 1, 0, 0);
+       insert_1_both (m, chars_in_text (msg, nbytes), nbytes, 1, 0, 0);
 
       if (nlflag)
        {
          ptrdiff_t this_bol, this_bol_byte, prev_bol, prev_bol_byte;
          printmax_t dups;
-         insert_1 ("\n", 1, 1, 0, 0);
+
+         insert_1_both ("\n", 1, 1, 1, 0, 0);
 
          scan_newline (Z, Z_BYTE, BEG, BEG_BYTE, -2, 0);
          this_bol = PT;
@@ -9497,7 +9498,7 @@ message_dolog (const char *m, ptrdiff_t nbytes, int nlflag, int multibyte)
                         change message_log_check_duplicate.  */
                      int duplen = sprintf (dupstr, " [%"pMd" times]", dups);
                      TEMP_SET_PT_BOTH (Z - 1, Z_BYTE - 1);
-                     insert_1 (dupstr, duplen, 1, 0, 1);
+                     insert_1_both (dupstr, duplen, duplen, 1, 0, 1);
                    }
                }
            }