1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

20591 Commits

Author SHA1 Message Date
Kenichi Handa
21846016a4 (Fminibuffer_complete_word): Fix a bug of refering
`i'.  We must refer `i_byte' instead.
1998-01-12 05:49:45 +00:00
Kenichi Handa
470730a822 (concat): Check STRINGP before increasing result_len_byte. 1998-01-12 05:49:45 +00:00
Kenichi Handa
e68e61b5e0 Change "?\C-\ " to "?\C- " because "\ " is changed
to standing for nothing in lread.c (read_escape).
1998-01-12 05:48:48 +00:00
Dave Love
6e24ad221a (lm-get-package-name, lm-header,
lm-header-multiline, lm-summary, lm-version, lm-commentary):
Return string without properties.
(lm-get-header, lm-get-package-name, lm-crack-address,
lm-insert-at-column, lm-report-bug): Minor doc fixes.
1998-01-11 12:48:04 +00:00
Dave Love
a9d02884b4 (Fchar_valid_p): Fix bare newlines in doc string. 1998-01-11 12:26:21 +00:00
Richard M. Stallman
88bc3111a7 (Fcall_interactively): Allocate string by bytes.
Use message_with_string.
1998-01-09 23:33:09 +00:00
Richard M. Stallman
c872c6b297 (Fdirectory_files): Fix arg to compile_pattern. 1998-01-09 23:28:38 +00:00
Richard M. Stallman
5d967c7a10 (re_search_2): Fix call to CHAR_HEAD_P.
(re_match_2_internal): Use PTR_BYTE_POS and PT_BYTE.
1998-01-09 23:24:24 +00:00
Richard M. Stallman
e361a3c34d (x_load_font): Use string_byte. 1998-01-09 23:22:56 +00:00
Richard M. Stallman
0120fdf9e3 (lisp_data_to_selection_data): Use size_byte.
(Fx_store_cut_buffer_internal): Use size_byte.
(selection_data_to_lisp_data): Use make_multibyte_string.
1998-01-09 23:22:10 +00:00
Richard M. Stallman
0869c141aa (xmenu_show): Use size_byte of strings. 1998-01-09 23:21:17 +00:00
Richard M. Stallman
9f2a85b225 (x_create_bitmap_from_file): Use size_byte on strings.
(x_set_name, x_set_title, validate_x_resource_name): Likewise.
(Fx_get_resource, display_x_get_resource): Likewise.
(x_get_resource_string): Likewise.
1998-01-09 23:20:32 +00:00
Richard M. Stallman
0a9dc68b49 (message_dolog, message2): New arg MULTIBYTE.
Callers changed.
(message1, message1_nolog): String must be ASCII-only.
(message2, message2_nolog): Now static.
(x_consider_frame_title): Use size_byte.
(display_text_line): Likewise.
And scan Voverlay_arrow_string by bytes and chars.
(display_menu_bar): Call display_string with a byte size.
(display_mode_line): Call display_string with a byte size.
1998-01-09 23:19:42 +00:00
Richard M. Stallman
596ae0cfb6 (Fselect_window): Don't set OW->pointm if OW->buffer is nil.
(Fset_window_configuration): Set old selected window's pointm.
1998-01-09 23:18:35 +00:00
Richard M. Stallman
4101e6fea4 (skip_chars): Handle multibyte and unibyte strings
for either kind of buffer.  Scan string by bytes and chars.
1998-01-09 23:17:52 +00:00
Richard M. Stallman
a1b5012f8a (STRING_MULTIBYTE): New macro.
(struct lisp_String): New field size_byte.
1998-01-09 23:17:00 +00:00
Richard M. Stallman
f3ba54094e (describe_vector): Unconditionally handle multibyte chars.
(describe_vector): Pass new args to insert_from_string.
(Ftext_char_description): Use make_multibyte_string.
(Fkey_binding): Scan PREFIX a char at a time.
(Fkey_description): Scan KEYS by chars.
1998-01-09 23:16:01 +00:00
Richard M. Stallman
301738ed7b (echo_now): Use message2_nolog, not message1_nolog.
(Fexecute_extended_command): Likewise.
(read_char_minibuf_menu_prompt): Use message2_nolog, not message1.
(parse_modifiers): Use size_byte.
(echo_char): Use size_byte.
(parse_modifiers_uncached): Likewise.
(record_char): Likewise.
(parse_solitary_modifier): Likewise.
(read_char): Use Faref on Vkeyboard_translate_table
if it is a string.
(apply_modifiers_uncached): New arg base_len_byte.  Calls changed.
(read_char_minibuf_menu_prompt):
(read_key_sequence): Access buffer's downcase_table with XCHAR_TABLE.
(Fexecute_extended_command): Use Faref to access FUNCTION.
Use size_byte of BINDING.
(stuff_buffered_input): Use size_byte of STUFFSTRING.
1998-01-09 23:14:38 +00:00
Richard M. Stallman
e34c5c7daf (set_term_frame_name): Use size_byte. 1998-01-09 23:13:22 +00:00
Richard M. Stallman
60d67b83f2 (Fdo_auto_save): Save and restore multibyteness of minibuffer.
(Fwrite_region): Use message_with_string.
(auto_save_error, Fdo_auto_save): Likewise.
(Ffile_name_directory): Maybe use make_unibyte_string.
(Ffile_name_nondirectory): Likewise.
(Fsubstitute_in_file_name): Convert substituted envvars to multibyte
if necessary.  Otherwise use make_unibyte_string.
(Finsert_file_contents): Use make_unibyte_string.
(double_dollars): Use make_uninit_multibyte_string.
1998-01-09 23:12:05 +00:00
Richard M. Stallman
f6fe7bb508 (main): Pass new arg to message_dolog. 1998-01-09 23:10:20 +00:00
Richard M. Stallman
141199d1f6 Include charset.h.
(Fsubstitute_command_keys): Scan by bytes.
1998-01-09 23:08:46 +00:00
Richard M. Stallman
94f3db6251 (Fsend_string_to_terminal): Use size_byte. 1998-01-09 23:07:47 +00:00
Richard M. Stallman
25638b0794 (Fmultibyte_string_p): New function.
(Faref): Index string by chars.
(Faset): Index multibyte string by chars.
1998-01-09 23:06:13 +00:00
Richard M. Stallman
5f1cd180aa (code_convert_string): Maybe use make_unibyte_string. 1998-01-09 23:05:12 +00:00
Richard M. Stallman
216b9443d5 (internal_self_insert): Simplify handling of c2;
avoid testing enable-multibyte-characters.
(internal_self_insert): Use make_multibyte_string.
1998-01-09 23:04:20 +00:00
Richard M. Stallman
87b089add4 (multibyte_chars_in_text): New function.
(Fstring): Use make_multibyte_string.
(Fcompose_string): Likewise.
(Ffind_charset_string): Handle bytes vs chars in string.
Special case for single-byte strings.
(Fchars_in_string): Function deleted.
(Fstring): Renamed from Fconcat_chars.
Handle bytes vs chars in string.
(syms_of_charset): Corresponding changes.
1998-01-09 23:03:25 +00:00
Richard M. Stallman
bff2601e52 (Fccl_execute_on_string): Use size_byte. 1998-01-09 23:00:30 +00:00
Richard M. Stallman
115afec319 (Fmake_category_set): Don't allow multibyte string.
(describe_category): Pass new args to insert_from_string.
(describe_category_1): Likewise.
1998-01-09 22:59:31 +00:00
Richard M. Stallman
5245463a5c (casify_object): Scan string by bytes and chars.
Use make_multibyte_string.
1998-01-09 22:58:16 +00:00
Richard M. Stallman
7b935f718b (BASE_PURESIZE): Increased. 1998-01-09 22:55:18 +00:00
Richard M. Stallman
e28552a46a (read_escape): `\ ' stands for nothing at all.
(oblookup): Take args SIZE and SIZE_BYTE.  Callers changed.
(init_obarray, read1, make_symbol):
Pass new arg to make_pure_string.
(Fintern, oblookup, Fintern_soft, intern): Handle size_byte.
(dir_warning): Pass new arg to message_dolog.
(read1): PCH is now int *.
Declare ch as int.
(read0): Declare c as int.
(read_list): Declare ch as int.
(read0): Use Fmake_string not make_string.
(read1): When reading a string, maybe use make_unibyte_string.
(Fread_from_string): Convert string indices to/from bytes.
1998-01-09 22:52:08 +00:00
Richard M. Stallman
2b08380873 (count_size_as_multibyte): New function.
(insert_from_string_1, insert_from_buffer_1): Use it.
(copy_text): New function.
(insert_from_buffer_1): Call copy_text to convert between
single-byte and multibyte text.
(insert_from_string_1): Likewise.
(insert_1_both): New function.
(insert_from_string): New args POS_BYTE, LENGTH.
(insert_from_string_before_markers):
(insert_from_string_1): New arg POS_BYTE.  Swap args NCHARS, NBYTES.
Don't fail to use POS_BYTE!
(insert_from_buffer_1): Get both inschars and insbytes from NEW.
1998-01-09 22:46:07 +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
1f24f4fdd2 (Fformat): Do all the work directly--don't use doprnt.
Calculate the right size the first time, so no need to retry.
Count chars and bytes in the result.
Convert single-byte strings to multibyte as needed.
1998-01-09 22:34:48 +00:00
Richard M. Stallman
6bb762b324 (sref): Defined. 1998-01-09 22:13:08 +00:00
Richard M. Stallman
7bd9ba7033 (dabbrev-ignored-buffer-names): New variable.
(dabbrev--find-expansion): Ignore those buffers
unless they get specifically preferred.
1998-01-09 22:12:10 +00:00
Eric M. Ludlam
0a0a3dee18 Added some more comments in the commentary.
You can now `quote' symbols that look like keystrokes
When spell checking, meta variables can end in `th' or `s'.
1998-01-08 23:35:34 +00:00
André Spiegel
f8791ebe79 (vc-resynch-window): Behave properly when view-read-only is non-nil. 1998-01-07 14:33:37 +00:00
Dave Love
8b877ecddf Move change log comment block so lm-commentary doesn't lose. 1998-01-07 12:39:59 +00:00
Andreas Schwab
1edec9cfea (custom-browse-visibility): Doc fix. 1998-01-07 10:45:56 +00:00
Andreas Schwab
5e5e5b54ed (defgroup): Doc fix. 1998-01-07 10:45:33 +00:00
Andreas Schwab
3d98a37401 (pp-to-string): Greatly simplify by letting the
Emacs printer do the (quote x) to 'x conversion.  Better handle
the # print syntax in all its forms.
1998-01-07 10:40:25 +00:00
Andreas Schwab
33933d45be Customized. 1998-01-07 10:31:09 +00:00
Eli Zaretskii
9263121691 (delete-auto-save-files): Say in the doc string that
auto-save file will not be deleted if the buffer has unsaved
changes.
1998-01-07 09:41:30 +00:00
Richard M. Stallman
30d57b8e6e (Fcall_process): When deciding whether to encode args,
check them for multibyteness, don't check enable-multibyte-characters.

