diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-11-04 15:00:25 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-11-04 15:00:25 +0200 |
commit | bd886c6f566cb1e79e388305f8be05e55753b730 (patch) | |
tree | 7e5f7161a7f0e6398de42b94b79385d5b183be1a /src/cmds.c | |
parent | e973c5f5f43ad4d6c98995eea269509b8a258781 (diff) | |
download | emacs-bd886c6f566cb1e79e388305f8be05e55753b730.tar.gz |
Allow 'make-string' callers force creation of multibyte strings
* src/alloc.c (Fmake_string): Accept additional argument
MULTIBYTE, and produce a multibyte string if it is non-nil.
(make_event_array):
* src/lread.c (read0):
* src/editfns.c (Ftranslate_region_internal):
* src/coding.c (Fdefine_coding_system_internal):
* src/cmds.c (internal_self_insert):
* src/xdisp.c (build_desired_tool_bar_string)
(store_mode_line_string): All C callers changed.
* doc/lispref/strings.texi (Creating Strings): Document the new
optional argument.
* etc/NEWS: Mention the new optional argument.
* lisp/ruler-mode.el (ruler-mode-ruler): Call make-string with the
3rd argument non-nil.
Diffstat (limited to 'src/cmds.c')
-rw-r--r-- | src/cmds.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmds.c b/src/cmds.c index e4c0c866916..f76fe873720 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -439,12 +439,13 @@ internal_self_insert (int c, EMACS_INT n) int mc = ((NILP (BVAR (current_buffer, enable_multibyte_characters)) && SINGLE_BYTE_CHAR_P (c)) ? UNIBYTE_TO_CHAR (c) : c); - Lisp_Object string = Fmake_string (make_number (n), make_number (mc)); + Lisp_Object string = Fmake_string (make_number (n), make_number (mc), + Qnil); if (spaces_to_insert) { tem = Fmake_string (make_number (spaces_to_insert), - make_number (' ')); + make_number (' '), Qnil); string = concat2 (string, tem); } |