diff options
| author | Dmitry Antipov | 2013-01-25 21:13:31 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-01-25 21:13:31 +0400 |
| commit | 59e624b37b84a4915d1f05e8fe77e48d941499f4 (patch) | |
| tree | 84828b20ae719b29ac72cd39322281db7fc44e4d /src | |
| parent | 1314a64c2626e710f2f3271729791882f5b475eb (diff) | |
| download | emacs-59e624b37b84a4915d1f05e8fe77e48d941499f4.tar.gz emacs-59e624b37b84a4915d1f05e8fe77e48d941499f4.zip | |
* insdel.c (insert_1): Remove.
* lisp.h (insert_1): Remove prototype.
* xdisp.c (message_dolog): Adjust users to call insert_1_both.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/insdel.c | 11 | ||||
| -rw-r--r-- | src/lisp.h | 1 | ||||
| -rw-r--r-- | src/xdisp.c | 7 |
4 files changed, 7 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c6152668a22..e147889f796 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -6,6 +6,9 @@ | |||
| 6 | 6 | ||
| 7 | * font.c (num_fonts): Remove the leftover from old | 7 | * font.c (num_fonts): Remove the leftover from old |
| 8 | debugging code. Adjust comment style here and there. | 8 | debugging code. Adjust comment style here and there. |
| 9 | * insdel.c (insert_1): Remove. | ||
| 10 | * lisp.h (insert_1): Remove prototype. | ||
| 11 | * xdisp.c (message_dolog): Adjust users to call insert_1_both. | ||
| 9 | 12 | ||
| 10 | 2013-01-25 Eli Zaretskii <eliz@gnu.org> | 13 | 2013-01-25 Eli Zaretskii <eliz@gnu.org> |
| 11 | 14 | ||
diff --git a/src/insdel.c b/src/insdel.c index 303247816ca..4cf4e6452a1 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -658,17 +658,6 @@ insert_before_markers_and_inherit (const char *string, | |||
| 658 | } | 658 | } |
| 659 | } | 659 | } |
| 660 | 660 | ||
| 661 | /* Subroutine used by the insert functions above. */ | ||
| 662 | |||
| 663 | void | ||
| 664 | insert_1 (const char *string, ptrdiff_t nbytes, | ||
| 665 | bool inherit, bool prepare, bool before_markers) | ||
| 666 | { | ||
| 667 | insert_1_both (string, chars_in_text ((unsigned char *) string, nbytes), | ||
| 668 | nbytes, inherit, prepare, before_markers); | ||
| 669 | } | ||
| 670 | |||
| 671 | |||
| 672 | #ifdef BYTE_COMBINING_DEBUG | 661 | #ifdef BYTE_COMBINING_DEBUG |
| 673 | 662 | ||
| 674 | /* See if the bytes before POS/POS_BYTE combine with bytes | 663 | /* See if the bytes before POS/POS_BYTE combine with bytes |
diff --git a/src/lisp.h b/src/lisp.h index 04cefc8fe66..2e9088f1834 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2874,7 +2874,6 @@ extern int count_combining_after (const unsigned char *, | |||
| 2874 | ptrdiff_t, ptrdiff_t, ptrdiff_t); | 2874 | ptrdiff_t, ptrdiff_t, ptrdiff_t); |
| 2875 | extern void insert (const char *, ptrdiff_t); | 2875 | extern void insert (const char *, ptrdiff_t); |
| 2876 | extern void insert_and_inherit (const char *, ptrdiff_t); | 2876 | extern void insert_and_inherit (const char *, ptrdiff_t); |
| 2877 | extern void insert_1 (const char *, ptrdiff_t, bool, bool, bool); | ||
| 2878 | extern void insert_1_both (const char *, ptrdiff_t, ptrdiff_t, | 2877 | extern void insert_1_both (const char *, ptrdiff_t, ptrdiff_t, |
| 2879 | bool, bool, bool); | 2878 | bool, bool, bool); |
| 2880 | extern void insert_from_gap (ptrdiff_t, ptrdiff_t); | 2879 | extern void insert_from_gap (ptrdiff_t, ptrdiff_t); |
diff --git a/src/xdisp.c b/src/xdisp.c index 68ee4417c72..0169238e994 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -9462,13 +9462,14 @@ message_dolog (const char *m, ptrdiff_t nbytes, int nlflag, int multibyte) | |||
| 9462 | } | 9462 | } |
| 9463 | } | 9463 | } |
| 9464 | else if (nbytes) | 9464 | else if (nbytes) |
| 9465 | insert_1 (m, nbytes, 1, 0, 0); | 9465 | insert_1_both (m, chars_in_text (msg, nbytes), nbytes, 1, 0, 0); |
| 9466 | 9466 | ||
| 9467 | if (nlflag) | 9467 | if (nlflag) |
| 9468 | { | 9468 | { |
| 9469 | ptrdiff_t this_bol, this_bol_byte, prev_bol, prev_bol_byte; | 9469 | ptrdiff_t this_bol, this_bol_byte, prev_bol, prev_bol_byte; |
| 9470 | printmax_t dups; | 9470 | printmax_t dups; |
| 9471 | insert_1 ("\n", 1, 1, 0, 0); | 9471 | |
| 9472 | insert_1_both ("\n", 1, 1, 1, 0, 0); | ||
| 9472 | 9473 | ||
| 9473 | scan_newline (Z, Z_BYTE, BEG, BEG_BYTE, -2, 0); | 9474 | scan_newline (Z, Z_BYTE, BEG, BEG_BYTE, -2, 0); |
| 9474 | this_bol = PT; | 9475 | this_bol = PT; |
| @@ -9497,7 +9498,7 @@ message_dolog (const char *m, ptrdiff_t nbytes, int nlflag, int multibyte) | |||
| 9497 | change message_log_check_duplicate. */ | 9498 | change message_log_check_duplicate. */ |
| 9498 | int duplen = sprintf (dupstr, " [%"pMd" times]", dups); | 9499 | int duplen = sprintf (dupstr, " [%"pMd" times]", dups); |
| 9499 | TEMP_SET_PT_BOTH (Z - 1, Z_BYTE - 1); | 9500 | TEMP_SET_PT_BOTH (Z - 1, Z_BYTE - 1); |
| 9500 | insert_1 (dupstr, duplen, 1, 0, 1); | 9501 | insert_1_both (dupstr, duplen, duplen, 1, 0, 1); |
| 9501 | } | 9502 | } |
| 9502 | } | 9503 | } |
| 9503 | } | 9504 | } |