Commit graph

10633 commits

Author SHA1 Message Date
Kenichi Handa ce51c54c3f (Fsubstitute_in_file_name): Adjusted for the change of
CHAR_STRING.
(Finsert_file_contents): Set Vlast_coding_system_used before
calling signal_after_change.  Call update_compositions if some
texts are inserted..
(Fwrite_region): Adjusted for the change of a_write and e_write.
(a_write): Argument changed.  Work based on character position,
not byte position.
(e_write): Argument changed.  Handle new way of composition.
1999-12-15 00:11:24 +00:00
Kenichi Handa 9d100795e3 (main): Call syms_of_composite. 1999-12-15 00:10:49 +00:00
Kenichi Handa d5c2c40348 (Fchar_to_string): Adjusted for the change of
CHAR_STRING.
(general_insert_function): Likewise.
(Finsert_char): Likewise.
(Fsubst_char_in_region): Likewise.  Call update_compositions.
(Ftranslate_region): Call update_compositions.
(Ftranspose_regions): Call update_compositions.
1999-12-15 00:10:23 +00:00
Kenichi Handa 91f045dfa3 (doprnt1): Adjusted for the change of CHAR_STRING. 1999-12-15 00:09:57 +00:00
Kenichi Handa 959804a08d (direct_output_forward_char): Check point moving into
or out of a composition.  If so, give up direct method.
1999-12-15 00:09:32 +00:00
Kenichi Handa a90fbbf691 (enum glyph_type): New member COMPOSITE_GLYPH.
(struct glyph): Add new sub-structure cmp to the union `u'.
(enum display_element_type): New member IT_COMPOSITION.
(enum prop_idx): New member COMPOSITION_PROP_IDX.
(struct it): New members cmp_id, cmp_len.
1999-12-15 00:09:03 +00:00
Kenichi Handa e19c1eb40e (Faref): Delete codes for a composite character..
(Faset): Likewise.  Adjusted for the change of CHAR_STRING.
1999-12-15 00:08:39 +00:00
Kenichi Handa ca4c9455f8 New file 1999-12-15 00:08:01 +00:00
Kenichi Handa ec6d2bb84b Include composite.h.
(DECODE_CHARACTER_ASCII): Don't handle composition here.
(DECODE_CHARACTER_DIMENSION1): Likewise.  Don't check the validity
of multibyte code here.
(DECODE_CHARACTER_DIMENSION2): Likewise.
(detect_coding_emacs_mule): Change the case label from
EMACS_leading_code_composition to 0x80.
(detect_coding_iso2022): Handle new composition sequence.
(DECODE_ISO_CHARACTER): Likewise.
(check_composing_code): Deleted.
(coding_allocate_composition_data): New function.
(CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
(CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
(DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
(decode_coding_iso2022): Handle new composition sequence.
(ENCODE_ISO_CHARACTER): Don't check composition here.
(ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
(ENCODE_COMPOSITION_NO_RULE_START)
(ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
(ENCODE_COMPOSITION_END): Handle new composition sequence.
(ENCODE_COMPOSITION_FAKE_START): New macro.
(encode_coding_iso2022): Handle new composition sequence.
(ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
(encode_coding_sjis_big5): Ignore composition.
(setup_coding_system): Initialize new members of struct
coding_system.  Enable composition only when the coding system has
`composition' property t.
(coding_free_composition_data) (coding_adjust_composition_offset)
(coding_save_composition) (coding_restore_composition): New
functions.
(code_convert_region): Call coding_save_composition for encoding
and coding_allocate_composition_data for decoding.  Don't skip
ASCII characters if we handle composition on encoding.  Call
signal_after_change with Check_BORDER.
(code_convert_string): Call coding_save_composition for encoding
and coding_allocate_composition_data for decoding.  Don't skip
ASCII characters if we handle composition on encoding.
(code_convert_string1): Set Vlast_coding_system_used after calling
code_convert_string.
(code_convert_string_norecord): Disable composition.
(Fset_terminal_coding_system_internal): Likewise.
(Fset_safe_terminal_coding_system_internal): Likewise.
(Fset_keyboard_coding_system_internal): Likewise.
(init_coding_once): Set emacs_code_class[0x80] to
EMACS_invalid_code.
1999-12-15 00:06:45 +00:00
Kenichi Handa 279d9f7b8d (emacs_code_class_type): Delete the member
EMACS_leading_code_composition.
(COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
(COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
(COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
(COMPOSING_WITH_RULE_P): Macros deleted.
(COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
macros.
(struct composition_data): New structure.
(CODING_FINISH_INSUFFICIENT_CMP): New macro.
(struct coding_system): New members composition_rule_follows,
cmp_data, cmp_data_start, cmp_data_index.
(coding_save_composition) (coding_free_composition_data)
(coding_adjust_composition_offset): Extern them.
1999-12-15 00:05:57 +00:00
Kenichi Handa e55d9cfd36 (internal_self_insert): Adjusted for the change of
CHAR_STRING.
1999-12-15 00:05:19 +00:00
Kenichi Handa 99529c2c73 In this entry, just `Modified' means that codes for a
composite character is deleted.
(Qcomposition) (leading_code_composition)
(charset_composition) (min_composite_char) (cmpchar_table)
(cmpchar_table_size) (n_cmpchars): Deleted.
(SPLIT_COMPOSITE_SEQ): Deleted.
(SPLIT_MULTIBYTE_SEQ): Modified.
(char_to_string): Renamed from non_ascii_char_to_string.
Modified.
(string_to_char): Renamed from string_to_non_ascii_char.
(split_string): Renamed from split_non_ascii_string.
(char_printable_p) (Fsplit_char)
(Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
(char_bytes) (Fchar_width) (strwidth): Modified.
(find_charset_in_str): Argument CMPCHARP deleted.  Modified.
(Fstring): Adjusted for the change of CHAR_STRING.  Modified.
(hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
(CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
(str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
(Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
(Fcmpchar_cmp_count): Deleted.
(Fcompose_string): Implemented by Emacs Lisp in composite.el.
(init_charset_once): Modified.
(syms_of_charset): Modified.
1999-12-15 00:04:59 +00:00
Kenichi Handa f49b37c9a3 In this entry, just `Modified' means that codes for a
composite character is deleted.
(LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
(charset_composition) (MIN_CHAR_COMPOSITION)
(MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
(COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
(PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
(MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
(FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
(PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
Modified.
(SPLIT_STRING): Call split_string, not split_non_ascii_string.
(CHAR_STRING): Delete WORKBUF argument.  Call char_string, not
non_ascii_char_to_string.
(STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
(STRING_CHAR_AND_LENGTH): Likewise.
(FETCH_CHAR_ADVANCE): New macro.
(MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
(MAX_MULTIBYTE_LENGTH): New macro.
(MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
(find_charset_in_str): Argument adjusted.
(CHAR_LEN): Modified.
1999-12-15 00:04:14 +00:00
Kenichi Handa 6982083b65 (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
(ccl_driver): Delete codes for a composite character.
1999-12-15 00:03:45 +00:00
Kenichi Handa 70414a3dac (word_boundary_p): Delete codes for a composite
character.
(Fmake_category_table): New function.
(syms_of_category): Defsubr it.
1999-12-15 00:03:16 +00:00
Kenichi Handa 759f98632f (CATEGORY_SET): Delete codes for a composite character. 1999-12-15 00:02:55 +00:00
Kenichi Handa 66da28809c Include composite.h.
(casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
multibyte character.  Adjusted for the change of CHAR_STRING.
(casify_region): Likewise.  Call update_compositions.
1999-12-15 00:02:33 +00:00
Kenichi Handa bca78757c1 (Fcall_process): Call code_convert_string to encode
arguments.  Use CODING_REQUIRE_DECODING to check if the process
output should be decoded.
1999-12-15 00:02:12 +00:00
Kenichi Handa c80329d154 (Fmake_string): Adjusted for the change of CHAR_STRING. 1999-12-15 00:01:44 +00:00
Kenichi Handa 5b2f4dcae9 (INTERVAL_SRC): Include composite.h.
(INTERVAL_OBJ): Include composite.o.
(SOME_MACHINE_OBJECTS): Include composite.o.
(casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
(syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
Depend on composite.h.
(doc.o): Depend on charset.h.
(keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
(composite.o): New target.
1999-12-15 00:01:14 +00:00
Gerd Moellmann c3c60f13d5 *** empty log message *** 1999-12-14 10:46:48 +00:00
Gerd Moellmann 54a91a0fc6 (show_mouse_face): Don't use updated_area, use TEXT_AREA. 1999-12-14 10:44:20 +00:00
Richard M. Stallman c838eb57a5 *** empty log message *** 1999-12-13 05:47:15 +00:00
Richard M. Stallman f84db7d56a (Fstart_kbd_macro): Handle case where last-kbd-macro
has been changed by the Lisp code.
1999-12-13 03:50:21 +00:00
Richard M. Stallman d3887e33a9 (Fall_completions): Doc fix. 1999-12-13 03:50:00 +00:00
Gerd Moellmann d8eccf12ba *** empty log message *** 1999-12-12 13:23:20 +00:00
Gerd Moellmann 0b60fc911b Indentation fixes. 1999-12-12 12:23:08 +00:00
Stefan Monnier f28eba7baf *** empty log message *** 1999-12-12 06:57:54 +00:00
Stefan Monnier ae56feaeda *** empty log message *** 1999-12-10 18:14:01 +00:00
Stefan Monnier db74249bb9 (x_initialize): only setup xaw3d_* if they've been declared. 1999-12-10 17:37:57 +00:00
Gerd Moellmann dfa1c6ae2c (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
to frame.h.
1999-12-10 08:55:12 +00:00
Gerd Moellmann 3da48525dc (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
[!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
1999-12-10 08:54:11 +00:00
Stefan Monnier ec18280fd8 (#includes): Allow compilation with only Xaw.
(xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
(xt_action_hook): Replace XAW3D by XAW.
(xaw3d_jump_callback): Renamed to xaw_jump_callback.
(xaw_jump_callback): Renamed from xaw3d_jump_callback.
Determine epsilon dynamically and don't try to be too clever.
(xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
(xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
Handle both Xaw3d with arrow-scrollbars and with Xaw-style
scrollbar (using `ratio').
(x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
scrollbar we have so as to set it up more optimally and to fix
xaw3d_arrow_scroll and xaw3d_pick_top.
(x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
bottom of the Xaw3d scrollbar, to work around its tendency to refuse
shrinking the thumb.  Also make sure that `XawScrollbarSetThumb'
is not ignored, using a major gross hack.
(x_initialize): Init default values for xaw3d_arrow_scroll and
xaw3d_pick_top.
1999-12-10 01:40:47 +00:00
Stefan Monnier eef28553ff * keyboard.c (Qratio): New symbol.
(scroll_bar_parts): Add `Qratio' to it.
(syms_of_keyboard): Init `Qratio'.
1999-12-10 01:39:53 +00:00
Stefan Monnier 57207f1e9c (scroll_bar_part): Add `scroll_bar_move_ratio'. 1999-12-10 01:39:30 +00:00
Dave Love 83b6d970f1 *** empty log message *** 1999-12-09 17:54:56 +00:00
Dave Love 7870923124 (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE. 1999-12-09 17:41:58 +00:00
Eli Zaretskii 036480cbb9 Oops, forgot to commit the change in dispextern.h together with the
rest of the changes for tty color support.
1999-12-08 14:22:24 +00:00
Gerd Moellmann 3648c84252 (call_debugger): When entering the debugger while redisplaying,
reset redisplaying_p, and go back to the top-level if the debugger
returns.
1999-12-08 12:00:57 +00:00
Gerd Moellmann 05e71564d8 (delete_window): Block input for the time window
matrices are being changed.
1999-12-07 20:20:30 +00:00
Gerd Moellmann 15daa94436 (x_set_menu_resources_from_menu_face): Make sure
basic faces are realized before trying to use face `menu'.
1999-12-07 20:06:40 +00:00
Dave Love b46cd53651 *** empty log message *** 1999-12-07 11:07:41 +00:00
Dave Love 3ccf78e059 (Fintern_soft): Fix newlines in doc string. 1999-12-07 11:06:22 +00:00
Gerd Moellmann 96acb1f72f (UNEXEC): Use unexelf.o instead of unexsgi.o. 1999-12-07 09:54:52 +00:00
Gerd Moellmann 2bf57b132c (UNEXEC) [USG5_4]: Use unexelf.o instead of
unexsgi.o again.
1999-12-07 09:50:50 +00:00
Gerd Moellmann 52da6a59f1 Include <syms.h>, not <sym.h> on IRIX. Removed
duplicate definition of ElfW.
(find_section): Copied from unexsgi.c.
(unexec): Use find_section.  Adjust whitespace.  Initialize
new_data2_offset based on old_data, not sbss (this fixes a bug on
IRIX6).  Change #ifdef __mips to __sgi, since it's IRIX-specific.
Adjust test for presence of .mdebug section to the new return
value of find_section.

Merge changes from 20.5.
(unexec): Handle .lit4 and .lit8 unconditionally.
1999-12-07 09:50:01 +00:00
Stefan Monnier 7dae4502b6 * editfns.c (Fdelete_and_extract_region): New function.
(syms_of_editfns): register it.
* insdel.c (del_range): update del_range_1 call.
(del_range_1, del_range_2): Add a ret_string argument to
request that the deleted text be returned.
(del_range_byte, del_range_both): Update del_range_2 call.
* lisp.h (del_range_1, del_range_2): change prototype
* casefiddle.c (casify_region): Update del_range_1 call.
* coding.c (code_convert_region): Update del_range_2 call.
* fileio.c (Finsert_file_contents): Update del_range_2 call.
1999-12-07 04:42:40 +00:00
Gerd Moellmann 397e4fae84 (set_lface_from_font_name): Fix incomplete merge. 1999-12-06 21:23:20 +00:00
Gerd Moellmann 3d973f7115 *** empty log message *** 1999-12-06 19:46:40 +00:00
Gerd Moellmann b55048d4d6 (Fintern_soft): Accept a symbol argument. 1999-12-06 17:52:27 +00:00
Eli Zaretskii 740e985fb0 (SYSTEM_PURESIZE_EXTRA): Reduce to 40000. 1999-12-06 17:09:21 +00:00
Eli Zaretskii 809f3d5188 (adjust_markers_for_delete): Fix last change. 1999-12-06 17:04:33 +00:00
Eli Zaretskii 89774ec398 (INTERNAL_TERMINAL): Add entries for color support. 1999-12-06 16:55:26 +00:00
Eli Zaretskii 2d764c783d Changes for automatic remapping of X colors on terminal frames:
* xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
	frames.
	(Vface_tty_color_alist): Remove.
	(tty_defined_color): New function.
	(defined_color): Rewrite to support any type of frame.
	(tty_color_name): New function.
	(face_color_supported_p, Fface_color_gray_p,
	Fface_color_supported_p): Support non-X frames.
	(load_color): Enclose the color name in quotes, in the log
	messages.  Remove DOS-specific version of load_color.
	(realize_tty_face): Take the supported colors from
	tty-color-alist.  Support translation of X colors to the closest
	tty color, for both MSDOS and tty frames.
	[MSDOS]: Don't invert face colors if they were taken from the
	frame colors.
	(Fface_register_tty_color, Fface_clear_tty_colors): Remove.

	* frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
	Define a mostly empty surrogate.
	(tty_display): Declare.

	* frame.c (make_terminal_frame) [!macintosh]: Don't use
	tty_display.
	(Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
	frames when the frame's param_alist includes 'reverse.
	(tty_display): Define.
	(make_terminal_frame) [!MSDOS]: Assign &tty_display to the
	output_data.x member.
	(Fframe_parameters): Return foreground and background color names
	on tty frames as well, in addition to MSDOS frames.

	* msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
	selected_frame.
	(struct x_output): Remove unused members; document who uses each
	member.
	(FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
	FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
	FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
	FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
	unused macro definintions.

	* msdos.c (IT_set_frame_parameters): Don't call
	recompute_basic_faces, the next redisplay will, anyway.
	(x_current_display): Remove unused variable.
	Many functions: changes for Lisp_object selected_frame.
	(IT_set_face): If the tty_reverse_p flag is set for the face,
	reverse the foreground and background colors.
	(Fmsdos_remember_default_colors): New function.
	(syms_of_msdos): Defsubr it.
	(IT_set_frame_parameters): Use initial_screen_colors[] when
	creating a new frame.  If the frame parameters include 'reverse,
	swap the foreground and background colors.
	(internal_terminal_init): Initialize initial_screen_colors to -1.
	(syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
	cus-start.el.

	* Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.

	* xfns.c (x_defined_color): Rename from defined_color.  All
	callers changed.
	(Fxw_color_defined_p): Renamed from Fx_color_defined_p;
	all callers changed.
	(Fxw_color_values): Renamed from Fx_color_values; all callers
	changed.
	(Fxw_display_color_p): Renamed from Fx_display_color_p; all
	callers changed.
	(x_window_to_frame, x_any_window_to_frame,
	x_non_menubar_window_to_frame, x_menubar_window_to_frame,
	x_top_window_to_frame): Use !FRAME_X_P instead of
	f->output_data.nothing.
	* xterm.h (x_defined_color): Rename from defined_color.

	* w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
	f->output_data.nothing.
	(Fxw_color_defined_p): Renamed from Fx_color_defined_p;
	all callers changed.
	(Fxw_color_values): Renamed from Fx_color_values; all callers
	changed.
	(Fxw_display_color_p): Renamed from Fx_display_color_p; all
	callers changed.

	* dispextern.h (tty_color_name): Add prototype.

	* xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
	f->output_data.nothing.
	* w32menu.c (menubar_id_to_frame): Likewise.
	* w32term.h (w32_output): Declare.

	* dosfns.c (Qmsdos_color_translate): Remove.
	(msdos_stdcolor_name): Now returns a Lisp_Object.
	* dosfns.h (Qmsdos_color_translate): Remove.

	* s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
1999-12-06 16:54:09 +00:00
Kenichi Handa b3e5232e68 *** empty log message *** 1999-12-06 04:53:51 +00:00
Kenichi Handa 94ef31ccad (adjust_markers_for_delete): Make it non-static. 1999-12-06 04:47:25 +00:00
Kenichi Handa 98a7d2683c (decide_coding_unwind): Renamed from
set_auto_coding_unwind.
(Finsert_file_contents): Make single unwind protect to call both
Vset_auto_coding_function and Ffind_operation_coding_system.
1999-12-06 04:46:51 +00:00
Stefan Monnier db0e466c89 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
operators and handle them properly.
* regex.h (RE_ALL_GREEDY): New option.
(RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
sorting would put it.
(RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
(_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
1999-12-05 04:05:42 +00:00
Dave Love 22afa6e864 *** empty log message *** 1999-12-04 19:59:54 +00:00
Dave Love a356f64372 Derived from acorn.h by deletions. 1999-12-04 19:46:10 +00:00
Dave Love 40afb9673d Comments only. 1999-12-03 20:56:14 +00:00
Dave Love 5920df330c (Fmessage_or_box): Use use_dialog_box. 1999-12-03 20:48:13 +00:00
Gerd Moellmann ddf8eff5f6 *** empty log message *** 1999-12-02 08:04:03 +00:00
Gerd Moellmann d5aa923ef4 (UNEXEC): Use unexsgi.o instead of unexelf.o. 1999-12-02 07:59:24 +00:00
Gerd Moellmann 967e161297 (UNEXEC) [USG5_4]: Use unexsgi.o instead of
unexelf.o.
1999-12-02 07:59:06 +00:00
Gerd Moellmann c42b4fab89 (LIBS_SYSTEM): Add -lgen because that's needed
for building with Motif.
1999-12-02 07:58:22 +00:00
Dave Love fa09a82db6 (main): Set LANG=C iff AX3_2 defined. 1999-12-01 12:13:13 +00:00
Gerd Moellmann 27a9e9b3fa Correct typo. 1999-11-28 20:14:03 +00:00
Gerd Moellmann 27413d9924 (HAVE_SETITIMER, HAVE_UALARM): New. 1999-11-28 20:12:41 +00:00
Gerd Moellmann c53a6701c3 (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
(EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
macros.
1999-11-28 20:11:56 +00:00
Richard M. Stallman dfe35e7b88 Comment change. 1999-11-28 17:29:57 +00:00
Gerd Moellmann 717d0121dd *** empty log message *** 1999-11-28 12:49:29 +00:00
Gerd Moellmann 2d6d9df0f4 (Fwindow_end): Don't call temp_set_pt_both with
out of range position.
1999-11-28 12:48:29 +00:00
Gerd Moellmann f9632fc8a4 (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
Switch off busy-cursor by setting inhibit_busy_cursor to 2.
1999-11-28 12:37:33 +00:00
Eli Zaretskii 613a83462a (Fmake_char_internal): Print the charset ID when
signalling an error.
1999-11-28 10:20:12 +00:00
Eli Zaretskii 59c65f1e9f (synchronize_locale): Avoid compiler warnings about
pointer type mismatch.
1999-11-28 10:16:33 +00:00
Richard M. Stallman d01f357041 (Fdelete_field): Make it noninteractive. Return nil. 1999-11-26 23:08:26 +00:00
Gerd Moellmann 65a3ccf741 (BASE_PURESIZE): Increase to 550000. 1999-11-26 15:17:52 +00:00
Gerd Moellmann b3b9859282 *** empty log message *** 1999-11-26 12:31:42 +00:00
Gerd Moellmann 0087ade67a (set_text_properties): New function. Like
Fset_text_properties, but with additional parameter
SIGNAL_AFTER_CHANGE_P.  If that is nil, don't signal after
changes.
(Fset_text_properties): Use it.
1999-11-26 12:07:31 +00:00
Gerd Moellmann f2cab2ea4a (insert_1_both): Call set_text_properties with last
parameter nil so that no after changes will be signaled.
1999-11-26 12:07:04 +00:00
Gerd Moellmann 48778e46da Add prototype for set_text_properties. 1999-11-26 12:06:29 +00:00
Gerd Moellmann 18df93696d (set_lface_from_font_name): Fix previous change.
(recompute_basic_faces): Change assert to abort.
1999-11-26 10:17:53 +00:00
Dave Love 71a8e74b6e (Fnthcdr, Fnreverse): Inline cdr.
(Fmember, Fdelq, Fdelete): Inline car.
(Fy_or_n_p): Doc fix.
1999-11-25 15:26:37 +00:00
Gerd Moellmann 3221576ba2 (set_lface_from_font_name): New parameter may_fail_p.
Callers changed.  If specified font name is bogus, and mail_fail_p
is set, try to use a reasonable default.
1999-11-25 15:01:15 +00:00
Gerd Moellmann bc6a57829a *** empty log message *** 1999-11-25 10:20:13 +00:00
Gerd Moellmann 975c62260a (direct_output_for_insert): Set glyph row's
displays_text_p flag.  Correct window's window_end_vpos if
necessary.
1999-11-25 10:14:15 +00:00
Paul Eggert 0c8559bbd1 * emacs.c (fixup_locale): Don't bother to record initial locale.
(synchronize_locale): If the desired locale is nil,
treat it as if it were the empty string,
so that we set the locale from the environment.
1999-11-25 05:33:31 +00:00
Kenichi Handa 22d92d6b53 (Finsert_file_contents): Set buffer-file-coding-system
of the current buffer via Fset.
1999-11-25 04:41:52 +00:00
Kenichi Handa 3573735116 *** empty log message *** 1999-11-25 04:41:00 +00:00
Dave Love fb4927c45d Don't duplicate Qmode_line definition done elsewhere. 1999-11-24 14:38:09 +00:00
Dave Love 5562b47fcd *** empty log message *** 1999-11-24 14:36:36 +00:00
Dave Love 0cafb359c7 Don't duplicate Qdisplay definition done elsewhere. 1999-11-24 14:28:33 +00:00
Dave Love a7e27ef736 Don't duplicate Qheight, Qwidth definitions done elsewhere. 1999-11-24 14:06:26 +00:00
Gerd Moellmann cee971adcc Fix typo in previous change. 1999-11-24 14:01:54 +00:00
Gerd Moellmann 00da0e4ab4 (PVEC_FLAG): New variable. 1999-11-24 13:56:09 +00:00
Gerd Moellmann f1b14279ae (enum pvec_type): Put PVEC_FLAG in #if 0. 1999-11-24 13:53:39 +00:00
Dave Love 851cab134c Include sys/stat.h. Declare filemodestring. 1999-11-24 12:56:02 +00:00
Gerd Moellmann b1775dc141 *** empty log message *** 1999-11-23 17:27:52 +00:00
Gerd Moellmann c31d7cc9f3 (unexec): Use unsigned instead of uintptr_t because
that fails on IBM PowerPC, AIX 4.2.
1999-11-23 17:22:03 +00:00
Eli Zaretskii 08de620019 (syms_of_buffer): Add %z, %Z, %m and %& to the doc
string of mode-line-format.  Remove the obsolete %t.
1999-11-23 13:17:01 +00:00
Gerd Moellmann f2fa858fe4 (direct_output_for_insert): Increment glyph positions
for glyphs from buffer text only.
1999-11-22 17:38:21 +00:00
Gerd Moellmann 02fda8fffb *** empty log message *** 1999-11-22 13:22:55 +00:00
Gerd Moellmann 30aa3f192c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
(gdb_data_seg_bits): New variables.
1999-11-22 13:19:41 +00:00
Gerd Moellmann d0ee1a95da (enum gdb_lisp_params): Put in #if 0, since it doesn't
work on systems not allowing enumerators > INT_MAX, and it
won't work if EMACS_INT is long long.
1999-11-22 13:17:23 +00:00
Paul Eggert 1b0d24e7f6 *** empty log message *** 1999-11-22 08:21:28 +00:00
Paul Eggert 493c3eed38 (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
New macros.
1999-11-22 08:20:53 +00:00
Paul Eggert 08e3087b62 (malloc, realloc, calloc): Remove decls;
stdlib.h now does this.
1999-11-22 08:20:40 +00:00
Paul Eggert ca9c056758 * callproc.c (strerror): Remove decl.
* fileio.c (strerror): Likewise.
* process.c (strerror): Likewise.
* emacs.c (strerror): Likewise.
(Vsystem_messages_locale): Renamed from Vmessages_locale.
All uses changed.
(Vprevious_system_messages_locale): Likewise, from
Vprevious_messages_locale.
(Vsystem_time_locale): Likewise, from Vtime_locale.
(Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
(ABORT_RETURN_TYPE): New macro.
(abort): Return type is now ABORT_RETURN_TYPE.
(main): Always invoke init_signals, even if POSIX_SIGNALS is not
defined.
(syms_of_emacs): messages-locale -> system-messages-locale,
previous-messages-locale -> previous-system-messages-locale,
time-locale -> system-time-locale,
previous-time-locale -> previous-system-time-locale.

* gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
(const): Do not define; that's config.h's job.
(<limits.h>): Include if HAVE_LIMITS_H is defined.
(CHAR_BIT): Move test for definedness outside of limits.h condition.
(<stddef.h>): Include if STDC_HEADERS is defined.
(FREE_RETURN_TYPE): New macro.
(free): Return type is now FREE_RETURN_TYPE.

* lisp.h (synchronize_system_time_locale): Renamed from
synchronize_time_locale.  All uses changed.
(synchronize_system_messages_locale): Likewise, from
synchronize_messages_locale.

* process.c (sys_siglist): Remove.

* syntax.c (scan_sexps_forward): Use abort, not assert.

* sysdep.c (my_sys_siglist): New var.
(sys_siglist): New macro.  Remove old initialized vars of same name.
(init_signals): Initialize sys_siglist.

* xfns.c (abort): Remove decl; stdlib.h now does this.
1999-11-22 08:19:51 +00:00
Paul Eggert 719f38ac95 (my_strftime): Some old compilers object to '\a', so don't bother
optimizing for it.
1999-11-18 23:22:16 +00:00
Dave Love 946173adb4 *** empty log message *** 1999-11-18 18:28:59 +00:00
Dave Love 2f2500efff Add forward declaration for get_boot_time_1. 1999-11-18 18:20:28 +00:00
Dave Love 0dcd5b54e2 *** empty log message *** 1999-11-18 18:14:29 +00:00
Dave Love a1051b732b (Finternal_show_cursor_p): Fix doc string. 1999-11-18 18:03:57 +00:00
Gerd Moellmann 71447e8f88 *** empty log message *** 1999-11-18 13:34:19 +00:00
Gerd Moellmann 0afdfe3895 (struct buffer_text): Add comment about moving
buffer text if REL_ALLOC is defined.
1999-11-18 13:31:04 +00:00
Kenichi Handa d2d9586a77 (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
allocate memory for push_key_description.
(describe_buffer_bindings): Likewise.
1999-11-18 05:10:13 +00:00
Kenichi Handa 2d0ffc9aa8 (echo_char): Use KEY_DESCRIPTION_SIZE to check free
memory for push_key_description.
1999-11-18 05:09:18 +00:00
Kenichi Handa b0ca4f56d5 (KEY_DESCRIPTION_SIZE): New macro. 1999-11-18 05:08:25 +00:00
Kenichi Handa eeedff6357 *** empty log message *** 1999-11-18 05:07:40 +00:00
Gerd Moellmann a67fb17515 *** empty log message *** 1999-11-17 21:12:32 +00:00
Gerd Moellmann 5d7e4a2c3c *** empty log message *** 1999-11-17 21:08:37 +00:00
Gerd Moellmann dc6f74cf0e (Fx_show_busy_cursor): Doc-fix.
(Fx_hide_busy_cursor): Ditto.
1999-11-17 21:03:12 +00:00
Gerd Moellmann b6f8e8063f (unexec): Handle .rel.dyn section. 1999-11-17 20:58:06 +00:00
Dave Love b5b41e0276 *** empty log message *** 1999-11-16 19:51:07 +00:00
Dave Love 441d75e5ce (Fdocumentation): Remove gcpro here too. 1999-11-16 18:24:17 +00:00
Gerd Moellmann e35b612304 (command_loop_1): Remove no_redisplay. 1999-11-16 15:55:07 +00:00
Gerd Moellmann 0a14b9bb34 *** empty log message *** 1999-11-16 11:44:02 +00:00
Gerd Moellmann 5494b50f0c (PRINTPREPARE): Don't call setup_echo_area_for_printing
in noninteractive.
1999-11-16 11:36:01 +00:00
Gerd Moellmann 5bcfeb490e (ensure_echo_area_buffers): New.
(with_echo_area_buffer): Use it.
(setup_echo_area_for_printing): Ditto.
1999-11-14 16:37:23 +00:00
Gerd Moellmann b05d3bee50 *** empty log message *** 1999-11-13 23:42:59 +00:00
Gerd Moellmann 9d1ee97679 (indicate-empty-lines): Doc-fix. 1999-11-13 23:30:57 +00:00
Gerd Moellmann e7f90eab7e (term_init): If "op" isn't available, don't support color
because we can't switch back to the default foreground and
background.
1999-11-12 14:35:43 +00:00
Gerd Moellmann 9b2e6e4cd6 *** empty log message *** 1999-11-12 13:10:20 +00:00
Gerd Moellmann bbd7d5d3ed (Fdocumentation_property): Remove GCPRO because
Fsubstitute_command_keys gcpro's the string.
1999-11-12 12:50:54 +00:00
Kenichi Handa e8cce5afa5 (Ftranslate_region): Check the buffer multibyteness. 1999-11-12 00:09:03 +00:00
Kenichi Handa 1bf21027fc *** empty log message *** 1999-11-12 00:08:09 +00:00
Gerd Moellmann 3bc6df5389 *** empty log message *** 1999-11-11 11:57:47 +00:00
Gerd Moellmann 339ee9797d Remove USE_TEXT_PROPERTIES. 1999-11-11 11:45:06 +00:00
Gerd Moellmann 35a5514b96 *** empty log message *** 1999-11-10 22:53:16 +00:00
Gerd Moellmann bfd2209f52 (QCuser_data): Removed.
(syms_of_xfns): Initialization of QCuser_data removed.
(parse_image_spec): Don't handle :user-data specially.  Allow
unknown keys.  Remove parameter ALLOW_OTHER_KEYS.
(xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
(tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
parse_image_spec accordingly.
1999-11-10 22:05:36 +00:00
Richard M. Stallman 4ea68fcc0e *** empty log message *** 1999-11-09 19:08:51 +00:00
Richard M. Stallman 2c6ea900ee (Fforward_word): Handle fields even if would have hit
an edge of the buffer.  Return nil if affected by fields.
1999-11-09 19:00:59 +00:00
Richard M. Stallman c252ce7653 (Fbeginning_of_line): Doc fix.
(Fend_of_line): Doc fix.
1999-11-09 18:46:09 +00:00
Richard M. Stallman a3caef99ae (Fline_beginning_position): If N is not 1,
pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.

(preceding_pos): Function deleted.
(text_property_stickiness): Decrement POS directly.
Fix a confusion that used PT instead of POS.

(find_field): Properly handle the case
of a field boundary where `field' inherits from neither side.

(Ffield_beginning, Ffield_end): Doc fixes.
(Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
1999-11-09 18:42:28 +00:00
Gerd Moellmann fa9aabf634 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
BEFORE_POTENTIAL_GC before DISCARD.
1999-11-08 00:06:50 +00:00
Gerd Moellmann 033a5fa309 (Fgarbage_collect): Call unmark_byte_stack. 1999-11-07 22:45:14 +00:00
Gerd Moellmann 8e6e83b3ea Add prototype for unmark_byte_stack. 1999-11-07 22:44:23 +00:00
Gerd Moellmann a719d13ed3 (mark_byte_stack): Use XMARKBIT and XMARK.
(unmark_byte_stack): Renamed from relocate_byte_pcs.  Use
XUNMARK.
1999-11-07 22:44:06 +00:00
Gerd Moellmann 55b064bdb7 Remove conditional computation on USE_TEXT_PROPERTIES.
(resize_mini_window): Fix computation of needed
mini-window height.
1999-11-07 22:36:55 +00:00