]> git.eshelyaron.com Git - emacs.git/commit
(concat): Move the test for all nil in `append'
authorKarl Heuer <kwzh@gnu.org>
Sun, 18 Jan 1998 04:37:08 +0000 (04:37 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sun, 18 Jan 1998 04:37:08 +0000 (04:37 +0000)
commit09ab3c3bdbef1f042638f2a8db4d87b1ba5dea1c
tree13525f624d8b6d451865e517e113ecb0277cc04e
parentf6e7abc110d43407fbd1b61790cefa4c381614bb
(concat): Move the test for all nil in `append'
back to the right place.
Always compute result_len_byte as for a multibyte string.  Then,
if the result will be single-byte, don't use that computation.
When converting single-byte to multibyte, don't use copy_text.
Do use copy_text between single-byte string and multibyte string.

(Fstring_make_multibyte, Fstring_make_unibyte): New functions.
(syms_of_fns): defsubr them.

(string_char_to_byte): Count from the beginning or the end,
whichever is closer.  Keep a cache of recent values.
(string_byte_to_char): Likewise.

(Fstring_lessp): Compare the strings char by char.
src/fns.c