1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-29 11:02:01 +00:00
Commit Graph

11543 Commits

Author SHA1 Message Date
Eli Zaretskii
1eed3a764f (Fw16_set_clipboard_data): Fix the change from 2000-05-20. 2000-05-25 10:56:36 +00:00
Kenichi Handa
68b283cca6 (ccl_driver): Fix previous change. 2000-05-25 06:21:51 +00:00
Kenichi Handa
a4e1759ef0 *** empty log message *** 2000-05-25 06:21:09 +00:00
Kenichi Handa
6bac5b12e8 (run_pre_post_conversion_on_str): Set point to the
beginning of buffer before calling coding->post_read_conversion.
(decode_coding_string): Give correct args to
run_pre_post_conversion_on_str.
(encode_coding_string): Likewise.
2000-05-25 04:44:33 +00:00
Kenichi Handa
46ab33a9c7 *** empty log message *** 2000-05-25 04:43:36 +00:00
Kenichi Handa
5c464c4d2c (ccl_driver) <CCL_ReadMultibyteChar2>
<CCL_WriteMultibyteChar2>:  Handle charsets eight-bit-control and
eight-bit-graphic correctly.
2000-05-25 01:30:37 +00:00
Kenichi Handa
eacfd7fe01 *** empty log message *** 2000-05-25 01:30:04 +00:00
Eli Zaretskii
bd4bde7f2d Correct typos. 2000-05-24 16:29:46 +00:00
Dave Love
f8569325db 1999-06-01 Kenichi HANDA <handa@etl.go.jp>
* fileio.c (Finsert_file_contents): Even if a file is not found,
	execute codes for setting up coding system.  Call
	after-insert-file-functions unconditionally
