Commit graph

9401 commits

Author SHA1 Message Date
Kenichi Handa
6ef23ebb48 (string_to_non_ascii_char): Change the check for the
varidity of multibyte form.
(update_charset_table): Check validity of BYTES.  Don't set
bytes_by_char_head here.
(init_charset_once): Set bytes_by_char_head completely.
1998-11-04 10:48:53 +00:00
Geoff Voelker
c654fd9e7d Compile multiple source files when possible. 1998-11-04 01:28:57 +00:00
Geoff Voelker
f2b56a5d96 (Qmouse_face): Replace definition with extern decl. 1998-11-04 01:26:24 +00:00
Andrew Innes
01f31dfb5f (stat): GetFileInformationByHandle can legitimately fail, so don't
rely on it succeeding.
1998-11-03 22:39:04 +00:00
Andrew Innes
1a292d24f1 (x_to_w32_font): Specify DEFAULT_CHARSET in the w32 LOGFONT struct if
x font doesn't specify the charset.

(x_to_w32_charset): Change >= to == when testing results of stricmp.
1998-11-03 22:21:58 +00:00
Geoff Voelker
4488d7e15c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo. 1998-11-03 02:26:21 +00:00
Richard M. Stallman
33fa85e042 (set_internal): For built-in maybe-local vars,
when BINDFLAG is set, do not mark them as local.
1998-10-31 23:39:42 +00:00
Kenichi Handa
b80f1b20d3 (replace_range): Fix previous change. 1998-10-31 05:24:11 +00:00
Kenichi Handa
33a2d2a074 (do_switch_frame): Update minibuf_window if necessary. 1998-10-31 05:12:07 +00:00
Kenichi Handa
039af53ac4 (byte_combining_error): New function.
(CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
(insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
CHECK_BYTE_COMBINING_FOR_INSERT.
(insert_from_buffer_1): Likewise.
(adjust_after_replace): Check the posibility of inhibitted byte
combining correctly.
(replace_range): Before signaling an error for inhibitted byte
combining, recover the buffer in a safe state.
(del_range_2): Check the posibility of inhibitted byte combining
correctly.
1998-10-31 05:12:07 +00:00
Kenichi Handa
48839d2ed7 (Fsubst_char_in_region): Fix previous change.
(Ftranslate_region): Fix previous change.
1998-10-31 05:12:07 +00:00
Kenichi Handa
922dfd866f (Fbase64_decode_region): Fix previous change.
n
1998-10-31 05:12:07 +00:00
Andreas Schwab
aac77ff120 (Vselection_coding_system): Doc fix. 1998-10-30 10:21:58 +00:00
Andreas Schwab
8b835738fd (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
when we have both char and byte position.  Fix type clashes.
1998-10-30 10:20:25 +00:00
Andreas Schwab
377127ce12 (Fsignal): Use a separate format string when passing
error message string to fatal, in case it contains %'s.
1998-10-30 10:14:50 +00:00
Andreas Schwab
3c52e568d6 (Fchar_after): Fix type clashes. 1998-10-30 10:13:41 +00:00
Andreas Schwab
60022cb712 (Fchar_bytes): Doc fix.
(char_bytes): Fix returned value to match returned type.
(syms_of_charset): Fix type clash in initialisation of
Vauto_fill_chars.
1998-10-30 10:13:36 +00:00
Geoff Voelker
938469f27d (initialize_w32_display): Use buffer coords
instead of buffer size (which may be larger than the window).
1998-10-30 04:22:31 +00:00
Geoff Voelker
dbda5089c0 fileio.c (init_fileio_once): New function. 1998-10-30 03:49:09 +00:00
Geoff Voelker
680256a8be emacs.c (main): Invoke init_fileio_once. 1998-10-30 03:48:54 +00:00
Paul Eggert
1decb68022 (XTread_socket): Check the returned value of XmbLookupString more carefully. 1998-10-29 00:16:49 +00:00
Kenichi Handa
9f3ede3ccc (check_markers): Check if markers are at character
boundry.
(adjust_markers_for_insert): Fix previous change.
(count_combining_before): Don't limit the check at BEGV.
(count_combining_after): Don't limit the check at ZV.
(CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
(insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
(insert_from_string_1): Likewise.
(insert_from_buffer_1): Likewise.
(adjust_after_replace): Inhibit bytes combined across region
boundary.  Update end_unchanged correctly.
(replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT.  Update
end_unchanged correctly.
(del_range_2): Inhibit bytes combined across region boundary.
Update end_unchanged correctly.
1998-10-28 07:52:13 +00:00
Kenichi Handa
3f5409d35b (Fsubst_char_in_region): Fix previous change.
(Ftranslate_region): Fix previous change.
1998-10-28 07:52:13 +00:00
Kenichi Handa
d14d03ac4a (DECODE_CHARACTER_ASCII): Check validity of inserted
code.
(DECODE_CHARACTER_DIMENSION1): Likewise.
(DECODE_CHARACTER_DIMENSION2): Likewise.
(decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
1998-10-28 07:52:13 +00:00
Geoff Voelker
78859b8033 (Fset_message_beep): Recognize 'silent.
(w32_sys_ring_bell): Do nothing for the 'silent sound.
1998-10-28 05:48:12 +00:00
Geoff Voelker
93cbf229f9 (Vnext_selection_coding_system): New variable.
(syms_of_w32select): DEFVAR_LISP it.
(Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
non-nil.  Always convert multibyte strings.
(Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
non-nil.  Always convert a string that includes non-ASCII characters.
1998-10-28 03:50:07 +00:00
Geoff Voelker
96ef7d42fb (check_windows_init_file): Also look in load path specified
in environment.
1998-10-27 23:42:26 +00:00
Geoff Voelker
5d84dd8714 (w32_color_map_lookup): Remove duplicate definition. 1998-10-27 20:10:19 +00:00
Richard M. Stallman
46ac5b268d (Fbase64_decode_string): Doc fix.
(Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
Likewise.
1998-10-27 17:55:28 +00:00
Dave Love
15a9a50c39 (Fbase64_decode_region, Fbase64_encode_region): Fix
newline in doc string.
1998-10-27 10:39:24 +00:00
Kenichi Handa
f6ecdae5b2 (adjust_after_replace): Correctly handle the case that
both byte combining before and byte combining after happen.
(replace_range): Likewise.
1998-10-27 03:54:13 +00:00
Kenichi Handa
a3360ff915 (Fsubst_char_in_region): Correctly handle the case
that byte combining before happens.
(Ftranslate_region): Likewise.
1998-10-27 03:54:13 +00:00
Richard M. Stallman
b413f89564 (Fformat): Increase buffer size for floating format. 1998-10-26 23:48:57 +00:00
Kenichi Handa
61a398eac8 (syms_of_category): Doc-string modified. 1998-10-26 08:00:11 +00:00
Kenichi Handa
0007bdd098 (code_convert_region): Kill the work buffer created by
pre-write-conversion.
1998-10-26 08:00:11 +00:00
Geoff Voelker
02062ac320 (main) [HAVE_NTGUI]: Invoke syms_of_fontset(). 1998-10-25 23:55:37 +00:00
Kenichi Handa
828f1ed318 (adjust_markers_for_insert): Adjust markers by taking
combined_before_bytes and combined_after_bytes into account.
(count_combining_after): Handle the case that LENGTH is zero.
(adjust_after_replace): Record deletion at correct buffer
position.  Handle the case that LEN is zero.
(replace_range): Record deletion at correct buffer position.
(del_range_2): Call adjust_makers_for_replace to adjust makers for
combined bytes.
1998-10-24 01:17:09 +00:00
Kenichi Handa
6abb9bd967 (code_convert_region): While preserving the orignal
point, pay attention to the byte combining problem.
1998-10-24 01:17:09 +00:00
Kenichi Handa
9b703a38c6 (Fbase64_decode_region): Pay attention to the byte
combining problem.
1998-10-24 01:17:09 +00:00
Richard M. Stallman
6e0fca1d84 (Fgarbage_collect): Block input around most of the function. 1998-10-22 01:53:38 +00:00
Kenichi Handa
9ebe6947ae (Fx_list_fonts): Access frame parameters throught
general macros.   Don't call x_list_font directory, instead call a
function set in list_fonts_func.
1998-10-21 11:50:56 +00:00
Kenichi Handa
3541bb8faa Include frame.h before fontset.h.
(list_fonts_func): Fix prototype.
1998-10-21 11:50:56 +00:00
Kenichi Handa
9625ce22ee (list_fonts_func): Fix prototype. 1998-10-21 11:50:56 +00:00
Kenichi Handa
a1dfb88a16 Include frame.h before fontset.h. 1998-10-21 11:50:56 +00:00
Kenichi Handa
e133c8fabc (setup_coding_system): Fix setting up
coding->spec.ccl.valid_codes for CCL based coding system.
(code_convert_region): Set point to FROM before inserting the
result of pre-write-funciton.  Preserve original point.
(code_convert_string): If coding->type is coding_type_ccl, do
conversion even if the length of conversion region is zero.
1998-10-21 11:50:56 +00:00
Geoff Voelker
bbdf24fae2 (w32_use_unicode_for_codepage): Interpret w32_no_unicode_output properly.
(syms_of_w32term): Reference w32_no_unicode_output properly.
1998-10-20 22:34:50 +00:00
Geoff Voelker
bd6bb5442f Include charset.h and fontset.h. 1998-10-20 22:16:48 +00:00
Geoff Voelker
d82f9149cb Remove redundant font_info struct definition.
(Vx_pixel_size_width_font_regexp,
unibyte_display_via_language_environment): Declare variables.
(w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
Declare functions.
w32_output): New fields font_baseline and fontset.
(FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
1998-10-20 22:16:00 +00:00
Geoff Voelker
cabb23bc0d Include fontset.h. Define codepage macros.
Add ENCODE_BIG5 macro from coding.c.
(w32_no_unicode_output): New variable.
(w32_codepage_for_charset, w32_use_unicode_for_codepage): New
functions.
(BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
(dumpglyphs): Rewrite based on xterm.c equivalent.
(x_new_font): Use functionality provided in fontset.c.
(x_new_fontset): New function based on the one in xterm.c.
(syms_of_w32term): Add w32-no-unicode-output flag.
1998-10-20 22:15:14 +00:00
Geoff Voelker
4587b02635 (Vx_pixel_size_width): New global variable.
(unibyte_display_via_language_environment): New global variable.
(x_set_font): Add support for setting fontsets.
(Fx_create_frame): Add check_w32(). Initialize fontsets.  Fix
font names to match xlfd-tight-regexp.
(w32_load_font): Rewrite based on x_load_font.
(x_to_w32_charset, w32_to_x_charset): Add character sets.  Use
`iso8859-1' rather than `ansi'.
(w32_to_x_font): Remove `-' from font name.  Remove the `-' off the
end. Move charset into `charset registry' field.
(enum_font_cb2): Check charsets match.  Include width in font list.

(w32_list_fonts): Rewrite based on x_list_fonts.
Moved from w32term.c to have access to enumfont_t struct.
(Fx_list_fonts): w32 specific version eliminated.  Include
`x-list-fonts.c'.
(w32_get_font_info, w32_query_font, w32_find_ccl_program): New
functions for fontset support - adapted from x_ equivalents.
(syms_of_w32fns): New lisp variables initialised.  Function
pointers for fontset.c set up.
1998-10-20 22:13:14 +00:00