1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00
Commit Graph

157 Commits

Author SHA1 Message Date
Andreas Schwab
21ab867fb9 (Fsubstring, substring_both, Fchar_table_range,
Fset_char_table_range): Fix mixing of Lisp_Object and int.
1998-04-14 12:59:32 +00:00
Andreas Schwab
dfcf069d56 Fix -Wimplicit warnings. 1998-04-14 12:25:56 +00:00
Andreas Schwab
96ced23cf1 (Flength): Doc fix. 1998-04-06 09:33:40 +00:00
Kenichi Handa
fa25174026 (Fstring_as_unibyte): Set size_byte field to -1. 1998-04-06 05:06:12 +00:00
Richard M. Stallman
9658795ce8 (Fstring_as_multibyte): Never return unibyte string unchanged.
Set size_byte field.
1998-04-02 22:48:51 +00:00
Richard M. Stallman
1d969a2339 (char_table_translate): New function. 1998-04-02 08:10:56 +00:00
Richard M. Stallman
b10b2daa18 (substring_both, Fsubstring): Use make_specified_string.
(concat): Make string result unibyte or multibyte as appropriate.
1998-03-21 18:09:01 +00:00
Richard M. Stallman
fc932ac6c7 Use STRING_BYTES and SET_STRING_BYTES. 1998-03-21 07:06:14 +00:00
Kenichi Handa
88ab3cc133 (Fstring_as_multibyte): Call multibyte_chars_in_text
instead of chars_in_text because we must ignore
enable-multibyte-characters here.
1998-03-19 07:34:29 +00:00
Kenichi Handa
2cef5737de (DEFAULT_NONASCII_INSERT_OFFSET): Macro definition is
moved to charset.h.
(concat): Use unibyte_char_to_multibyte.
1998-03-03 01:29:16 +00:00
Richard M. Stallman
4864692429 (internal_equal): compare_window_configurations takes new arg. 1998-03-02 19:10:51 +00:00
Karl Heuer
33aa088183 (mapcar1): Handle bool-vectors.
(Fmapconcat, Fmapcar): Doc fixes.
(Flength): For char-table, length is based on max valid char code.
1998-02-27 21:52:08 +00:00
Kenichi Handa
0ab9dd767e (Fset_char_table_default): For an invalid character, call
invalid_character.
1998-02-20 01:40:47 +00:00
Kenichi Handa
eaf17c6b64 (Fstring_bytes): Declare arg STRING as Lisp_Object. 1998-02-10 04:08:26 +00:00
Kenichi Handa
bca7646d48 (concat): Use Vnonascii_translate_table. 1998-02-10 04:05:47 +00:00
Richard M. Stallman
026f59ce86 (Fstring_bytes): New function.
(syms_of_fns): defsubr it.
1998-02-08 20:58:53 +00:00
Richard M. Stallman
6a7df83b34 (concat): Handle bool-vectors correctly. 1998-02-02 01:06:29 +00:00
Richard M. Stallman
6d4752042a (concat): If making a string, a nonempty bool-vector is error.
(string_make_multibyte): In all-ASCII case, return orig STRING.