(Fcall_process): Use size_byte for the args.
(Fcall_process_region): Likewise for temp file.
(child_setup, getenv_internal, Fgetenv): Likewise.
1998-01-05 17:39:32 +00:00
Richard M. Stallman
1d2fc6120d (read_process_output): Use insert_1_both.
(read_process_output): New var `multibyte'.
Set it according to which coding system was used.

(read_process_output): Handle bytes vs chars.
(send_process): Use size_byte of OBJECT.
(Fprocess_send_string): Pass size_byte to send_process.
1998-01-05 17:33:41 +00:00
Richard M. Stallman
797ddf5794 (MAKE_LOCK_NAME): Use size_byte. 1998-01-05 17:32:08 +00:00
Richard M. Stallman
10d0774210 (Fbyte_code): Use size_byte. 1998-01-05 17:30:19 +00:00
Richard M. Stallman
dc2a0b79d6 (print_string): Now static.
(print): When multibyte is disabled,
print multibyte string chars using hex escapes.

(printchar): Pass new arg to message_dolog.
(strout): New arg MULTIBYTE.  Callers changed.

(strout): Take args SIZE and SIZE_BYTE;
operate on both chars and bytes.
(print_string): Pass new arg to strout.
If not using strout, fetch a whole multibyte char at once.
(write_string): Pass new arg to strout.
(write_string_1): Likewise.
(print) <case Lisp_String>: Scan by chars and bytes.
(print) <case Lisp_Symbol>: Scan name by chars and bytes.

(PRINTPREPARE): Use make_multibyte_string.
Initialize print_buffer_pos_byte.  Use insert_1_both.
(printchar): Update print_buffer_pos_byte and print_buffer_pos.
(print_buffer_pos_byte): New variable.
1998-01-05 17:29:16 +00:00