2000-05-24 14:13:20 +00:00
Gerd Moellmann
04545643a8 *** empty log message *** 2000-05-24 13:10:23 +00:00
Gerd Moellmann
2b7e8799bb (setpgrp): Don't define if USG and BSD_PGRPS are not defined. 2000-05-24 13:08:10 +00:00
Kenichi Handa
747d90ea19 *** empty log message *** 2000-05-24 03:57:54 +00:00
Kenichi Handa
d78bc582fe (update_charset_table): Accept nil in LONG_NAME and
DESCRIPTION.
(syms_of_charset): Avoid building same strings.
2000-05-24 03:17:37 +00:00
Gerd Moellmann
716e3b88ef *** empty log message *** 2000-05-23 22:04:00 +00:00
Gerd Moellmann
f95c3f9125 (setpgrp) [HAVE_SETPGID]: Define as setpgid. 2000-05-23 22:00:25 +00:00
Gerd Moellmann
dd04d6c153 (setpgrp): Don't define it here because this
prevents compilation on GNU/Linux systems with glib 2.2.
2000-05-23 21:59:27 +00:00
Gerd Moellmann
916a32d46e (BASE_PURESIZE): Increase to 675000. 2000-05-23 21:59:11 +00:00
Gerd Moellmann
ba0d119520 (Fload): Add a comment about the meaning of
Vuser_init_file being t.
2000-05-23 21:58:58 +00:00
Kenichi Handa
d23ee51483 (struct coding_system): Add a comment for src_multibyte and
dst_multibyte.
2000-05-23 11:08:35 +00:00
Eli Zaretskii
9aeb39fad8 (SOME_MACHINE_LISP): Add disp-table.elc,
dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the ms-dos
version.
(MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
2000-05-23 10:47:20 +00:00
Gerd Moellmann
ce75fd2348 *** empty log message *** 2000-05-23 09:44:28 +00:00
Kenichi Handa
d1e4948d22 (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally. 2000-05-23 02:25:45 +00:00
Kenichi Handa
0574a2ed1c (skip_chars): FETCH_STRING_CHAR_ADVANCE unconditionally. 2000-05-23 02:25:11 +00:00
Kenichi Handa
8d76911517 (read_char): Allow character codes 128..255 to be
handled by input-method-function.
2000-05-23 02:19:20 +00:00
Kenichi Handa
55a172024b (IT_write_glyphs): Set coding->src_multibyte to 1. 2000-05-23 01:34:05 +00:00
Kenichi Handa
f2ba40be95 (encode_terminal_code): Set coding->src_multibyte properly. 2000-05-23 01:33:40 +00:00
Kenichi Handa
3d80f24d75 *** empty log message *** 2000-05-23 01:33:11 +00:00
Kenichi Handa
cfe34140af Fix previous change (typo). 2000-05-23 00:47:54 +00:00
Kenichi Handa
f6302ac964 Fix comment for find_charset_in_text. 2000-05-23 00:46:13 +00:00
Kenichi Handa
ff2b1ea945 (encode_eol): Fix a bug of DOS style EOL encoding. 2000-05-23 00:17:27 +00:00
Kenichi Handa
29ced61baa *** empty log message *** 2000-05-23 00:15:39 +00:00
Kenichi Handa
c9d80d3816 (read_char): Allow character codes 128..255 to be
handled by input-method-function.
2000-05-22 04:26:47 +00:00
Kenichi Handa
adee4f912a (adjust_markers_for_replace): Fix previous change.
(adjust_after_replace): If PREV_TEXT is nil, call
adjust_markers_for_insert, not adjust_markers_for_replace.
2000-05-22 00:19:43 +00:00
Kenichi Handa
d7e00792f2 *** empty log message *** 2000-05-22 00:19:18 +00:00
Gerd Moellmann
087121cc2f *** empty log message *** 2000-05-20 15:55:53 +00:00
Gerd Moellmann
f22ac298de (toplevel) [UNIX98_PTYS]: Include stdlib.h. 2000-05-20 15:54:05 +00:00
Gerd Moellmann
c4c9e136e8 (HAVE_GRANDPT, HAVE_GETPT): New defines. 2000-05-20 15:51:46 +00:00
Gerd Moellmann
e20caf05ae (setup_pty): Treat case that UNIX98_PTYS is defined
like SYSV_PTYS.
2000-05-20 15:51:35 +00:00
Gerd Moellmann
71125fb836 (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
[HAVE_GRANDPT]: Define.
(C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
2000-05-20 15:51:13 +00:00
Kenichi Handa
c9671f819a *** empty log message *** 2000-05-20 00:23:52 +00:00
Kenichi Handa
9846d9dbcf (selection_data_to_lisp_data): Setup members
src_multibyte and dst_multibyte of coding.  Adjusted for the
change for find_charset_in_str.
(lisp_data_to_selection_data): Likewise.
2000-05-20 00:08:10 +00:00
Kenichi Handa
c5924f47e9 (get_next_display_element): Handle 8-bit characters
correctly.
(next_element_from_display_vector): Use CHAR_BYTES instead of
CHAR_LEN.
(disp_char_vector): Use SPLIT_CHAR instead of
SPLIT_NON_ASCII_CHAR.
2000-05-20 00:07:43 +00:00
Kenichi Handa
69ebbf81b1 (Fw32_set_clipboard_data): Setup members
src_multibyte and dst_multibyte of coding.  Adjusted for the
change for find_charset_in_str.
(Fw32_get_clipboard_data): Likewise.
2000-05-20 00:07:08 +00:00
Kenichi Handa
aab5ac4409 (w32_to_x_font): Setup members src_multibyte and
dst_multibyte of coding.
(x_to_w32_font): Likewise.
2000-05-20 00:06:41 +00:00
Kenichi Handa
b34cf36ca8 (Fw16_set_clipboard_data): Setup members
src_multibyte and dst_multibyte of coding.  Adjusted for the
change for find_charset_in_str.
(Fw16_get_clipboard_data): Likewise.
2000-05-20 00:05:51 +00:00
Kenichi Handa
68526af594 (produce_special_glyphs): Use CHAR_BYTES instead of
CHAR_LEN.
2000-05-20 00:05:26 +00:00
Kenichi Handa
eb99a8dd64 (wordify): Use FETCH_STRING_CHAR_ADVANCE
unconditionally.
(Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
2000-05-20 00:05:02 +00:00
Kenichi Handa
a4a37e652d (Fstart_process): GCPRO current_dir before calling
Ffind_operation_coding_system.  Encode arguments here.
(create_process): Don't encode arguments here.  Setup
src_multibyte and dst_multibyte members of struct coding.
(read_process_output): Setup src_multibyte and dst_multibyte
members of struct coding.  If the output is to multibyte buffer,
always decode the output of the process.  Adjust the
representation of 8-bit characters to the multibyteness of the
output.
(send_process): Setup coding->src_multibyte according to the
multibyteness of the source.
2000-05-20 00:04:37 +00:00
Kenichi Handa
eba90784ce (print_object): Use FETCH_STRING_CHAR_ADVANCE
unconditionally.
2000-05-20 00:04:05 +00:00
Kenichi Handa
f0354c0337 (read1): On reading multibyte string, be sure to make
all 8-bit chararacters in valid multibyte form.
(readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
2000-05-20 00:03:42 +00:00
Kenichi Handa
54e03a4ac4 (Fsingle_key_description): Use SPLIT_CHAR instead of
SPLIT_NON_ASCII_CHAR.
(describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
(Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
unconditionally.
(Fkey_description): Likewise.
2000-05-20 00:03:16 +00:00
Kenichi Handa
b16afa45bb (adjust_markers_for_record_delete): Deleted.
(adjust_markers_for_insert): Argument changed.  Caller changed.
(adjust_markers_for_replace): Likewise.
(ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
(copy_text): Delete unused local varialbe c_save.  For converting
to multibyte, be sure to make all 8-bit characters in valid
multibyte form.
(count_size_as_multibyte): Handle 8-bit characters correctly.
(insert_1_both, insert_from_string_1, insert_from_buffer_1,
adjust_after_replace, replace_range, del_range_2)
[BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
(insert_1_both, insert_from_string_1, insert_from_buffer_1,
adjust_after_replace, replace_range, del_range_2) Delete codes for
handling byte combining.
(adjust_before_replace): Deleted.
2000-05-20 00:01:34 +00:00
Kenichi Handa
f55d03b19b (fontset_ref): Use SPLIT_CHAR instead of
SPLIT_NON_ASCII_CHAR.
(fontset_ref_via_base, fontset_set): Likewise
2000-05-20 00:00:49 +00:00
Kenichi Handa
2efdd1b92e (concat): Handle 8-bit characters correctly.
(Fstring_as_unibyte): Be sure to make all 8-bit characters in
unibyte in the result.
(Fstring_as_multibyte): Be sure to make all 8-bit characters in
valid multibyte form in the result.
(map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
(Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
return -1, signal an error.
(base64_encode_1): New arg MULTIBYTE.  Get each character by
CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero.  If a multibyte
character is found, return -1.
(Fbase64_decode_region): Delete codes for handling byte-combining.
Treat each decoded byte as a unibyte character.
(Fbase64_decode_string): Return unibyte string.
(Fcompare_strings, concat, string_byte_to_char): Use
FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
FETCH_STRING_CHAR_ADVANCE.
(Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
(mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
2000-05-19 23:59:50 +00:00
Kenichi Handa
8c3b944144 (Finsert_file_contents): Setup src_multibyte and
dst_multibyte members of coding.  On handling REPLACE on unibyte
buffer, convert the result of decode_coding to unibyte.  On
inserting into a mutibyte buffer, always call code_convert_region.
(e_write): Setup cdoing->src_multibyte according to the
multibyteness of the source (buffer or string).
2000-05-19 23:59:27 +00:00
Kenichi Handa
9a599130ca (Fformat): Be sure to convert 8-bit characters to
multibyte form.
(Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
combining occurs.
(Ftranspose_region): Delete codes for handling byte combining.
2000-05-19 23:59:04 +00:00
Kenichi Handa
37309c9d3d (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
(Faset): Likewise.
2000-05-19 23:58:37 +00:00
Kenichi Handa
811ea08632 (enum iso_code_class_type): Member ISO_control_code is
devided into ISO_control_0 and ISO_control_1.
(struct coding_system): New members src_multibyte, dst_multibyte,
errors, and result.  Delete member fake_multibyte.
(CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
nonzero.
(CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
nonzero.
2000-05-19 23:56:15 +00:00
Kenichi Handa
b73bfc1c35 (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->resutl to
CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
(ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
EMIT_BYTES): New macros.
(THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
macros deleted.
(CHECK_CODE_RANGE_A0_FF): This macro deleted.
(detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
check the validity of multibyte sequence.
(decode_coding_emacs_mule): New function.
(encode_coding_emacs_mule): New macro.
(detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
the source.
(DECODE_ISO_CHARACTER): Just return a character code.
(DECODE_COMPOSITION_START): Set coding->result instead of result.
(decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
EMIT_CHAR to produced decoded characters.  Exit the loop only by
macros ONE_MORE_BYTE or EMIT_CHAR.  Don't handle the case of last
block here.
(ENCODE_ISO_CHARACTER): Don't translate character here.  Produce
only position codes for an invalid character.
(encode_designation_at_bol): Return new destination pointer.  5th
arg DSTP is changed to DST.
(encode_coding_iso2022, decode_coding_sjis_big5): Get a character
from the source by ONE_MORE_CHAR.  Don't handle the case of last
block here.
(DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
macros deleted.
(detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
TWO_MORE_BYTES to fetch a byte from the source.
(encode_eol): Pay attention to coding->src_multibyte.
(detect_coding, detect_eol): Preserve members src_multibyte and
dst_multibyte.
(DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
(encoding_buffer_size): Set magnification to 3 for all coding
systems that require encoding.
(ccl_coding_driver): For decoding, be sure that the result is
valid multibyte sequence.
(decode_coding): Initialize coding->errors and coding->result.
For emacs-mule, call decode_coding_emacs_mule.  For no-conversion
and raw-text, always call decode_eol.  Handle the case of last
block here.  If not coding->dst_multibyte, convert the resulting
sequence to unibyte.
(encode_coding): Initialize coding->errors and coding->result.
For emacs-mule, call encode_coding_emacs_mule.  For no-conversion
and raw-text, always call encode_eol.  Handle the case of last
block here.
(shrink_decoding_region, shrink_encoding_region): Detect cases
that we can't skip data more rigidly.
(code_convert_region): Setup src_multibyte and dst_multibyte
members of coding.  For decoding, if the buffer is multibyte,
convert the source sequence to unibyte in advance.  For encoding,
if the buffer is multibyte, convert the resulting sequence to
multibyte afterward.
(run_pre_post_conversion_on_str): New function.
(code_convert_string): Deleted and divided into the following two.
(decode_coding_string, encode_coding_string): New functions.
(code_convert_string1, code_convert_string_norecord): Call one of
above.
(Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
MAKE_NON_ASCII_CHAR.
(Fset_terminal_coding_system_internal,
Fset_safe_terminal_coding_system_internal): Setup src_multibyte
and dst_multibyte members.
(init_coding_once): Initialize iso_code_class with new enum
ISO_control_0 and ISO_control_1.
2000-05-19 23:54:56 +00:00
Kenichi Handa
6e4dc3e1c3 (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
CHARSET_8_BIT_GRAPHIC): New macros.
(SINGLE_BYTE_CHAR_P): Make it faster by using casting.
(CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
(CHARSET_REVERSE_CHARSET): Likewise.
(CHARSET_VALID_P): Handle new charsets; eight-bit-control and
eight-bit-graphic.
(BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
(CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
(PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
encounter an invalid multibyte sequence.
(PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
sequence is always valid.
(MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
(UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
macros.
(CHAR_STRING): For 8-bit characters, call char_to_string.
(INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version.  Assume
multibyte sequence is always valid.
(BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
(parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
str_as_unibyte): Extern them.
(BCOPY_SHORT): Fix a bug.
(CHAR_LEN): This macro deleted.  Callers changed to use
CHAR_BYTES.
(FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
(FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
(FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
2000-05-19 23:54:05 +00:00
Kenichi Handa
2e344af3e7 (Qeight_bit_control, Qeight_bit_graphic): New
variables.
(SPLIT_CHARACTER_SEQ): This macro deleted.
(SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
valid.
(CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
and eight-bit-graphic.
(char_to_string): Likewise.  Signal an error for too large
character code.
(char_printable_p): Return 0 for 8-bit characters.
(update_charset_table): Update iso_charset_table only when a final
character is non-negative.
(find_charset_in_text): Renamed from find_charset_in_str.
Arguments and return value changed.  Callers changed.
(Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
be -1 if CHARSET is used only internally.
(Fmake_char_internal): Handle new charsets; eight-bit-control and
eight-bit-graphic.
(Fcharset_after): Simplified.
(char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
(char_bytes): Return 2 for chars of the range 0xA0..0xFF.
(multibyte_chars_in_text): Simplified by assuming there's no
invalid multibyte sequence.
(parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
str_as_unibyte): New functions.
(Fstring): Simpified by assuming that byte combining never
happens.
(init_charset_once): Initialization for
LEADING_CODE_8_BIT_CONTROL.
(syms_of_charset): Intern and staticpro Qeight_bit_control and
Qeight_bit_graphic.  Include them in Vcharset_list.  Make charsets
eight-bit-control and eight-bit-graphic.
2000-05-19 23:52:27 +00:00
Kenichi Handa
bd045987c2 (CCL_WRITE_CHAR): Be sure to write single byte characters
as is.
(CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
2000-05-19 23:51:55 +00:00
Kenichi Handa
75ec644a43 (Fmodify_category_entry): Use SPLIT_CHAR, not
SPLIT_NON_ASCII_CHAR.
2000-05-19 23:51:29 +00:00
Kenichi Handa
c5bfa12bad (Fcall_process): Always encode an argument string if
it is multibyte.  Setup src_multibyte and dst_multibyte members of
process_coding properly.
2000-05-19 23:51:10 +00:00
Kenichi Handa
089b985ff9 (Fbyte_code): If arg BYTESTR is multibyte, convert it
to unibyte.
2000-05-19 23:50:52 +00:00
Kenichi Handa
a9bcded1f3 (advance_to_char_boundary): Don't use DEC_POS to find a
apparent char boundary.
(Fset_buffer_multibyte): Convert 8-bit characters in the range
0x80..0x9F to/from multibyte form.
2000-05-19 23:50:26 +00:00
Kenichi Handa
9eac9d597c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
convert it to unibyte.
(make_string): Use parse_str_as_multibyte, not chars_in_text.
2000-05-19 23:49:35 +00:00
Kenichi Handa
b195b25d4d (fns.o): Depend on charset.h. 2000-05-19 23:48:03 +00:00
Gerd Moellmann
2b63d473a8 *** empty log message *** 2000-05-19 20:37:34 +00:00
Gerd Moellmann
a1a8b28e52 (Fbury_buffer): Avoid trouble from burying a killed buffer. 2000-05-19 20:33:58 +00:00
Gerd Moellmann
5f64c9e0cd *** empty log message *** 2000-05-19 11:58:45 +00:00
Gerd Moellmann
729ae5471f (Vimages_types): Moved to xdisp.c.
(syms_of_xfns): Move `image-types' to xdisp.c.
2000-05-19 11:54:13 +00:00
Gerd Moellmann
8ee2a6b111 (Vimage_types): Add extern declaration. 2000-05-19 11:53:38 +00:00
Gerd Moellmann
e00daaa0ce (Vimage_types): Moved here from xfns.c.
(syms_of_xdisp): Move `image-types' variable here from xfns.c.
2000-05-19 11:52:59 +00:00
Gerd Moellmann
c6718dc4f5 (Vimage_types): Removed.
(syms_of_w32fns): Remove `image-types'.
2000-05-19 11:52:17 +00:00
Dave Love
63dffd51db (Ffontset_info): ...and another. 2000-05-18 14:44:57 +00:00
Dave Love
06e6aef0f7 (Ffontset_info): Fix newline in doc. 2000-05-18 13:53:25 +00:00
Kenichi Handa
813086ea08 *** empty log message *** 2000-05-17 23:35:57 +00:00
Kenichi Handa
1ff005e1ed Include "buffer.h".
(fs_load_font): If the face has fontset, record the face ID in
that fontset.
(Finternal_char_font): New function.
(accumulate_font_info): New function.
(Ffontset_info): Rewritten for the new fontset implementation.
(syms_of_fontset): Register Vdefault_fontset in the first element
of Vfontset_table.  Include Vdefault_fontset in
Vfontset_alias_alist.  Declare `internal-char-font' as a Lisp
function.
2000-05-17 23:30:30 +00:00
Kenichi Handa
a3b210c4ab (map_char_table): Pay attention to character number of
charset.  Check the validity of charset at the first level.   For
leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
the default value.
2000-05-17 23:30:06 +00:00
Jason Rumney
ed9df70498 Obsolete. Use xfaces.c instead. 2000-05-17 19:24:55 +00:00
Dave Love
bdaebbf073 Deleted -- unused. 2000-05-16 16:46:23 +00:00
Gerd Moellmann
b15f3b7779 *** empty log message *** 2000-05-16 14:37:08 +00:00
Gerd Moellmann
154a424ac4 (Fmove_to_column): When ending within a tab, insert
spaces first so that markers at the end of the tab get adjusted.
2000-05-16 14:29:27 +00:00
Gerd Moellmann
9ab8560dc2 Use the term invalid' instead of illegal'. 2000-05-16 14:29:08 +00:00
Gerd Moellmann
835c1b3627 (frames_bury_buffer): Don't add a buffer to the frame's
buffer list that wasn't selected in that frame.
2000-05-16 11:47:30 +00:00
Gerd Moellmann
cb613bb86e (make_temp_name): New function, extracted from
Fmake_temp_name.
(Fmake_temp_name): Use it.
2000-05-16 11:17:39 +00:00
Gerd Moellmann
f1d367aa47 (get_boot_time): To obtain an 8 char file name, which
is needed on mescaline, use a 2 char prefix, and call
make_temp_name with second arg non-zero.
2000-05-16 11:14:18 +00:00
Eli Zaretskii
f685bea9f2 *** empty log message *** 2000-05-15 15:33:50 +00:00
Gerd Moellmann
a1b8d58b69 *** empty log message *** 2000-05-15 14:54:08 +00:00
Eli Zaretskii
466539bc8a (coordinates_in_window): Subtract 1 when computing right_x. 2000-05-15 14:51:32 +00:00
Gerd Moellmann
83fa009cd3 (Fgetenv_internal): Renamed from Fgetenv. 2000-05-15 14:47:46 +00:00
Gerd Moellmann
55a9f64894 (lisp): Add env.elc. 2000-05-15 14:47:33 +00:00
Gerd Moellmann
a265079f99 *** empty log message *** 2000-05-12 09:22:33 +00:00
Gerd Moellmann
f8ce8a0de2 (Freplace_match): Handle case of `\N' in the
replacement when there's no group N.
2000-05-12 09:21:59 +00:00
Dave Love
139f13a779 Fix last change. 2000-05-11 18:38:29 +00:00
Gerd Moellmann
0ace421a2d *** empty log message *** 2000-05-11 15:44:54 +00:00
Gerd Moellmann
796184bc20 (add_to_log): Pass 1 byte less to message_dolog. 2000-05-11 15:43:37 +00:00
Gerd Moellmann
1172eb8dfa (read_char): Don't clear current message for help
events; let the code handling help events handle this.  Change
code detecting help events that should be ignored.
2000-05-11 12:23:55 +00:00
Gerd Moellmann
da4496b6c9 *** empty log message *** 2000-05-11 09:32:19 +00:00
Gerd Moellmann
c7aca1ad8e (handle_single_display_prop): Don't try to set PT if
we're interating over a string.
2000-05-11 09:31:42 +00:00
Dave Love
0623e40fa0 *** empty log message *** 2000-05-10 09:25:53 +00:00
Dave Love
43fb7d9afa (Fwrite_region): If APPEND arg is an integer, seek to
that offset before writing.  Move gcpro region past call of
Ffile_regular_p.
2000-05-10 08:52:47 +00:00
Dave Love
bae2503b0a *** empty log message *** 2000-05-04 22:40:05 +00:00
Dave Love
6c9a74728b (syms_of_buffer) [auto-fill-function]: Doc fix. 2000-05-04 22:00:40 +00:00
Dave Love
8dd61bafa1 (syms_of_charset) [auto-fill-chars]: Doc fix. 2000-05-04 21:57:05 +00:00
Gerd Moellmann
ec82fb2f40 *** empty log message *** 2000-05-04 21:52:38 +00:00
Gerd Moellmann
06d8227a86 (insert_from_buffer_1): Adjust FROM position by number
of inserted characters when BUF equals the current buffer, and PT
is in front of or equal to FROM.
2000-05-04 21:45:40 +00:00
Gerd Moellmann
4ff40dd081 *** empty log message *** 2000-05-03 19:49:39 +00:00
Gerd Moellmann
a21a394398 (handle_single_display_prop): If display property value
is invalid, or something not supported on the frame, restore
iterator's position to what it was initially.  Make sure to return
0 for invalid and unsupported property values.
2000-05-03 19:48:35 +00:00
Gerd Moellmann
cbf18892c4 *** empty log message *** 2000-05-03 12:34:27 +00:00
Gerd Moellmann
329bed06e9 (x_produce_glyphs) <composite chars>: Handle case
that x_per_char_metric returns null.
2000-05-03 11:39:25 +00:00
Gerd Moellmann
576da55d72 *** empty log message *** 2000-05-02 20:12:37 +00:00
Gerd Moellmann
7c7ff7f5d1 (Qcenter): New variable.
(enum image_value_type): Add IMAGE_ASCENT_VALUE.
(parse_image_spec): Handle IMAGE_ASCENT_VALUE.
(image_ascent): New function.
(lookup_image): Recognize `:ascent center'.
(xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
(tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
(xbm_load): Don't set image's ascent here.
(xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
(jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
check ascent values here.
(Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
(syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
(syms_of_xfns): Initialize Qcenter.
2000-05-02 20:03:32 +00:00
Gerd Moellmann
bdda7eb033 (DEFAULT_IMAGE_HEIGHT): New macro.
(IMAGE_ASCENT): Removed.
2000-05-02 20:02:55 +00:00
Gerd Moellmann
95af8492a3 (x_produce_image_glyph, x_draw_image_foreground)
(x_draw_image_relief, x_draw_image_foreground_1): Call function
image_ascent instead of using IMAGE_ASCENT.
2000-05-02 20:02:29 +00:00
Gerd Moellmann
a6ce554033 (struct face): Add forward declaration.
(struct image): Ditto.
(image_ascent): Add prototype.
2000-05-02 20:01:46 +00:00
Gerd Moellmann
1b0672c3f9 *** empty log message *** 2000-05-02 13:47:06 +00:00
Gerd Moellmann
8515044c32 (Fsignal): If lisp_eval_depth or spepdl_size are near
to the limits, increase the limits.
2000-05-02 13:41:03 +00:00
Kenichi Handa
40292c8a39 (fs_load_font): By default, use 0x00..0x7f for ASCII.
Check Vfont_encoding_alist against the full name of the opened
font.
2000-05-01 00:57:23 +00:00
Kenichi Handa
0d7811edd0 *** empty log message *** 2000-05-01 00:55:28 +00:00
Dave Love
a9cacab79c *** empty log message *** 2000-04-28 17:03:43 +00:00
Gerd Moellmann
a943a5ca3e (make_cursor_line_fully_visible): Handle case of rows
taller than the window.
2000-04-28 13:39:21 +00:00
Kenichi Handa
0badc11418 (realize_x_face): Fix the argument of the second
xassert.  BASE_FACE may not be a face for ASCII.
2000-04-28 12:57:52 +00:00
Kenichi Handa
5dba1e292f *** empty log message *** 2000-04-28 12:52:32 +00:00
Gerd Moellmann
c76e04a8d5 *** empty log message *** 2000-04-27 19:12:09 +00:00
Gerd Moellmann
5be6c3b044 (slurp_file): New function.
(xbm_image_p): Handle case of in-memory XBM files.
(xbm_scan): Rewritten to work on memory buffers instead of files.
(xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
Work on memory buffers instead of files.  If DATA is null test
if buffer looks like an in-memory XBM file.
(xbm_load_image): Renamed from xbm_load_image_file.  Work on
memory buffers instead of files.
(xbm_file_p): New function.
(xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
2000-04-27 19:11:04 +00:00
Gerd Moellmann
035eec486e (read1): Don't treat period followed by certain
characters as symbol start.
2000-04-27 19:10:15 +00:00
Gerd Moellmann
7e0ba6da56 (TERMCAP_OBJ): Removed.
(LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
2000-04-27 19:09:58 +00:00
Gerd Moellmann
c2f646d6bb (termcapobj): Don't use TERMCAP_OBJ. 2000-04-27 19:09:43 +00:00
Gerd Moellmann
42ac1ed4d1 (print_object): Treat print-length < 0 as nil. 2000-04-27 19:09:17 +00:00
Gerd Moellmann
353964e391 *** empty log message *** 2000-04-27 10:52:35 +00:00
Gerd Moellmann
9c97398c32 (end_of_file_error): New function.
(read1): Call it instead of signaling `end-of-file' directly.
2000-04-27 10:48:11 +00:00
Gerd Moellmann
c02279de38 (print_error_message): Print data of `end-of-file'
with Fprinc instead of Fprin1.
2000-04-27 10:47:45 +00:00
Ken Raeburn
24d744ac9c (freeze_window_start): Check that minibuffer scroll window isn't nil before
extracting the window structure pointer from it.
2000-04-26 18:41:05 +00:00
Ken Raeburn
86a375f869 (record_delete): If we hit the end of the undo list, stop picking elements
apart.
2000-04-26 18:39:30 +00:00
Gerd Moellmann
7464346de7 *** empty log message *** 2000-04-26 17:46:21 +00:00
Gerd Moellmann
e6819fafa3 (display_line): If lines are continued, restore
iterator's ascent/descent information to the values before the
first glyph not fitting on the line.
2000-04-26 17:43:04 +00:00
Gerd Moellmann
612839b6b2 *** empty log message *** 2000-04-25 19:43:58 +00:00
Gerd Moellmann
f2d86d7a04 (try_window_id) <all changes above window start>: Adjust
positions in glyph matrix.  Don't compute new window end
positions.
2000-04-25 19:41:30 +00:00
Gerd Moellmann
86c11ba1c8 (increment_matrix_positions): Renamed from
increment_glyph_matrix_buffer_positions.
(increment_row_positions): Renamed from
increment_glyph_row_buffer_positions.
2000-04-25 19:39:59 +00:00
Gerd Moellmann
84fc6d4d2d Change names of renamed functions from dispnew.c in prototypes. 2000-04-25 19:38:48 +00:00
Gerd Moellmann
abfcc168d3 *** empty log message *** 2000-04-24 18:48:24 +00:00
Gerd Moellmann
b272d62400 (Fdo_auto_save): Create directories for auto-save
list file if necessary.
2000-04-24 18:41:54 +00:00
Gerd Moellmann
cc181e9561 *** empty log message *** 2000-04-24 14:01:22 +00:00
Gerd Moellmann
d475bcb854 (init_iterator): Set iterator's extra_line_spacing
from buffer or frame.
(automatic_hscrolling_p): New variable.
(hscroll_windows): Scroll windows horizontally only if automatic
hscrolling is allowed.
(syms_of_xdisp): New variable `automatic-hscrolling'.
2000-04-24 13:57:11 +00:00
Gerd Moellmann
d1738c45ca (struct frame): Add member extra_line_spacing. 2000-04-24 13:56:30 +00:00
Gerd Moellmann
563b67aafd (x_set_line_spacing): New function.
(Fx_create_frame): Set line spacing from resources.
(Qline_spacing): New variable.
(syms_of_xfns): Initialize Qline_spacing.
2000-04-24 13:56:04 +00:00
Gerd Moellmann
ecb5709c70 (USAGE2): Add --line-spacing' and -lsp'. 2000-04-24 13:55:28 +00:00
Gerd Moellmann
a3bbced0df (init_buffer_once): Handle extra_line_spacing.
(syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
(reset_buffer): Don't initialize extra2 and extra3.  Intialize
extra_line_spacing from default value.
(init_buffer_once): Initialize default value of extra_line_spacing.
2000-04-24 13:55:05 +00:00
Gerd Moellmann
82b911fda5 (struct buffer): Add extra_line_spacing, remove extra2
and extra3.
2000-04-24 13:54:35 +00:00
Gerd Moellmann
d365f5bb0b (x_produce_glyphs): Remove reference to struct it's
prompt_width.  Add extra line spacing.
2000-04-24 13:54:04 +00:00
Gerd Moellmann
2efdbcddfa (produce_glyphs): Remove reference to struct it's prompt_width. 2000-04-24 13:53:16 +00:00
Gerd Moellmann
bf95c41378 (struct it): Remove member prompt_width, add extra_line_spacing. 2000-04-24 13:52:50 +00:00
Gerd Moellmann
58827478fc (update_frame_line): When writing a whole line, make
sure cursor is in the right row afterwards, otherwise a use of
capability `ch' in cmgoto might leave the cursor in the row below.
2000-04-22 14:12:30 +00:00
Gerd Moellmann
25a87f42e9 *** empty log message *** 2000-04-21 13:08:56 +00:00
Gerd Moellmann
bd55b8608a (timer_check): Fix typo in comment. 2000-04-21 13:02:41 +00:00
Gerd Moellmann
d47f18ca76 (struct Lisp_Buffer_Cons): Remove. 2000-04-21 13:00:58 +00:00
Kenichi Handa
4ea5775bc6 (Fset_fontset_font): Fix docstring. Local variable
name change: ch -> character.
2000-04-20 23:52:05 +00:00
Kenichi Handa
54edf5c240 *** empty log message *** 2000-04-20 23:50:19 +00:00
Gerd Moellmann
3a64eef5c1 *** empty log message *** 2000-04-20 21:52:10 +00:00
Gerd Moellmann
e3e8a75a2a (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
directory doesn't exist.
2000-04-20 21:01:16 +00:00
Gerd Moellmann
59a84f8e16 (echo_message_buffer): New variable.
(echo_now): Set echo_message_buffer to the echo area buffer used
to display the echo.
(cancel_echoing): Reset echo_message_buffer to nil.
(read_char): Code rewritten that handles canceling an echo or
echoing a dash, respectively.
2000-04-20 21:00:43 +00:00
Dave Love
6142fdcb58 *** empty log message *** 2000-04-19 22:45:31 +00:00
Dave Love
5c6740c979 (syms_of_fns): Defsubr mapc.
(concat): Don't allow numeric args.
(Fconcat): Doc change.
2000-04-19 22:27:27 +00:00
Stefan Monnier
ac6b535224 *** empty log message *** 2000-04-19 22:07:51 +00:00
Stefan Monnier
419d1c749d (re_match_2_internal): Don't shorten the strings anymore,
instead define end_match(1|2) more carefully.
Use GET_CHAR_BEFORE_2 for `begline'.
2000-04-19 21:39:18 +00:00
Gerd Moellmann
5e3dac3f5a *** empty log message *** 2000-04-19 15:38:21 +00:00
Gerd Moellmann
62694e5aea (with_echo_area_buffer): Add more `int' parameters for
the `variable argument list' to make it work on Alpha.
2000-04-19 15:37:26 +00:00
Gerd Moellmann
e1ef1fb2e2 (SELECTED_FRAME): Change definition to compile cleanly
on 64-bit systems where NULL is defined as `0'.
2000-04-19 15:36:39 +00:00
Gerd Moellmann
cb9215e4f3 *** empty log message *** 2000-04-19 14:37:02 +00:00
Gerd Moellmann
2eca7f4d65 (_LP64) [!_LP64]: Define.
(ORDINARY_LINK): Define for NetBSD.
2000-04-19 14:32:35 +00:00
Gerd Moellmann
69e82333d0 (ORDINARY_LINK): Define for NetBSD. 2000-04-19 14:32:01 +00:00
Dave Love
c750667ef3 *** empty log message *** 2000-04-19 13:04:59 +00:00
Dave Love
cd667a182d (LIBS): Don't use.
(GETLOADAVG_OBJ): Define again.
(otherobj): Add GETLOADAVG_OBJ.
2000-04-19 11:24:43 +00:00
Dave Love
8fffa182c3 Revert HAVE_GETLOADAVG changes. 2000-04-19 11:21:37 +00:00
Dave Love
f532dca004 (Fmake_indirect_buffer): Escape newline in doc. 2000-04-19 08:55:09 +00:00
Gerd Moellmann
f6d3257b91 *** empty log message *** 2000-04-18 13:42:41 +00:00
Gerd Moellmann
5dbf89bc7d (read_filtered_event): Cancel and start busy cursor. 2000-04-18 13:41:33 +00:00
Gerd Moellmann
1c7e22fd06 (x_produce_glyphs) <ASCII chars>: Take into account
that the per-character metrics may be null.
2000-04-18 13:02:55 +00:00
Gerd Moellmann
0daee09518 *** empty log message *** 2000-04-17 15:27:23 +00:00
Gerd Moellmann
7e9d581860 (clone_per_buffer_values): New function.
(Fmake_indirect_buffer): Add optional argument CLONE.  Call
clone_per_buffer_values if CLONE is not nil.
2000-04-17 15:26:29 +00:00
Gerd Moellmann
e10f64e713 *** empty log message *** 2000-04-17 12:38:09 +00:00
Gerd Moellmann
1beeb7e338 (Ftty_suppress_bold_inverse_default_colors): Doc fix. 2000-04-17 12:36:15 +00:00
Dave Love
38687d439a *** empty log message *** 2000-04-16 18:39:01 +00:00
Dave Love
07c6adecef Remove obsolete localcpp stuff.
(GETLOADAVG_OBJ): Don't define.
(obj): Move LIBOBJS...
(otherobj): ... to here.
(MSDOS_OBJ): Convert to make variable -- preprocessing zapped
whitespace-only lines after the continuation (Irix).
2000-04-16 17:33:08 +00:00
Gerd Moellmann
c21c726259 *** empty log message *** 2000-04-14 19:45:47 +00:00
Gerd Moellmann
3b4ae1ccce (xpm_load) [DEBUG_X_COLORS]: Register colors. 2000-04-14 19:36:35 +00:00
Gerd Moellmann
1f71352bba (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'. 2000-04-14 19:27:02 +00:00
Dave Love
314767c0a5 Don't define autoconfiscated NLIST_STRUCT. 2000-04-14 17:54:26 +00:00
Dave Love
02cefd5a10 Don't define
autoconfiscated HAVE_GETLOADAVG.
2000-04-14 17:52:41 +00:00
Dave Love
f6f98c87c2 Don't define autoconfiscated
BROKEN_MKTIME.
2000-04-14 17:51:55 +00:00
Gerd Moellmann
a2522dca96 *** empty log message *** 2000-04-14 13:30:35 +00:00
Gerd Moellmann
c1355e1fb4 (MAKE_LOCK_NAME): Allocate 2 more bytes.
(fill_in_lock_file_name): Avoid existing files that aren't
links.
2000-04-14 13:03:20 +00:00
Dave Love
33744b5de6 *** empty log message *** 2000-04-14 12:47:38 +00:00
Dave Love
f6a92bd8d1 (LIBOBJS): New variable.
(obj): Use it.
2000-04-14 12:40:49 +00:00
Dave Love
33fef74ef0 New variable.
(INTERVAL_SRC): Convert to make variable.
(INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
(HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
(obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
@LIBOBJS@.
(SOME_MACHINE_OBJECTS): Remove interval stuff.
(lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
(shortlisp): Add facemenu, float-sup, frame.
(SOME_MACHINE_LISP): Remove them from here.
(LIBES): Change unused LDLIBS to autoconf LIBS.
2000-04-14 12:34:44 +00:00
Dave Love
3218b63918 Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION. 2000-04-14 11:24:14 +00:00
Kenichi Handa
d3f40cbd57 (update_compositions): If FROM and TO is not in a
valid range, do nothing.
2000-04-13 23:38:19 +00:00
Kenichi Handa
9d3d591637 *** empty log message *** 2000-04-13 23:37:37 +00:00