(Fstring_as_unibyte): New function.
(Fstring_as_multibyte): New function.
(syms_of_fns): defsubr them.
1998-02-02 01:03:10 +00:00
Richard M. Stallman
ed73fcc1fa (internal_equal): Use compare_window_configurations. 1998-01-26 08:47:06 +00:00
Kenichi Handa
0ab6a3d896 (mapcar1): Keep i' in i_before' before `i' is
incremented by FETCH_STRING_CHAR_ADVANCE.
1998-01-22 01:26:45 +00:00
Richard M. Stallman
31c8f88101 Update copyright year. 1998-01-21 22:22:17 +00:00
Richard M. Stallman
06f57aa7fd (concat): Use unibyte_char_to_multibyte.
Fix lossage in installing previous patch.
1998-01-21 21:43:30 +00:00
Karl Heuer
09ab3c3bdb (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.
1998-01-18 04:37:08 +00:00
Kenichi Handa
470730a822 (concat): Check STRINGP before increasing result_len_byte. 1998-01-12 05:49:45 +00:00
Richard M. Stallman
ea35ce3d99 (map_char_table): Unconditionally consider non-ASCII charsets.
(Fsubstring): Use make_multibyte_string.
(concat, Fsubstring, internal_equal, mapcar1):
Distinguish bytes and chars when indexing strings.
(Fstring_equal, Fstring_lessp): Likewise.
(substring_both): New function.
(string_make_multibyte, string_make_unibyte): New functions.
(string_char_to_byte, string_byte_to_char): New functions.
1998-01-09 22:41:43 +00:00
Richard M. Stallman
6ced1284f3 (internal_equal): For markers, use bytepos instead of bufpos. 1998-01-02 21:28:56 +00:00
Andreas Schwab
22e6f12b3b * fns.c (map_char_table): Protoize parameter. 1997-11-21 14:58:22 +00:00
Kenichi Handa
de86fcba73 (map_char_table): Do not operate on invalid characters.
Pay attention to `enable-multibyte-characters'.
1997-10-23 12:01:50 +00:00
Karl Heuer
b4f334f797 (Qwidget_type): New variable.
(widget-plist-member, widget-put, widget-get, widget-apply): Move
here from lisp/wid-edit.el; translated into C for efficiency.
(syms_of_fns): Initialize Qwidget_type; defsubr new functions.
1997-09-30 07:15:28 +00:00
Richard M. Stallman
0de441b6f6 (concat): Fix use of Fchar_bytes. 1997-08-27 17:21:54 +00:00
Kenichi Handa
b24014d4ab (Fyes_or_no_p): Call Fread_from_minibuffer
with INHERIT-INPUT-METHOD nil.
1997-08-26 11:42:33 +00:00
Richard M. Stallman
0c57d6fdae (Flength): Doc fix. 1997-08-16 16:21:38 +00:00
Kenichi Handa
dec58e65b1 (concat): Pay attention to multibyte characters when
TARGET_TYPE is Lisp_String.
1997-08-10 04:13:19 +00:00
Richard M. Stallman
fdb5bec046 (Frequire): Don't insist on a suffix
if the file name argument was explicitly specified.
1997-08-08 20:06:34 +00:00
Richard M. Stallman
14a136b327 (Frequire): Pass t for the MUST-SUFFIX arg to Fload. 1997-08-04 03:00:36 +00:00
Richard M. Stallman
1eb569c521 (syms_of_fns): Fix previous change. 1997-07-09 00:33:33 +00:00
Richard M. Stallman
2e34157cd9 Fix bugs with inappropriate mixing of Lisp_Object with int. 1997-07-04 20:44:52 +00:00
Richard M. Stallman
bdd8d692f3 (Fy_or_n_p, Fyes_or_no_p): Obey use_dialog_box.
(use_dialog_box): New variable, controls whether to use dialog boxes.
(syms_of_fns): Set up Lisp variable.

(concat): Use XCONS rather than Fcar, Fcdr--for known cons.
(Fassq, assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq): Likewise.
(Fdelete, Fplist_get, mapcar1, Fmember, Fmemq): Likewise.
1997-07-02 06:23:21 +00:00
Richard M. Stallman
9d14ae763f (Freverse): Simplify. 1997-06-23 18:56:17 +00:00
Kenichi Handa
5b6dddaac2 (concat): Pay attention to multibyte characters when
TARGET_TYPE is Lisp_String.
1997-06-18 13:09:05 +00:00
Richard M. Stallman
09ee221d20 (map_char_table): Use XSETFASTINT. 1997-06-02 00:33:14 +00:00
Richard M. Stallman
e814a15920 (Fchar_table_range, Fset_char_table_range):
Make one-element vector work for RANGE.
1997-05-30 05:11:26 +00:00
Kenichi Handa
7e798f25b7 (map_char_table): For sub char-table, index should be
start from 0 (not from 32) considering a composite character.
(Fmap_char_table): Doc-string adjusted.  The variable indices is
declared as an array of Lisp_Object.
1997-05-28 04:36:22 +00:00
Richard M. Stallman
36febf9e9b (internal_equal): When comparing strings, ignore text props.
Friedman offers to fix anything that has trouble due to this.
1997-05-23 17:32:41 +00:00
Kenichi Handa
e1335ba243 (copy_sub_char_table): Declare the argument ARG as
Lisp_Object.
(Fset_char_table_default): New function.
1997-05-16 00:43:05 +00:00
Richard M. Stallman
69b3a14b48 (Fcopy_sequence): Correctly copy the char-table contents. 1997-05-15 18:39:33 +00:00
Richard M. Stallman
46ed603f3e (map_char_table): New arg SUBTABLE. Callers changed.
Pass the whole chartable to C_FUNCTION.
Pass index character as a Lisp_Object.
1997-05-13 19:51:29 +00:00
Kenichi Handa
3720677d59 (copy_sub_char_table): New function.
(Fcopy_sequence): Call copy_sub_char_table for copying a sub char table.
(Fchar_table_range, Fset_char_table_range, map_char_table,
Fmap_char_table): Handle multibyte characters correctly.
1997-04-07 07:12:13 +00:00
Karl Heuer
25c307484f (Fcopy_sequence): Delete unused variable.
(Fchar_table_extra_slot, Fset_char_table_extra_slot): Doc fix.
(map_char_table): When expanding indices, don't increase depth;
that's amount used, not amount allocated.
1997-04-03 22:08:30 +00:00
Kenichi Handa
a8283a4a98 (map_char_table): Handle multibyte characters. 1997-03-18 23:31:34 +00:00