Commit graph

10633 commits

Author SHA1 Message Date
Gerd Moellmann 2d9811c410 (Fproperties): New.
(syms_of_editfns): Defsubr it.
1999-09-25 19:57:50 +00:00
Gerd Moellmann 7ab1745fb8 (image_error): Use add_to_log. 1999-09-23 22:17:46 +00:00
Gerd Moellmann 1b8f7fbca2 (load_pixmap): Call add_to_log without frame parameter.
(load_face_font_or_fontset, load_color,
merge_face_vector_with_property): Ditto.
(add_to_log): Move to xdisp.c.
1999-09-23 22:17:44 +00:00
Gerd Moellmann 937248bc7f (add_to_log): Moved from xfaces.c. Remove frame
parameter.
1999-09-23 22:17:40 +00:00
Gerd Moellmann 86c8e82375 (enlarge_window): Add window parameter instead of using
selected_window.
(Fdisplay_buffer): Call it with window parameter instead of
setting selected_window.
(Fenlarge_window, Fshrink_window): Ditto.
(shrink_mini_window): If there is no recorded height and position
info, resize mini-window to height 1.
1999-09-23 22:17:37 +00:00
Gerd Moellmann 9ee8429940 Add prototype for add_to_log. 1999-09-23 22:17:36 +00:00
Gerd Moellmann e88b3c5076 (XTread_socket) <MotionNotify>: Change #ifdef
USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
1999-09-23 11:58:49 +00:00
Gerd Moellmann da4487236d (resize_mini_window): Use grow_mini_window and
shrink_mini_window.
1999-09-23 11:58:42 +00:00
Gerd Moellmann 57209cbae0 (struct window): New members orig_top, orig_height.
(toplevel): Add prototypes for grow_mini_window and
shrink_mini_window.  Remove prototype for change_window_height.
1999-09-23 11:58:41 +00:00
Gerd Moellmann f984d4fcdf (window_min_size): Add parameter ignore_fixed_p.
(change_window_height): Call window_min_size with new parameter.
(shrink_window_lowest_first, save_restore_orig_size,
grow_mini_window, shrink_mini_window): New.
(make_window, replace_window): Initialize orig_top and
orig_height.
(enlarge_window): Renamed from change_window_height.  Make it
static.
(Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
enlarge_window instead of change_window_height.
1999-09-23 11:58:37 +00:00
Eli Zaretskii 48970f2f02 (frame_name_fnn_p): Fix previous change. 1999-09-21 14:49:28 +00:00
Gerd Moellmann 3f708f4c75 (toplevel): Move include of stdio.h to other includes. 1999-09-20 23:18:49 +00:00
Gerd Moellmann 95384e1ede (readchar): Remove unused variables.
(read_filtered_event, read1, Fmapatoms): Ditto.
(toplevel): Include intervals.h.
1999-09-20 23:18:48 +00:00
Gerd Moellmann b18c598fd0 Add prototype for safe_bcopy, fatal. 1999-09-20 23:18:46 +00:00
Gerd Moellmann 47935df1ad (Flookup_key, Faccessible_keymaps, describe_vector,
keys_of_keymap, syms_of_keymap): Remove unused variables.
1999-09-20 23:18:45 +00:00
Gerd Moellmann 2decc5a9e8 (get_boot_time): Put local variable used in
conditinally compiled section in #ifdef.
(toplevel): Include stdio.h.
1999-09-20 23:18:45 +00:00
Gerd Moellmann cb81ac977e (Fsignal): Remove unused variables.
(Fcommandp, do_autoload): Ditto.
1999-09-20 23:18:44 +00:00
Gerd Moellmann 2ea0266e7d (init_editfns): Remove unused variables.
(Fgoto_char, Fchar_after, Fformat): Ditto.
(message_text, message_length): Put in #ifndef HAVE_MENUS.
1999-09-20 23:18:42 +00:00
Gerd Moellmann 700fb05a49 (direct_output_for_insert): Cast arguments to
safe_bcopy to char *.
1999-09-20 23:18:39 +00:00
Gerd Moellmann dd8daec5e8 (find_symbol_value): Remove unused variables.
(Faref, Fstring_to_number): Ditto.
(toplevel): Include stdio.h.
(Fnumber_to_string): Cast XINT to long for %ld.
1999-09-20 23:18:38 +00:00
Gerd Moellmann fe568ef5dc (casify_object): Remove unused variables.
(casify_region): Ditto.
1999-09-20 23:18:36 +00:00
Gerd Moellmann f002db9312 (sync_frame_with_window_matrix_rows): Disable frame rows
whose corresponding window rows have been disabled in
try_window_id.
1999-09-20 13:02:31 +00:00
Gerd Moellmann f3751a65aa (compute_window_start_on_continuation_line): Handle case
that window start is out of range.
(handle_display_prop, handle_single_display_prop): Replace
marginal area specifications like `left-margin' with `(margin
left-margin)'.
(Qmargin): New.
(syms_of_xdisp): Initialize Qmargin.
1999-09-20 11:25:06 +00:00
Gerd Moellmann 695f302f5c (Fset_text_properties): Remove unused variables.
(text_property_list, verify_interval_modification,
interval_has_all_properties): Ditto.
1999-09-20 00:34:45 +00:00
Gerd Moellmann 4ffe723bfe (update_syntax_table, find_defun_start, back_comment,
describe_syntax, skip_chars): Remove unused variables.
(back_comment, forw_comment): Add braces to if-statement with
if-else as dependent statement.
1999-09-20 00:34:44 +00:00
Gerd Moellmann 41d03b9a59 (list_processes_1): Remove unused variables.
(Fopen_network_stream, create_process): Add parentheses to
conditional expressions.
(create_process): Put declaration of sigchld in #if 0.
(Fopen_network_stream): Removed unused variables.
(Fopen_network_stream, wait_reading_process_input,
wait_reading_process_input, send_process, send_process): Ditto.
(toplevel): Add prototypes for set_waiting_for_input and
keyboard_bit_set.
1999-09-20 00:34:43 +00:00
Gerd Moellmann 0868e74e52 (RETURN_UNGCPRO): Use do-while (0) idiom.
(toplevel): Add prototypes for stuff_char, and
code_convert_string_norecord.
1999-09-20 00:34:41 +00:00
Gerd Moellmann 03cee6ae65 (Frecursive_edit): Remove unused variable.
(command_loop_1, safe_run_hooks, kbd_buffer_get_event,
timer_check, make_lispy_event, menu_bar_items,
menu_bar_one_keymap, menu_bar_item, parse_menu_item,
parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
read_key_sequence): Ditto.  Fread_key_sequence,
Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
(read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
used when GOBBLE_FIRST_EVENT is defined in #ifdef
(Fexecute_extended_command): Cast XINT to long for %ld.
(toplevel) [HAVE_UNISTD_H]: Include unistd.h.
(toplevel): Include sys/types.h.
1999-09-20 00:34:37 +00:00
Gerd Moellmann 3cbd6585e0 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
(Fcall_process): Remove unused variable.
1999-09-20 00:34:36 +00:00
Gerd Moellmann 11017f88a3 (Fexpand_abbrev): Remove unused variables. 1999-09-20 00:34:35 +00:00
Gerd Moellmann 838fad1597 Add prototype for shrink_regexp_cache,
sweep_weak_hash_tables.
1999-09-19 21:46:47 +00:00
Gerd Moellmann 6021f7c517 (copy_text): Removed unused variables.
(count_combining_after, count_combining_after, insert_1_both,
insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
(adjust_after_replace, replace_range): Add parentheses to logical
expressions.  Remove unused variables.
(CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
expression.
1999-09-19 21:46:46 +00:00
Gerd Moellmann 6bfc58e91e Add prototype for r_re_alloc. 1999-09-19 21:46:45 +00:00
Gerd Moellmann 96c5b0a7f9 (Fgarbage_collect): Remove unused variable.
(compact_strings): Add parentheses around assignments in
conditional context.
(toplevel): Put declaration of unused function clear_marks
in #if 0 like its definition.
1999-09-19 21:46:42 +00:00
Dave Love 1db972cb2e (Fopen_network_stream): Use strerror, not gai_strerror. 1999-09-19 15:48:09 +00:00
Dave Love 4baa6f88d0 Declare Fcurrent_message, Fmake_temp_name, read_bytecode_char,
Fx_hide_busy_cursor, getloadavg.
1999-09-19 15:21:45 +00:00
Dave Love 33711cc91c (read_bytecode_char): Declare arg. 1999-09-19 14:46:03 +00:00
Richard M. Stallman d9e28aa00e (echo_area_display): Turn off code that returned
without doing anything when using a terminal frame.
1999-09-18 05:23:24 +00:00
Gerd Moellmann 8d56e206a2 (get_fallback): Remove unused variable.
(x_load_resources): Ditto.  Put local variable used for Motif only
in #ifdef USE_MOTIF.
1999-09-16 20:20:10 +00:00
Gerd Moellmann 15b0ced5c2 Add prototype for uninterrupt_malloc, memory_warnings,
init_fileio_once, syms_of_sound, init_xfns, init_fns
init_sound, check_message_stack.
1999-09-16 20:20:01 +00:00
Gerd Moellmann e39adcdab9 (rotate_right, rotate_left): Add braces to avoid
ambiguous else warning.
(split_interval_left): Remove unused variables.
(previous_interval, adjust_intervals_for_deletion,
set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
(icount, idepth, zero_length): Move into #if 0 section below
original position where these are used.
1999-09-16 20:19:57 +00:00
Gerd Moellmann cda4a5fd20 (main): Remove unused variables.
(sort_args, Fkill_emacs, Fkill_emacs): Ditto.
(toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1999-09-16 20:19:54 +00:00
Gerd Moellmann b8e8eeb646 [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. 1999-09-16 20:19:52 +00:00
Gerd Moellmann 6af718a48b (Fkill_buffer): Remove unused variables.
(Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
init_buffer_once, (syms_of_buffer): Ditto.
1999-09-16 20:19:41 +00:00
Richard M. Stallman 5f8d6a1075 (Vtemporary_file_directory): New variable.
(syms_of_filelock): Set up Lisp variable.

(get_boot_time): Make the temp name in the proper dir.
1999-09-16 19:34:38 +00:00
Gerd Moellmann c0c64ad121 (resize_mini_window): Temporarily set the selected
window's or Vminibuf_scroll_window's height to "fixed" around
the call the change_window_height.
1999-09-16 12:52:27 +00:00
Gerd Moellmann a71eca925b (struct window): New member height_fixed_p. 1999-09-16 12:52:25 +00:00
Gerd Moellmann a34dfd12cc (Fset_window_buffer): Remove unused variables.
(Fset_window_margins): Ditto.
(window_fixed_size_p): Check window's height_fixed_p
flag.
1999-09-16 12:52:22 +00:00
Gerd Moellmann 13c67cc645 (read_minibuf): Remove unused variables.
(read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
(do_completion): Move assignment out of conditional context.
(Fdisplay_completion_list): Add parentheses to conditional expression.
1999-09-16 12:52:20 +00:00
Gerd Moellmann 88d33e5264 Add prototype for no_switch_window. 1999-09-16 12:52:18 +00:00
Gerd Moellmann 79a65b7fbe (Fdelete_frame): Correct local variable pointing to
selected frame after selecting new frame.
1999-09-16 12:52:16 +00:00
Gerd Moellmann d2d2ddaf52 (direct_output_forward_char): Don't use this method
if showing a message or a message was just cleared because we
might need to resize the mini-window.
1999-09-16 12:52:13 +00:00
Gerd Moellmann bb10ca9348 (toplevel) [HAVE_TERMCAP_H]: Include termcap.h. 1999-09-16 12:52:12 +00:00
Gerd Moellmann faa935b653 (single_menu_item, Fx_popup_menu, Fx_popup_menu,
single_submenu, update_frame_menubar, set_frame_menubar,
free_frame_menubar, xmenu_show, xdialog_show): Remove unused
variables.
1999-09-15 12:58:53 +00:00
Gerd Moellmann d2c48e866a (resize_mini_window): Don't report changed window
height if it actually hasn't changed.
1999-09-15 12:58:44 +00:00
Gerd Moellmann ccce60568f (set_frame_size, EmacsFrameSetCharSize): Remove
unused variables.
(mark_shell_size_user_specified): Put in #if 0 because not used.
(create_frame_gcs): Put in #if 0 because currently unused.
(first_frame_p): Ditto.
1999-09-15 12:58:42 +00:00
Gerd Moellmann b0f61f1525 (OUTPUT_IF, OUTPUT1_IF): Use do-while.
(encode_terminal_code): Remove unused variables.
(turn_off_face): Ditto.
(toplevel): Include termcap.h if HAVE_TERMCAP_H.
1999-09-15 12:58:40 +00:00
Gerd Moellmann 63fbf4ff16 (PRINTFULLP): Removed because it is no longer used and
is misleading.
(Ferror_message_string): Remove unused variables.
(print_object): Cast argument of sprintf to long for `%ld'
specifier.  Remove unused variable.
1999-09-15 12:58:37 +00:00
Gerd Moellmann 26c636862d (update_frame_line): If writing whole desired line,
don't clear to end of line if already at the end.
1999-09-15 12:58:31 +00:00
Gerd Moellmann 9680b9d055 (Fplay_sound): Remove usused variables.
(be2hs): Put in #if 0 because it's currently not used.
1999-09-14 20:11:59 +00:00
Ken Raeburn 94b342cea5 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member access. 1999-09-14 15:12:57 +00:00
Gerd Moellmann 5c187deef5 (x_scroll_bar_handle_click): Compile only if
not USE_TOOLKIT_SCROLL_BARS.
(x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
(x_produce_glyphs): Remove unused variable(s).
(x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
x_set_toolkit_scroll_bar_thumb): Ditto.
(x_scroll_bar_create): Move local variable to the
conditionally compiled section of code where it is used.
(x_scroll_bar_create): Remove unused variable(s).
(x_scroll_bar_remove, XTread_socket): Ditto.
(XTread_socket) <ConfigureNotify>: Move variables used for
non-toolkit case into conditionally compiled section of code.
1999-09-14 13:09:49 +00:00
Gerd Moellmann b6d7acec85 (x_set_background_color): Remove unused variable(s).
(x_set_border_pixel): Ditto.
(x_set_menu_bar_lines): Put local variable used only for
non-toolkit case in #ifdef/#endif.
(x_figure_window_size): Remove unused variable(s).
(x_figure_window_size, x_window, lookup_image,
xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
png_load, jpeg_load, gif_load, x_create_tip_frame,
x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
1999-09-14 13:09:43 +00:00
Gerd Moellmann 539bf76f01 (display_echo_area_1, try_window_id): Remove unused
variable(s).
1999-09-14 13:09:34 +00:00
Gerd Moellmann 4dedbdd83c (freeze_window_starts): Fix typo in prototype. 1999-09-14 13:09:33 +00:00
Gerd Moellmann 7de6c76606 Add prototype for debug_print.
Add prototype for getloadavg.
1999-09-14 13:09:31 +00:00
Gerd Moellmann c3df1ad99d (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while. 1999-09-14 13:09:30 +00:00
Gerd Moellmann 213bac8afd (Fnext_frame): Remove unused variable(s).
(Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
(store_frame_param): Add parentheses to conditional expression.
(Fmodify_frame_parameters): Remove unused variables.
(Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
Ditto.
1999-09-14 13:09:27 +00:00
Gerd Moellmann ada0fa1430 (SXHASH_COMBINE): Add missing parentheses.
(Fchar_table_range, Fset_char_table_default, mapcar1,
Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
1999-09-14 13:09:25 +00:00
Gerd Moellmann 5ae040a667 Add prototypes for gamma_correct and
x_kill_gs_process.
(xassert) [GLYPH_DEBUG]: Change definition
to use do-while.
1999-09-14 13:09:22 +00:00
Andreas Schwab 5684cd6e1b (Fopen_network_stream): Avoid socket decriptor leak. 1999-09-14 08:33:24 +00:00
Andreas Schwab 38a734b86b Declare close_file_unwind. 1999-09-14 08:29:51 +00:00
Gerd Moellmann 74d481acba (redisplay_window): Make sure start_at_line_beg
is always set correctly.
1999-09-13 20:47:20 +00:00
Richard M. Stallman 0f25ecc6ca Support print-circle and related features.
(Vprint_gensym_alist): Removed.
(Vprint_circle, Vprint_continuous_numbering, print_number_index
Vprint_number_table): New variables.
(PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
(PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
(print, print_preprocess, print_preprocess_string, print_object):
New/modified functions with print-circle feature.  Use
Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
(syms_of_print): Defined new Lisp variables `print-circle',
`print-continuous-numbering', `print-number-table'.
1999-09-13 19:26:18 +00:00
Dave Love 701552ddc8 (move_it_in_display_line_to): Make type consistent with declaration. 1999-09-13 19:15:41 +00:00
Dave Love 8abee2e185 Don't continue #define args for benefit of old cc.
(xt_action_hook): Indent #error for benefit of K&R cc.
1999-09-13 19:10:19 +00:00
Dave Love ea6b19cafa (x_put_x_image): Make type consistent with declaration. 1999-09-13 19:06:32 +00:00
Dave Love 526cfb19a7 (Fmake_hash_table): Fix string continuation. 1999-09-13 19:03:19 +00:00
Gerd Moellmann b86bd3dd37 (XTcursor_to): Change for Lisp_Object selected_frame.
(x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
(XRINGBELL): Removed.
1999-09-13 11:14:29 +00:00
Gerd Moellmann 378c33ca4b (x_own_selection): Change for Lisp_Object selected_frame.
(Fx_store_cut_buffer_internal): Ditto.
(Fx_rotate_cut_buffers_internal): Ditto.
1999-09-13 11:14:26 +00:00
Gerd Moellmann b404828f5f (Fx_popup_menu): Change for Lisp_Object selected_frame.
(Fx_popup_dialog): Ditto.
1999-09-13 11:14:23 +00:00
Gerd Moellmann 0fe92f72b4 (QCfile): Moved to xdisp.c.
(syms_of_xfns): Don't initialize QCfile.
(check_x_frame): Change for Lisp_Object selected_frame.
(check_x_display_info, x_get_resource_string): Ditto.
1999-09-13 11:14:14 +00:00
Gerd Moellmann c0617987c6 (frame_or_selected_frame): Change for Lisp_Object
selected_frame.
(Finternal_set_lisp_face_attribute): Ditto.
(Finternal_get_lisp_face_attribute): Ditto.
(Finternal_lisp_face_empty_p): Ditto.
(Fdump_face): Ditto.
1999-09-13 11:14:08 +00:00
Gerd Moellmann 886bd6f211 (QCfile): Move here from xfns.c.
(syms_of_xdisp): Initialize it.
(message2_nolog): Change for Lisp_Object selected_frame.
(message3_nolog, message_with_string, message,
setup_echo_area_for_printing, truncate_echo_area,
prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
1999-09-13 11:13:59 +00:00
Gerd Moellmann 1ae1a37dc5 (Fminibuffer_window): Change for Lisp_Object
selected_frame.
(Fwindow_at, Fprevious_window, window_loop, select_window_1,
display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
Fcurrent_window_configuration, init_window_once): Ditto.
1999-09-13 11:13:55 +00:00
Gerd Moellmann e52f4e084a (OUTPUT): Change for Lisp_Object selected_frame.
(OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
set_terminal_window, set_scroll_region, reassert_line_highlight,
change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
encode_terminal_code, write_glyphs, term_init): Ditto.
1999-09-13 11:13:53 +00:00
Gerd Moellmann 2d0641146f (reset_sys_modes): Change for Lisp_Object selected_frame.
(kbd_input_ast, read_input_waiting): Ditto.
1999-09-13 11:13:50 +00:00
Gerd Moellmann a4aafc5404 (choose_minibuf_frame): Don't try to set the
mini-buffer window's buffer, if the buffer is invalid.
(choose_minibuf_frame): Change for Lisp_Object
selected_frame.
(read_minibuf): Ditto.
1999-09-13 11:13:47 +00:00
Gerd Moellmann 37b793e65b (selected_frame): Add external declaration. 1999-09-13 11:13:45 +00:00
Gerd Moellmann 788f89eb86 (command_loop_1): Change for Lisp_Object
selected_frame.
(cmd_error_internal, command_loop_1, read_char,
kbd_buffer_get_event, read_avail_input,
read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
interrupt_signal, quit_throw_to_read_char): Ditto.
1999-09-13 11:13:36 +00:00
Gerd Moellmann 650afd9463 (SELECTED_FRAME): New. 1999-09-13 11:13:35 +00:00
Gerd Moellmann 8d2666feec (Fmake_terminal_frame): Use SELECTED_FRAME.
(do_switch_frame): Change for Lisp_Object selected_frame.
(Fselected_frame): Ditto.
(Fframe_first_window): Use SELECTED_FRAME.
(Fframe_root_window): Change for Lisp_Object selected_frame.
(Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
Fprevious_frame, other_visible_frames, Fdelete_frame,
Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
Fset_frame_height, Fset_frame_width): Ditto.
1999-09-13 11:13:32 +00:00
Gerd Moellmann 18f39d0e20 (Ffont_info): Change for Lisp_Object selected_frame.
(Ffontset_info): DItto.
1999-09-13 11:13:31 +00:00
Gerd Moellmann 74c2d1c65d (handle_USR1_signal): Change for Lisp_Object selected_frame. 1999-09-13 11:13:29 +00:00
Gerd Moellmann 91fb7e1b4a (selected_frame): Make it a Lisp_Object.
(adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
(direct_output_for_insert, direct_output_forward_char,
init_display): Ditto.
1999-09-13 11:13:24 +00:00
Gerd Moellmann 1cc04aed1e (swap_in_symval_forwarding): Change for Lisp_Object
selected_frame.
(set_internal): Ditto.
1999-09-13 11:13:22 +00:00
Gerd Moellmann 9ba9623dc3 (Fother_buffer): Change for Lisp_Object selected_frame.
(record_buffer): Ditto.
1999-09-13 11:13:16 +00:00
Ken Raeburn c1d497be70 Use XCAR and XCDR instead of explicit member access. 1999-09-13 03:35:33 +00:00
Ken Raeburn 03699b140e Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member access. 1999-09-13 02:23:04 +00:00
Gerd Moellmann 926106201f (Fx_family_fonts): Replaces Fx_font_list.
(syms_of_xfaces): Defsubr accordingly.
(lface_from_face_name): Resolve face aliases.
(Qmode_line): Replaces Qmodeline.
(realize_basic_faces): Use Qmode_line.
(syms_of_xfaces): Initialize Qmode_line.
(Qframe_update_face_colors): New.
(syms_of_xfaces): Initialize call.
(update_face_from_frame_parameter): Call that function when
the frame's background changes.
1999-09-12 20:22:02 +00:00
Gerd Moellmann 92a90e893a (resize_mini_window): Add parameter exact_p. Resize
to exact size if exact_p is non-zero.
(display_echo_area_1): Call resize_mini_window with
new parameter.
(redisplay_internal): Ditto.
(resize_echo_area_axactly): New.
(hscroll_window_tree): Choose cursor row from
desired or current matrix.
(redisplay_internal): Hscroll before updating.
1999-09-12 20:21:58 +00:00
Gerd Moellmann abf4a9f7e0 (Fforward_word): Use prompt_end_charpos instead
of minibuffer_prompt_length.
1999-09-12 20:21:56 +00:00
Gerd Moellmann 1e3f16d5eb (read_minibuf_unwind): Call resize_mini_window with
new parameter.
(read_minibuf): Use prompt_end_charpos instead
of minibuffer_prompt_length.
(read_minibuf_unwind): Ditto.
(Fminibuffer_complete_and_exit): Ditto.
(Fminibuffer_complete_word): Ditto.
(Fminibuffer_prompt_end): Ditto.
(read_minibuf): Return mini-buffer contents
without the prompt.
(read_minibuf): Set minibuf_prompt_width to the
current column after inserting prompt.
(Fminibuffer_prompt_width): Return minibuf_prompt_width.
1999-09-12 20:21:55 +00:00
Gerd Moellmann 8f12e41de7 (command_loop_1): Resize mini-window to the
exact size of a message displayed, if any.
1999-09-12 20:21:53 +00:00
Gerd Moellmann 2da8bf64bd (Fbuffer_string): Use prompt_end_charpos instead
of minibuffer_prompt_length.
(Fline_beginning_position): Ditto.
(make_buffer_string_both): Take out the code
to handle mini-buffer prompts.
(Fbuffer_string): Handle the prompt here, instead.
1999-09-12 20:21:51 +00:00
Gerd Moellmann c99f608057 Change prototype of resize_mini_window.
Add prototype for resize_echo_area_axactly.
1999-09-12 20:21:50 +00:00
Gerd Moellmann 8ac211e8a5 (prompt_end_charpos): Replaces
minibuffer_prompt_length.
1999-09-12 20:21:49 +00:00
Gerd Moellmann c8bd802016 (Fget_buffer_create): Use prompt_end_charpos instead
of minibuffer_prompt_length.
(Fmake_indirect_buffer): Ditto.
(Fkill_buffer): Ditto.
(Ferase_buffer): Ditto.
1999-09-12 20:21:48 +00:00
Richard M. Stallman a1628e9150 (del_range_1): Don't treat minibuffer prompt specially. 1999-09-12 17:29:24 +00:00
Richard M. Stallman e2dae3f29f (Fline_beginning_position): Handle minibuffer prompt here. 1999-09-12 17:28:03 +00:00
Ken Raeburn 8e713be64c Use XCAR and XCDR instead of explicit member references. 1999-09-12 07:05:34 +00:00
Ken Raeburn 70949dac51 Use XCAR, XCDR, XFLOAT_DATA instead of explicit member access. 1999-09-12 05:07:01 +00:00
Richard M. Stallman 756a3cb656 (run_window_scroll_functions): If hook functions switch
buffers, switch back after.
1999-09-12 02:49:25 +00:00
Ken Raeburn 3331fb0688 Use XCAR and XCDR. 1999-09-11 20:42:47 +00:00
Ken Raeburn ee88f64dad (FOR_EACH_FRAME): Use XCAR and XCDR.
(PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
1999-09-11 18:40:57 +00:00
Ken Raeburn e35efe896b (GET_TRANSLATION_TABLE): Use XCDR. 1999-09-11 18:35:57 +00:00
Richard M. Stallman e1f6572f2a (XTread_socket): In XSetInputFocus, use RevertToParent,
not RevertToPointerRoot.
(XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
Fix the code to clear around the scroll bar.
1999-09-11 01:15:25 +00:00
Richard M. Stallman 0aee588ddc (Fbeginning_of_line): Don't handle minibuffer prompt here. 1999-09-11 01:12:39 +00:00
Gerd Moellmann fcf431dc3f (x_build_heuristic_mask): Accept a list `(R G B)'
as background color specification instead of an integer.
(image-cache-eviction-delay): Replaces image-eviction-seconds.
(Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
(clear_image_cache, syms_of_xfns): Use it.
(Qpostscript): Replaces Qghostscript.
(gs_type): Use it.
(gs_image_p): Ditto.
(syms_of_xfns): Initialize Qpostscript.
1999-09-10 16:19:34 +00:00
Richard M. Stallman c280bc6a3d (Ferase_buffer): Don't erase the minibuffer prompt. 1999-09-10 06:32:34 +00:00
Gerd Moellmann 3ccff1e302 (QCindex): New.
(syms_of_xfns): Initialize QCindex.
(gif_load): Use it instead of `:image'.
1999-09-09 14:54:29 +00:00
Gerd Moellmann 38b5e49776 (Fmakehash): Accept just one optional argument TEST. 1999-09-09 14:54:28 +00:00
Richard M. Stallman 72bba429ca (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
(Fwrite_region) [DOS_NT]: Handle `excl' here too.
1999-09-09 04:24:12 +00:00
Gerd Moellmann d3acf96b57 (Qwhen): Replaces QCwhen.
(syms_of_xdisp): Initialized it instead of QCwhen.
(handle_single_display_prop): Use it instead of QCwhen.
1999-09-08 22:12:34 +00:00
Richard M. Stallman fbd1209a4a (read_minibuf): Put all three properties on the same range--the whole prompt. 1999-09-08 21:14:25 +00:00
Kenichi Handa 63f4d57914 (CHAR_COMPONENTS_VALID_P): Fix for ASCII. 1999-09-08 11:49:34 +00:00
Kenichi Handa 0ad3f83d15 Reset MSBs of arguments of MAKE_CHAR. 1999-09-08 11:16:02 +00:00
Richard M. Stallman 0205059671 Clear up previous change. 1999-09-08 08:01:16 +00:00
Richard M. Stallman 95dccf7583 (Fbufsize): Accept an extra BUFFER parameter. 1999-09-08 07:56:20 +00:00
Richard M. Stallman e52ad9c9c7 (Fbase64_decode_region): Don't place point outside of the
current accessible portion.
1999-09-08 07:54:18 +00:00
Richard M. Stallman 61684f41fc (fix_submap_inheritance): Do nothing if the proper parent is an
ancestor of SUBMAP; otherwise, add it as the ultimate ancestor.
1999-09-08 05:14:39 +00:00
Gerd Moellmann 5a4c88c4f4 (handle_single_display_prop): Change conditional
display property to `:when FORM . VALUE'.
1999-09-07 22:31:38 +00:00
Richard M. Stallman f7b4065fc9 (Fwrite_region): Doc fix. 1999-09-07 19:40:09 +00:00
Richard M. Stallman 505ab9bc44 (Qexcl): New variable.
(report_file_error): Handle EEXIST specially.
(Fwrite_region): Special handling for CONFIRM = `excl'.
(syms_of_fileio): Initialize Qexcl.
1999-09-07 18:20:27 +00:00
Gerd Moellmann 05c8abbee2 (x_set_foreground_color): Call
update_face_from_frame_parameter.
(x_set_background_color): Ditto.
(x_set_mouse_color): Ditto.
(x_set_cursor_color): Ditto.
(x_set_border_color): Ditto.
(x_set_scroll_bar_foreground): Ditto.
(x_set_scroll_bar_background): Ditto.
1999-09-07 14:49:01 +00:00
Gerd Moellmann 8bd201d6c4 (recompute_basic_faces): Clear face cache.
(Finternal_set_lisp_face_attribute): Modify frame parameters
if attributes of certain faces are changed.
(update_face_from_frame_parameter): New.
(realize_basic_faces): Realize new basic faces.
(Qscroll_bar, Qcursor, Qborder, Qmouse): New.
(syms_of_xfaces): Intialize new symbols.
(Qfringe): Replaces Qmargin.
1999-09-07 14:48:59 +00:00
Gerd Moellmann cfa2208264 (Fset_window_margins): Make window the first argument.
(set_window_buffer): Call Fset_window_margins with window as first
argument.
1999-09-07 14:48:56 +00:00
Gerd Moellmann a46866a03a (Fmakehash): Take one argument, test, make all the
rest keyword arguments.
1999-09-07 14:48:55 +00:00
Gerd Moellmann 76a6bc491b (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
CURSOR_FACE_ID, MOUSE_FACE_ID): New.
1999-09-07 14:48:54 +00:00
Kenichi Handa 44c6492dfa Lots of comments fixed.
(SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
(CHAR_COMPONENTS_VALID_P): Name changed from
CHAR_COMPONENT_VALID_P.  Caller changed.
1999-09-07 12:19:26 +00:00
Kenichi Handa 9dd2aa1a51 Lots of comments fixed.
(PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
(STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
1999-09-07 12:18:57 +00:00
Richard M. Stallman 7baf49cf5e (syms_of_insdel): Define Lisp variable inhibit-modification-hooks. 1999-09-07 03:25:35 +00:00
Richard M. Stallman c4ea52a64f [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
(open, creat, unlink, read, write, rename, fopen, pause, alarm)
(signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
(getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
(geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
New functions, replacing POSIX features.

[macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
(InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
(InitEmacsPasswdDir, run_mac_command): New subroutines.

[macintosh] (targetTicks, alarm_signal_func, myPasswdName)
(myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
(myPasswdDir, TempDirName, sys_siglist): New variables.

[macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
(sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
(link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
Define empty stubs so Emacs will link.
1999-09-06 22:32:26 +00:00
Dave Love 6340679d44 1998-05-17 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
* s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new unexaix.c.
1999-09-06 16:07:27 +00:00
Dave Love 96fe259801 1998-05-17 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
* s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
1999-09-06 16:06:14 +00:00
Dave Love 0248680a42 New version incorporating Michael Sperber's changes from XEmacs.
Should solve problems on AIX 4.3.
1999-09-06 16:01:15 +00:00
Dave Love 9426b3ccc4 Remove comment on DEFVAR_BOOL. 1999-09-06 11:03:51 +00:00
Dave Love 1ffcc3b149 (Vbyte_boolean_vars): New variable.
(defvar_bool, syms_of_lread): Use it.
1999-09-06 11:02:28 +00:00
Gerd Moellmann e82d09c942 (Fx_show_tip): Improve documentation. 1999-09-05 21:22:48 +00:00
Gerd Moellmann 470049525f (Fset_window_vscroll): Make window the first argument,
amount to scroll the second.  Take non-negative vscroll as
argument.
(Fwindow_vscroll): Return non-negative vscroll.
1999-09-05 21:22:46 +00:00
Gerd Moellmann 2a53558db3 (Qplay_sound_functions): Replaces Qplay_sound_hook.
(Fplay_sound, syms_of_sound): Use it.
(parse_sound): Allow float volume values in the range [0, 1].
(Fplay_sound): Ditto.
1999-09-05 21:22:45 +00:00
Gerd Moellmann 045dee35ff Change
`top-line' and `top_line' to `header-line' and `header_line'.
Likewise for similar spellings.
1999-09-05 16:39:19 +00:00
Gerd Moellmann 9ea173e830 Change spelling of toolbar' to tool_bar' or `tool-bar'.
Likewise for upper-case etc.
1999-09-05 15:49:07 +00:00
Gerd Moellmann e037b9ecb3 (row_containing_pos): New.
(try_window_id): Use it.
Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
Likewise for upper-case etc.
1999-09-05 15:48:57 +00:00
Gerd Moellmann 92857db0fa (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
Fix reference to renamed variable.
1999-09-05 12:13:41 +00:00
Gerd Moellmann 8a37516b4a (Qwindow_size_fixed): Replaces Qfixed_window_size.
(window_fixed_size_p): Use Qwindow_size_fixed instead of
Qfixed_window_size.
(syms_of_window): Ditto.
1999-09-04 20:11:12 +00:00
Gerd Moellmann c5092f3e57 (Fmakehash): Exchange optional test and size arguments. 1999-09-04 20:11:09 +00:00
Gerd Moellmann 55115f0920 Change protorype of x_alloc_nearest_color. 1999-09-03 18:50:06 +00:00
Gerd Moellmann 80c32bcc71 (XTset_vertical_scroll_bar): Block input when clearing
under newly created scroll bar.
(expose_window): If window is not yet fully initialized, do
nothing.  This can happen when toolkit scroll bars are used and a
window is split.  Reconfiguring the scroll bars will generate an
expose for a newly created window.
(x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
New.  Allocate color for lwlib widgets.
(x_alloc_nearest_color): Change parameter list include the
frame on which to allocate colors.  Gamma-correct colors.
(x_alloc_lighter_color): Call x_alloc_lighter_color with new
parameter list.
1999-09-03 18:50:00 +00:00
Gerd Moellmann d62c876925 Include math.h. Add extern declaration for atof in case
we don't see one.
(Qscreen_gamma): New.
(struct x_frame_parm_table): Add prototypes, add
x_set_screen_gamma.
(gamma_correct): New function.
(defined_color): Call it.
(x_set_screen_gamma): New.
(x_set_title): Add parameter old_value.
(RES_TYPE_FLOAT): New.
(x_get_arg): Handle RES_TYPE_FLOAT.
(Fx_create_frame): Call x_default_parameter for `screen-gamma'.
(lookup_pixel_color): Change call to x_alloc_nearest_color to
new prototype.
(lookup_rgb_color): Ditto.
(syms_of_xfns): Initialize Qscreen_gamma.
1999-09-03 18:49:56 +00:00
Gerd Moellmann b61cbba3c1 (struct frame): New member `gamma'. 1999-09-03 18:49:55 +00:00
Richard M. Stallman f019cded83 [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
(512) because Mac compilers limit local data of a function to 32K.
1999-09-03 18:48:46 +00:00
Richard M. Stallman 0e01515357 Do nothing if included a second time.
(enum output_method): Add mac_output frame type.
(union output_data): Add new alternative `mac'.
(FRAME_MAC_P): New macro.
1999-09-03 18:44:39 +00:00
Richard M. Stallman 574a1a902e (Fframep) [macintosh]: Handle mac frame type.
(syms_of_frame_1): Initialize Qmac.
(make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
(Fmake_terminal_frame) [macintosh]: Add an alternate error check.
(Fmodify_frame_parameters) [macintosh]: Call
mac_set_frame_parameter in macterm.c.
1999-09-03 18:39:38 +00:00
Richard M. Stallman 052062e0d8 (call-process) [macintosh]: Call mac_run_command in
sysdep.c.  The Mac code is modeled after the DOS code.
1999-09-03 18:29:30 +00:00
Richard M. Stallman 066d59b3d5 Delete the system-independent include of stdlib.h
(leaving only the one in the WINDOWSNT conditional).
1999-09-03 18:26:26 +00:00
Richard M. Stallman 29c42596c4 [macintosh]: Include macterm.h to define substitute X
Window types and macros.
1999-09-03 18:15:24 +00:00
Gerd Moellmann 9472f927f9 Use XCAR and XCDR instead of XCONS.
(Vresize_mini_config, resize_mini_frame,
resize_mini_initial_height): Removed.
(syms_of_xdisp): Remove references to these variables.
(resize_mini_window): Don't save window configuration, freeze
window starts instead.  Enlarge window until displaying an empty
buffer, then shrink it.  Make the function externally visible.
(redisplay_window): Treat frozen window start like forced start,
but accept point outside of the window.
1999-09-03 15:52:16 +00:00
Gerd Moellmann e9abf3946d New member frozen_window_start_p. 1999-09-03 15:52:15 +00:00
Gerd Moellmann 7bbb5782ca (foreach_window, foreach_window_1): New.
(freeze_window_start, freeze_window_starts): New.
(make_window): Initialize frozen_window_start_p.
(replace_window): Ditto.
(Fset_window_point): Remove references to deleted variables.
(Fset_window_start): Ditto.
1999-09-03 15:52:12 +00:00
Gerd Moellmann 544e358dca (read_minibuf_unwind): Resize mini-window when
reaching minibuf_level 0.
1999-09-03 15:52:10 +00:00
Gerd Moellmann 1784207c0a Remove extern declarations for variables deleted from
xdisp.c.
1999-09-03 15:52:08 +00:00
Gerd Moellmann f5ec94b634 (adjust_frame_glyphs): Remove reference to
Vresize_mini_config.
1999-09-03 15:52:05 +00:00
Gerd Moellmann d0623bcd1b Add function prototype for resize_mini_window. 1999-09-03 15:52:01 +00:00
Gerd Moellmann 3c6ede7b91 (x_scroll_bar_create): Don't clear under scroll bar
here.
(XTset_vertical_scroll_bar): Clarify position computations.  Clear
under newly created scroll bar.  Put toolkit scroll bars in the
middle of the area reserved for the scroll bar.
1999-09-03 12:43:32 +00:00
Gerd Moellmann c6e9d03b5d (x_set_scroll_bar_width): Change conditional compilation
to USE_TOOLKIT_SCROLL_BARS.
1999-09-03 12:43:28 +00:00
Kenichi Handa 0377370fbb (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
macro STRING_CHAR_AND_LENGTH.  Caller changed.
1999-09-03 01:28:42 +00:00
Kenichi Handa cae184f227 (count_combining_composition): New function.
(count_combining_before): Adjust the way to check byte-combining
possibility for the new handling of multibyte sequence.  Call
count_combining_composition for a composite character.
(count_combining_after): Likewise.
1999-09-03 01:28:42 +00:00
Kenichi Handa 1be6387dbd Type in comment fixed. 1999-09-03 01:28:42 +00:00
Kenichi Handa aa801467ea (Fsubst_char_in_region): Adjust the way to check byte-combining
possibility for the new handling of multibyte sequence.
1999-09-03 01:28:42 +00:00
Kenichi Handa ac4137cca6 (SPLIT_COMPOSITE_SEQ): New macro.
(SPLIT_CHARACTER_SEQ): New macro.
(SPLIT_MULTIBYTE_SEQ): New macro.
(CHAR_COMPONENT_VALID_P): New macro.
(non_ascii_char_to_string): Generate a multibyte sequence as far
as possible.
(string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
deleted.  Caller changed.  Use the macro SPLIT_MULTIBYTE_SEQ.
(split_non_ascii_string): Likewise.
(multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
(char_printable_p): New function.
(translate_char): Check character by NATNUMP instead of INTEGERP.
(unibyte_char_to_multibyte): Call char_valid_p instead of
VALID_MULTIBYTE_CHAR_P.
(Fmake_char_internal): Check the arguments more rigidly.
(Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
(char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
(Fmultibyte_char_to_unibyte): Check the validity of character by
CHAR_VALID_P.
(chars_in_text): Call multibyte_chars_in_text.
(multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
(Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
1999-09-03 01:28:42 +00:00
Kenichi Handa 384107f281 (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
are negative.
(MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
(VALID_MULTIBYTE_CHAR_P): This macro deleted.
(PARSE_COMPOSITE_SEQ): New macro.
(PARSE_CHARACTER_SEQ): New macro.
(PARSE_MULTIBYTE_SEQ): New macro.
(CHAR_PRINTABLE_P): New macro.
(STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
(STRING_CHAR_AND_LENGTH): Likewise.
(STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
(INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
(DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
1999-09-03 01:28:42 +00:00
Kenichi Handa a260318815 (Faset): Adjust the way to check byte-combining
possibility for the new handling of multibyte sequence.
1999-09-03 01:28:42 +00:00
Kenichi Handa 4659838fc9 (struct it): Change the size of the member `ctl_chars'. 1999-09-03 01:28:42 +00:00
Kenichi Handa 765fe1d0fa (print_string): Use the macro STRING_CHAR_AND_LENGTH.
(print): Likewise.
1999-09-03 01:28:42 +00:00
Kenichi Handa e50d9192e8 (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
(string_char_to_byte): Likewise.
(string_byte_to_char): Likewise.
1999-09-03 01:28:42 +00:00
Kenichi Handa 197516c20d (get_next_display_element): Display incomplete multibyte
sequence (e.g. \222\300) by octal form.
1999-09-03 01:28:42 +00:00
Gerd Moellmann 056e4a0add (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0. 1999-09-02 20:52:53 +00:00
Gerd Moellmann e84b1dea00 (Fhash_table_weakness): Replaces F_hash_table_weak.
(cmpfn_eql, sxhash): Use XFLOAT_DATA.
1999-09-02 20:52:51 +00:00
Gerd Moellmann ca42b2e80b (try_window_id): Reset first_unchanged_at_end_row
if we have displayed to the bottom of the window.
1999-09-02 20:35:56 +00:00
Gerd Moellmann ce1dc5105e (Fforward_word): Stop at a mini-buffer prompt end
in both directions.  Extend documentation.
1999-09-02 20:35:55 +00:00
Gerd Moellmann 7ec44ec68f (set_buffer_internal): Never set
windows_or_buffers_changed.
1999-09-02 20:35:53 +00:00
Gerd Moellmann 337aaf1fda (read_minibuf): Flush display after setting cursor to
column 0.
1999-09-01 13:37:07 +00:00
Dave Love 46c7aa656c Comment on DEFVAR_BOOL. 1999-08-31 16:41:06 +00:00
Gerd Moellmann 7e6c20e825 (__FreeBSD_version): Don't define it if it is
already defined.  This avoids a warning from buffer.c.
1999-08-31 14:00:32 +00:00
Gerd Moellmann 81fe0ce9f3 (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
of both margins.
(FRAME_X_FLAGS_AREA_WIDTH): Likewise.
(FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
(FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
1999-08-30 23:14:40 +00:00
Gerd Moellmann 110859fc3c Remove unused bitmaps.
(continued_bits, continuation_bits, overlay_bits): Change images.
(x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
instead of FRAME_X_FLAGS_AREA_WIDTH.
(x_after_update_window_line): Ditto.
(x_draw_bitmap): Likewise.
(x_draw_row_bitmaps): Likewise.
(x_draw_glyph_string_box): Likewise.
(x_draw_glyphs): Likewise.
(x_scroll_run): Likewise.
(expose_window_tree): Likewise.
(note_mode_line_highlight): Likewise.
(XTset_vertical_scroll_bar): Likewise.
(x_clip_to_row): Likewise.
(x_set_window_size): Likewise.
1999-08-30 23:14:36 +00:00
Gerd Moellmann fb5ec9cea2 (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
of 2 * that value.
1999-08-30 23:14:33 +00:00
Gerd Moellmann 050d82d7c4 (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
2 * that value.
(window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
FRAME_FLAGS_AREA_WIDTH.
1999-08-30 23:14:28 +00:00
Gerd Moellmann b46dfc644e (coordinates_in_window): Use
FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
(window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
instead of twice.
1999-08-30 23:14:27 +00:00
Gerd Moellmann 9aa9574988 (set_frame_size): Set flags_area_extra to
FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
(EmacsFrameSetCharSize): Ditto.
1999-08-30 23:14:26 +00:00
Gerd Moellmann 5cb26370fb (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
once instead of twice.
(FRAME_LEFT_FLAGS_AREA_WIDTH): New.
1999-08-30 23:14:25 +00:00
Gerd Moellmann 0f799fd9a1 (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
instead of FRAME_FLAGS_AREA_WIDTH.
1999-08-30 23:14:23 +00:00
Gerd Moellmann e1b7d46cbd (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
FRAME_FLAGS_AREA_COLS once.
(WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
1999-08-30 23:14:22 +00:00
Gerd Moellmann ab5d1ddf90 (C_SWITCH_SYSTEM): Added to let configure find headers
in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
1999-08-30 22:50:53 +00:00
Gerd Moellmann ee0403b3f3 (QCweakness): Replaces QCweak.
(Fmake_hash_table): Ditto.
(Fmakehash): Ditto.
(syms_of_fns): Ditto.
1999-08-30 21:05:30 +00:00
Andreas Schwab 9ee9af7aa2 Include <stdlib.h> if available. Declare errno only if it is not a macro. 1999-08-30 16:19:57 +00:00
Andreas Schwab 92939d319a Include <stdlib.h> if available. 1999-08-30 16:18:30 +00:00
Andreas Schwab 67ba84d17a Include <stdlib.h> if available, and declare abort only if not. Include
<ctype.h>.
1999-08-30 16:10:03 +00:00
Andreas Schwab f5969ae957 Add declarations for some functions. 1999-08-30 16:06:22 +00:00
Richard M. Stallman c03649190c (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
Add support for nested comments.
1999-08-29 21:33:09 +00:00
Richard M. Stallman 95ff8dfc3c (lisp_parse_state, back_comment, Fmodify_syntax_entry)
(Fforward_comment, scan_lists, scan_sexps_forward)
(Fparse_partial_sexp): Add support for nested comments.
(forw_comment): New subroutine used in them.
1999-08-29 21:32:52 +00:00
Richard M. Stallman d24873d402 (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp. 1999-08-29 20:40:00 +00:00
Richard M. Stallman 96cc36cc58 [emacs]: Handle character classes for multibyte chars:
(ISBLANK, ISGRAPH, ISPRINT, ISALNUM, ISALPHA, ISLOWER)
(ISPUNCT, ISSPACE, ISUPPER): New definitions for emacs only.
(ISWORD): New macro.
(re_opcode_t): Add 2 bytes of flag bits to charset and charset_not.
(CHARSET_RANGE_TABLE): Update definition.
(CHARSET_RANGE_TABLE_BITS): New macro.
(print_partial_compiled_pattern): Skip charset's range table.
(struct range_table_work_area): New field `bits'.
(SET_RANGE_TABLE_WORK_AREA_BIT): New macro.
(BIT_ALNUM, BIT_ALPHA, BIT_WORD, BIT_GRAPH, BIT_LOWER, BIT_PRINT)
(BIT_PUNCT, BIT_SPACE, BIT_UPPER): New macros.
(CLEAR_RANGE_TABLE_WORK_USED): Clear field `bits'.
(RANGE_TABLE_WORK_BITS): New macro.
(IS_CHAR_CLASS): Check for "word".
(regex_compile): Set the `bits' field for some character classes.
Handle the `word' class.  Store the `bits' field into the range table.
(re_compile_fastmap): Handle flag bits in range table.
(re_match_2_internal): For charset and charset_not,
handle flag bits in the range table.
1999-08-29 20:38:11 +00:00
Richard M. Stallman 599c6c1763 (read_input_waiting): Pass read_socket_hook just 4 args. 1999-08-29 19:32:33 +00:00
Ken Raeburn 8f34f70a36 (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change names of structure
elements if HIDE_LISP_IMPLEMENTATION is defined, to help detect code that uses
knowledge of the Lisp internals that it shouldn't have.
(XFLOAT_DATA): New macro.
1999-08-28 22:15:12 +00:00
Gerd Moellmann 97cafc0f48 (resize_mini_window): Don't resize if
Vmax_mini_window_height is nil.  Otherwise, use a default if
Vmax_mini_window_height is not ot a number.
(syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
1999-08-25 21:12:40 +00:00
Gerd Moellmann 527b6458ed (Frecenter): Clear frame if called with nil or no arg. 1999-08-25 21:12:38 +00:00
Gerd Moellmann 5878ee6fc4 (Fforward_word): If in a mini-buffer and moving
backwards, stop in front of the prompt to prevent accidentially
moving into the read-only prompt.
1999-08-25 21:12:36 +00:00
Karl Heuer bc597cc7be Merge IRIX debugging info patch from unexsgi.c
Auto-detect .sbss section.
(round_up): Make it static.
(unexec): Declare alignment as Elf Word.  Skip ``Program
segment above .bss'' test on MIPS without .sbss.
Copy sections .got and .sdata1 sections.  Adjust offsets in
sections .sdata, .lit4, .lit8, .got and .sdata1.
1999-08-25 16:15:29 +00:00
Karl Heuer 3bc0ab9fdd Use unexelf for IRIX 5.*. 1999-08-25 16:15:06 +00:00
Karl Heuer cb89c722d6 Use unexelf for IRIX 6.*. 1999-08-25 16:14:50 +00:00
Gerd Moellmann 8f8ba18631 (try_window_id): Remove typo. 1999-08-25 10:57:56 +00:00
Gerd Moellmann 468155d7e9 (try_window_id): Recognize case that PT == ZV and in
unchanged text at the bottom when computing the cursor position.
(message3_nolog): Raise frame only if minibuffer_auto_raise is
set.
1999-08-25 01:05:00 +00:00
Gerd Moellmann 2622840455 (PVEC_TYPE_MASK): Add the bit for hash tables. 1999-08-25 01:04:57 +00:00
Gerd Moellmann 714dc26c77 (expose_window_tree): Fix typo CANON_Y_UNIT to
CANON_X_UNIT.
1999-08-24 19:25:11 +00:00
Gerd Moellmann ba06aba44f [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
being redefined in jconfig.h.
1999-08-24 19:25:06 +00:00
Gerd Moellmann e536f7a0a8 (Qmargin): Replacement for Qbitmap_area.
(realize_basic_faces): Replace Qmargin for Qbitmap_area.
(syms_of_xfaces): Ditto.
1999-08-24 19:25:02 +00:00
Gerd Moellmann c59c668a2d (redisplay_window): Don't ever test just_this_one_p
before calling try_window.
(echo_area_display): If height has changed, update other windows.
(resize_mini_frame, resize_mini_initial_height): New.
(resize_mini_window): Save/restore window configuration
differently.
1999-08-24 19:24:57 +00:00
Gerd Moellmann ce7fae7db4 (Fset_window_point): Reset Vresize_mini_config.
(Fset_window_start): Ditto.
(set_window_buffer): Ditto.
1999-08-24 19:24:53 +00:00
Gerd Moellmann 16dec16c3a (Vresize_mini_config, resize_mini_frame,
resize_mini_initial_height): Add extern declarations.
1999-08-24 19:24:50 +00:00
Gerd Moellmann 4fdb1988fe (adjust_frame_glyphs): Reset Vresize_mini_config. 1999-08-24 19:24:46 +00:00
Kenichi Handa 2ea6666cf7 Include "ccl.h" instead of "../src/ccl.h". 1999-08-23 10:43:51 +00:00
Gerd Moellmann 9142dd5bad (redisplay_internal): Clear garbaged frames after
resizing mini-window.
(unwind_with_echo_area_buffer): Use
set_buffer_internal_1 instead of set_buffer_internal.
(with_echo_area_buffer): Ditto.
(Vresize_mini_config): New.
(resize_mini_window): Use it to save restore original window
configuration
(syms_of_xdisp): Initialize it.
(reconsider_clip_changes): New.
(redisplay_internal, redisplay_window): Call it.
(mark_window_display_accurate, redisplay_internal): Set current
matrix' buffer, begv, zv.
1999-08-23 00:11:55 +00:00
Gerd Moellmann 5e8355b2e3 (beg_unchanged, end_unchanged, unchanged_modified,
overlay_unchanged_modified): Removed.
(with_echo_area_unwind_data): Don't save beg/end_unchanged.
(unwind_with_echo_area_buffer): Don't restore them.
(debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
(text_outside_line_unchanged_p, redisplay_internal,
try_scrolling): Use/set buffer-specific beg/end_unchanged.
(redisplay_window): Let try_window_id be called if more than one
window is displayed.  Use/set buffer-specific beg/end_unchanged.
(get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
try_window_id):
Use buffer-specific beg/end_unchanged.
(beg_unchanged, end_unchanged, unchanged_modified,
overlay_unchanged_modified): Remove extern declarations.
1999-08-23 00:11:54 +00:00
Gerd Moellmann b1599b4c0a (Fset_window_hscroll): Set
prevent_redisplay_optimizations_p instead of clip_changed.
(Fset_window_hscroll): Ditto.
(temp_output_buffer_show): Ditto.
(Fset_window_vscroll): Ditto.
1999-08-23 00:11:51 +00:00
Gerd Moellmann 9351ebd055 (command_loop_1): Set beg/end_unchanged per
buffer.
1999-08-23 00:11:47 +00:00
Gerd Moellmann a50df55bb6 (gap_left): Use BUF_COMPUTE_UNCHANGED.
(gap_right): Ditto.
(modify_region): Ditto.
(gap_left): Compute beg/end_unchanged per buffer.
(gap_right): Ditto.
(adjust_after_replace): Likewise.
(replace_range, del_range_2, modify_region): Likewise.
1999-08-23 00:11:45 +00:00
Gerd Moellmann 0f8f5ffed1 (direct_output_for_insert): Set beg_unchanged
and unchanged_modified per buffer.
1999-08-23 00:11:43 +00:00
Gerd Moellmann 2201e367d8 (struct glyph_matrix): Add buffer, begv, and zv. 1999-08-23 00:11:42 +00:00
Gerd Moellmann d9f9a1bc83 (code_convert_region): Compute beg/end_unchanged per
buffer.
1999-08-23 00:11:40 +00:00
Gerd Moellmann 133a3962c9 (BUF_COMPUTE_UNCHANGED): New.
(struct buffer): Add prevent_redisplay_optimizations_p.
(BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
END_UNCHANGED): New.
(struct buffer_text):  Add beg_unchanged, end_unchanged,
unchanged_modified, overlay_unchanged_modified.
1999-08-23 00:11:39 +00:00
Gerd Moellmann b5a225b494 (set_buffer_internal): Set windows_or_buffers_changed
only if buffer is displayed somewhere.
(modify_overlay): Use BUF_COMPUTE_UNCHANGED.
(reset_buffer): Set clip_changed to 0 and
prevent_redisplay_optimizations_p to 1.
(Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
(modify_overlay): Compute beg/end_unchanged
per buffer.
(Fget_buffer_create): Initialize new members of the buffer
structure.
1999-08-23 00:11:36 +00:00
Gerd Moellmann 3770920e08 (mark_glyph_matrix): Mark strings only. 1999-08-23 00:11:34 +00:00
Gerd Moellmann d9138d5de0 Add prototype for copy_hash_table and Fcopy_hash_table. 1999-08-22 20:47:17 +00:00
Gerd Moellmann f899c503c5 (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
(Qkey_value_weak):  Removed.
(make_hash_table): Use nil, `key', `value', t for weakness.
(Fmake_hash_table): Ditto.
(copy_hash_table): New.
(Fcopy_hash_table): New.
1999-08-22 20:47:15 +00:00
Gerd Moellmann 8938a4fbb4 Call change_frame_size and do_pending_window_change with
new parameter.
1999-08-22 12:00:17 +00:00
Gerd Moellmann dd2eb16699 (resize_mini_window): Do it for truncate-lines t as
well.
(redisplay_internal): Resize mini-window only if text might
have changed.
(display_echo_area): Reset displayed echo_area_buffer to nil
at the end if we're displaying a nil message.
1999-08-21 21:47:57 +00:00
Gerd Moellmann 7d1e984f8f Call change_frame_size and do_pending_window_change with
new parameter.
(x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
under scroll bar widget.
1999-08-21 19:31:13 +00:00
Gerd Moellmann 060fb5c1df (face_at_buffer_position): Don't xassert that
window's buffers equals current_buffer; this is not the
case during echo area display.
1999-08-21 19:31:04 +00:00
Gerd Moellmann c6e89d6c44 Call change_frame_size and do_pending_window_change with
new parameter.
Remove conditional compilation on
NO_PROMPT_IN_BUFFER.
(get_next_display_element): Display \r as ^M.
(minibuffer_scroll_overlap): Removed because not used
anywhere.
(unwind_redisplay): Return nil.
(clear_garbaged_frames): New.
(redisplay_internal): Use it.
(echo_area_display): Ditto.
(resize_mini_window): Mew.
(display_echo_area_1): Use it to resize echo area window.
(redisplay_internal): Use it to resize active mini-window.
(echo_area_glyphs, echo_area_message,
echo_area_glyphs_length, previous_echo_glyphs,
previous_echo_area_message, previous_echo_area_glyphs_length):
Removed.
(Vmessage_stack, echo_area_buffer, echo_buffer,
display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
(message2_nolog): Use set_message and clear_message.
(message3): Rename parameter len to nbytes to make clear what
it is.
(message3_nolog): Ditto.  Use set_message and clear_message.
(update_echo_area): Rewritten.
(with_echo_area_buffer): New.
(with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
(setup_echo_area_for_printing): New.
(display_echo_area, display_echo_area_1): New.
(current_message, current_message_1): New.
(push_message, restore_message, pop_message,
check_message_stack): New.
(truncate_echo_area): Rewritten.
(truncate_message_1): New.
(set_message, set_message_1, clear_message): New.
(echo_area_display): Rewritten.
(redisplay_internal): Check for needed echo area update
differently.
(redisplay_preserve_echo_area): Rewritten.
(redisplay_window): Check for mini-window displaying echo area
message differently.
(syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
Remove initialzation of removed variables.
(init_xdisp): Remove references to removed variables.
1999-08-21 19:30:44 +00:00
Gerd Moellmann 4da4347545 Remove references to echo_area_glyphs
and previous_echo_glyphs.
1999-08-21 19:30:42 +00:00
Gerd Moellmann 2b6538062c Call change_frame_size and do_pending_window_change with
new parameter.
1999-08-21 19:30:35 +00:00
Gerd Moellmann 0788646cc2 Remove conditional compilation on `standalone'.
(glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
glyph_to_str_cpy):  Remove that section because GLYPHs are no
longer used in that way.
(PRINTDECLARE): Add multibyte.
(PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
(printbufidx): Removed.
(printchar, strout): Rewritten.
1999-08-21 19:30:21 +00:00
Gerd Moellmann 39e98b382b Remove conditional compilation on
NO_PROMPT_IN_BUFFER.
(Fminibuffer_prompt_end): New.
(syms_of_minibuf): Defsubr it.  Remove
minibuffer-prompt-in-buffer.
(Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
Extend documentation.
(read_minibuf): Use clear_message instead of
setting echo_area_glyphs.
(Fminibuffer_completion_help): Ditto.
1999-08-21 19:30:16 +00:00
Gerd Moellmann 986113dff2 Add function prototypes.
Add function prototypes and extern declarations for
new functions and variables.
1999-08-21 19:30:11 +00:00
Gerd Moellmann 985f9f6642 Call change_frame_size and do_pending_window_change with
new parameter.
(ok_to_echo_at_next_pause): Make it a pointer to
a struct kboard.
(echo_kboard): New.
(echo_now): Set echo_kboard to the current kboard.
(cancel_echoing): Set echo_kboard to null.
(cmd_error_internal): Use clear_message, remove references
to echo_area_glyphs and echo_area_message.
(command_loop_1): Check for echo area messages differently.
(read_char): Likewise.
(record_menu_key): Use clear_message.
(Fexecute_extended_command):  Check for echo area messages
differently.  Use push_message, restore_message, pop_message.
1999-08-21 19:29:53 +00:00
Gerd Moellmann 4f13cc9959 Remove conditional compilation on NO_PROMPT_IN_BUFFER. 1999-08-21 19:29:47 +00:00
Gerd Moellmann 32347cf4de Call change_frame_size and do_pending_window_change with
new parameter.
Remove references to echo_area_glyphs
and previous_echo_glyphs.
1999-08-21 19:29:38 +00:00
Gerd Moellmann 2e5da6761e (hash_lookup): Test with EQ before calling key comparion
function.
(hash_remove): Ditto.
(cmpfn_eq): Removed.
(cmpfn_eql): Don't test with EQ.
(cmpfn_equal): Ditto.
(make_hash_table): Set comparison function for `eq' to null.
1999-08-21 19:29:32 +00:00
Gerd Moellmann c71106e5dd (Fdo_auto_save): Use push_message, restore_message,
pop_message.
1999-08-21 19:29:20 +00:00
Gerd Moellmann 189437a711 (shut_down_emacs): Call check_message_stack. 1999-08-21 19:29:17 +00:00
Gerd Moellmann 0634a78e14 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
(Fcurrent_message): Rewritten.
1999-08-21 19:29:11 +00:00
Gerd Moellmann b96fd3e81f (do_pending_window_change): Add parameter `safe'.
(change_frame_size): Ditto.
(change_frame_size_1): Ditto.  Deley size changes if redisplaying
and not called from a safe place.
(window_change_signal): Call change_frame_size with new parameter.
(set_window_cursor_after_update): Do the
cursor_in_echo_area case only for a mini-window showing
a message.  Don't let cursor end up after the end of a row.
(adjust_frame_message_buffer): Removed references
to echo_area_glyphs and previous_echo_glyphs.
(direct_output_for_insert): Check for mini-window displaying
echo area message differently.
(update_frame): Likewise.
(set_window_cursor_after_update): Likewise.  In echo area,
don't try to set cursor on rows that aren't enabled.
1999-08-21 19:29:02 +00:00
Gerd Moellmann 3f7267e7f3 (NO_PROMPT_IN_BUFFER): Removed.
Change prototypes for do_pending_window_change
and change_frame_size.
Add function prototypes.
1999-08-21 19:28:58 +00:00
Gerd Moellmann 6efc7df7b8 (Fgarbage_collect): Use push_message, restore_message,
pop_message.
1999-08-21 19:28:42 +00:00
Dave Love 3cbbbdc6fa (C_DEBUG_SWITCH): Use -g -O. 1999-08-21 17:27:31 +00:00
Dave Love ccecdd38a2 (C_DEBUG_SWITCH): Set for debug and optimize. 1999-08-21 17:23:59 +00:00
Gerd Moellmann cf4790adb1 remove tiff34 prefix from include. 1999-08-20 19:30:13 +00:00
Dave Love 965a811c6d Revert previous change. 1999-08-20 16:57:43 +00:00
Gerd Moellmann e90dbbd17e (XTset_vertical_scroll_bar): Fix previous change. Clear
under scroll bar with width FRAME_SCROLL_BAR_COLS.
1999-08-19 13:56:14 +00:00
Dave Love 84394d4482 Use termcap.h. 1999-08-18 13:25:45 +00:00
Dave Love 8bf4cd99cd Add HAVE_TERMCAP_H. 1999-08-18 13:23:38 +00:00
Dave Love 495de6e953 Use lisp.h
(tparam): Use xmalloc.
1999-08-18 13:17:06 +00:00
Dave Love 48236137f4 Use stdlib.h, unistd.h. 1999-08-18 13:14:37 +00:00
Dave Love c4a10daf11 Use stdlib.h. 1999-08-18 13:10:52 +00:00
Dave Love a36837e471 (Finsert_file_contents): Use xfree. 1999-08-18 13:07:21 +00:00
Gerd Moellmann 495fa05e41 (x_window) [USE_X_TOOLKIT]: Remove test for
FRAME_X_WINDOW (f) being null at the of the function.  If widgets
cannot be created we will already have crashed earlier.  Call
lw_set_main_areas with a null menu-bar widget, so that we have
a reasonable default.
(Fx_create_frame): Rearranged so that Lisp errors during frame
initialization cause less damage.  Initialize menu bar widget
here.
1999-08-18 12:04:53 +00:00
Gerd Moellmann f937bde202 (update_frame_line): Fix previous change. If writing
whole line clear to end of frame.
1999-08-18 10:37:34 +00:00
Gerd Moellmann 28514cd97b (unwind_redisplay): New. Resets flag redisplaying_p.
(redisplay_internal): Register unwind_redisplay with
register_unwind_protect.
(try_window_reusing_current_matrix): If new start > old start,
give up if start pos of first reusable row is not equal to new
start.
1999-08-17 22:44:56 +00:00
Gerd Moellmann fbad6f9a28 (Fcoordinates_in_window_p): Return `left-bitmap-area'
and `right-bitmap-area' if position is in the bitmap areas.  This
avoids an error when clicking on the bitmap areas.  Instead, they
are currently treated like clicks inside the window.
(coordinates_in_window): Return 5 and 6 for bitmap areas.
(Qleft_bitmap_area, Qright_bitmap_area): New.
(syms_of_window): Initialize new symbols.
1999-08-17 22:44:47 +00:00
Gerd Moellmann 0b5791c4a0 (Fsignal): Don't reset redisplaying_p here. 1999-08-17 22:44:44 +00:00
Gerd Moellmann 74ca462f6d (update_frame_line): If writing whole line,
don't write trailing spaces unless we must.
1999-08-17 22:44:37 +00:00
Gerd Moellmann 6fb13182e0 (expose_area): If row extends face to end of line,
write the whole line.
1999-08-17 13:02:04 +00:00
Gerd Moellmann 8f897821fc (Qshow_trailing_whitespace): Removed.
(Vshow_trailing_whitespace): Added.
(init_iterator): Remove initialization code for
show_trailing_whitespace_p.
(redisplay_internal): Don't try cursor movement in this_line
if showing trailing whitespace.
(redisplay_window): Likewise for cursor movement in current
matrix and try_window_id.
(try_window_reusing_current_matrix): Likewise.
(trailing_whitespace_p): Return 0 if trailing whitespace is
in front of point.
(display_line): Use Vshow_trailing_whitespace instead of
former iterator member show_trailing_whitespace_p.
(syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
1999-08-17 00:46:09 +00:00
Gerd Moellmann f1f134908a (direct_output_for_insert): Use
Vshow_trailing_whitespace instead of former iterator member
show_trailing_whitespace_p.
(direct_output_forward_char): Don't do it if hightlighting
trailing whitespace.
1999-08-17 00:46:01 +00:00
Gerd Moellmann c1ff17c59c (struct it): Remove member
show_trailing_whitespace_p.
1999-08-17 00:45:58 +00:00
Gerd Moellmann a7aeb2dec3 (x_draw_glyph_string_box): Use the background width
of the glyph string for the width of the box.
1999-08-17 00:38:28 +00:00
Gerd Moellmann 7dbdfcf866 (add_to_log): Renamed from display_message.
Don't display messages in echo area.
1999-08-17 00:38:21 +00:00
Gerd Moellmann 9a132b1f43 (Fpos_visible_in_window_p): Rewritten. 1999-08-17 00:38:14 +00:00
Karl Heuer da71ab916b (Fforward_comment): Set comstyle for Scomment_fence. 1999-08-16 20:34:56 +00:00
Geoff Voelker a797a73ddc (x_set_frame_parameters): Set foreground and
background first, and then set other parameters that might
depend upon their new values.
1999-08-16 18:32:29 +00:00
Gerd Moellmann 057df17c4b (Vfont_list_limit): New.
(syms_of_xfaces): Make it a user-variable.
(DEFAULT_FONT_LIST_LIMIT): New.
(sorted_font_list): If Vfont_list_limit is an integer > 0, list
maximally that number of fonts, otherwise use
DEFAULT_FONT_LIST_LIMIT.
(Fx_font_family_list): Bind `font-list-limit' to higher values
until we have all fonts.
(Fxfont_list): Additionally return the full names of fonts and
their registry and encoding.
1999-08-15 22:29:45 +00:00
Gerd Moellmann fe6f39d99b (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
Simplify clearing "under" scroll bar.
1999-08-15 22:01:01 +00:00
Gerd Moellmann 233a4a2c3f (Qfixed_window_size): New.
(syms_of_window): Initialiaze it.
(check_all_windows): Add return type void.
(window_fixed_size_p): New.  Return non-zero if window
is fixed-size.
(window_min_size_1): New.
(window_min_size): Handle fixed-size windows.
(size_window): New. Rewritten combination of set_window_height and
set_window_width that handles fixed-size windows.
(set_window_height): Call it.
(set_window_width): Call it.
(Fsplit_window): Give an error on attempt to split a fixed-size
window.
(change_window_height): Partly rewritten to handle fixed-size
windows.
1999-08-15 22:00:53 +00:00
Karl Heuer 418b48fddf (Fopen_network_stream): Fix previous change. 1999-08-14 04:36:10 +00:00
Karl Heuer 5d121aec6d (line_number_display_limit_width): New var.
(decode_mode_spec): Use it instead of hardcoded value.
(syms_of_xdisp): Defvar it.
1999-08-14 03:13:35 +00:00
Karl Heuer fada05d6d1 (run_hook_list_with_args): Gcpro `globals'.
(run_hook_with_args): Likewise.
1999-08-14 02:30:27 +00:00
Gerd Moellmann 5f47720c30 (struct window): New field too_small_ok. 1999-08-13 21:24:42 +00:00
Gerd Moellmann b5f05b503d (set_window_height, set_window_width):
If window starts out "too small", set its too_small_ok flag.
If window's too_small_ok flag is set, don't delete it
unless it is so small it would cause a crash.
1999-08-13 21:24:35 +00:00
Gerd Moellmann c1636aa6ab (MINSIZE): Removed.
(window_min_size): New.
(set_window_height): Use window_min_size.
(change_window_height): Ditto.
1999-08-13 20:51:51 +00:00
Kenichi Handa 048151c1c1 (CHAR_MODIFIER_MASK): New macro. 1999-08-13 12:55:11 +00:00
Kenichi Handa 164d590d5c (read_escape): For Control modifier, pay attention to
multibyte character.
(read1): Likewise.  Singal error or a multibyte character which
has a modifer bit.  Check validity of Shift modifer.
1999-08-13 12:54:36 +00:00
Kenichi Handa 6662e69b7f (non_ascii_char_to_string): Handle modifier bits as
the same as Lisp reader.
1999-08-13 12:54:08 +00:00
Gerd Moellmann 708ca3c8f9 (vmotion): Don't add in mini-buffer prompt width
if prompts are inserted into mini-buffer.
1999-08-12 20:49:57 +00:00
Karl Heuer a319f7c188 (Fopen_network_stream): Use getaddrinfo. 1999-08-12 16:35:22 +00:00
Karl Heuer 5c644c1dd8 Add HAVE_GETADDRINFO. 1999-08-12 15:59:36 +00:00
Gerd Moellmann 337042a9b7 (get_overlay_arrow_glyph_row): Set the charpos of
glyphs to -1.
1999-08-11 15:36:17 +00:00
Gerd Moellmann 7085174642 (face_before_or_after_it_pos): If position after
or before iterator's current position in the buffer is out
of bounds, return the iterator's original face id.
1999-08-11 11:50:20 +00:00
Gerd Moellmann a38634ff1f (mirror_make_current): If desired row isn't enabled,
just swap glyphs pointers between current and desired row.
(build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
desired matrix method string to current matrix.
1999-08-11 10:47:38 +00:00
Geoff Voelker 7f5d1df85e (x_bitmap_icon): New function.
(x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
1999-08-10 17:33:38 +00:00
Geoff Voelker eb7576cefd (x_set_icon_type): Support setting frame icons. 1999-08-10 17:32:59 +00:00
Karl Heuer ae53401aeb (BCOPY_SHORT): Fix typo `unsigined'. 1999-08-10 17:30:22 +00:00
Karl Heuer 4dbcac312d [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define. 1999-08-10 17:28:10 +00:00
Eli Zaretskii e30aee93e2 (IT_set_face): Abort if the default face is not realized
and cached.
(IT_write_glyphs): Reset the screen face to the default face
before writing glyphs.
1999-08-10 10:43:12 +00:00
Eli Zaretskii 1697ca3831 (realize_default_face) [MSDOS]: Don't take default
colors from the frame here.
(realize_tty_face) [MSDOS]: Do it here.  Update the face
attributes with the actual name of the color taken from the
frame.
1999-08-10 10:38:37 +00:00
Eli Zaretskii 6821243b5f (msdos_stdcolor_name): Remove const from return value. 1999-08-10 10:29:20 +00:00
Eli Zaretskii 87f1940e4a (Fframe_parameters): Swap foreground and background
colors returned in frame parameters if the frame has reverse in
its parameter alist.
(Fmake_terminal_frame): Make a unique copy of face_alist for
each frame.
1999-08-10 10:13:05 +00:00
Richard M. Stallman 1076254d83 (Feval_buffer): New arg DO_ALLOW_PRINT. 1999-08-07 16:16:32 +00:00
Richard M. Stallman daa1c1093c (Fprevious_overlay_change): Just return the answer obtained from overlays_at. 1999-08-07 16:10:47 +00:00
Gerd Moellmann 5dd6aea877 (LIBTIFF): Use -ltiff instead of -ltiff34 1999-08-07 16:01:17 +00:00
Richard M. Stallman e4c082be5e (xpm_load) [!XpmAllocCloseColors]:
Use XpmCloseness and attrs.closeness instead.
1999-08-07 11:28:27 +00:00
Gerd Moellmann 286bcbc971 (set_iterator_to_next): After delivering a character
from a display vector, restore face and charset to what they were
before the display vector was processed.
1999-08-06 21:08:08 +00:00
Geoff Voelker b19cc00c30 (stat): Check for directory ending in separator when
doing readdir fast path.
1999-08-06 20:40:36 +00:00
Geoff Voelker 4424b2557f (directory_files_internal, Fdirectory_files_and_attributes,
Ffile_attributes_lessp): New functions.
(Fdirectory_files): Use directory_files_internal.
(syms_of_dired): Initialize Fdirectory_files_and_attributes,
Ffile_attributes_lessp.
1999-08-06 20:40:10 +00:00
Gerd Moellmann 9b4a7047ab (x_display_and_set_cursor): If cursor_in_echo_area,
show hollow box cursor for windows other than echo_area_window,
show normal cursor for echo_area_window.
1999-08-06 15:05:34 +00:00
Gerd Moellmann 862b479030 (set_window_cursor_after_update): Correct cursor
position if cursor_in_echo_area:
1999-08-06 15:05:27 +00:00
Gerd Moellmann 66ac4b0e5f (x_draw_phys_cursor_glyph): Redraw overlaps.
(x_fix_overlapping_area): New.
(x_redisplay_interface): Add x_fix_overlapping_area.
(x_draw_glyphs): Add parameter overlaps_p.
(struct glyph_string): Add member for_overlaps_p.
(x_get_glyph_string_clip_rect): If glyph string draws foreground
of overlapping rows, clip to window bottom.
(x_fill_glyph_string): Add parameter overlaps_p.
(x_fill_composite_glyph_string): Ditto.
(BUILD_GLYPH_STRINGS): Ditto.
(BUILD_CHAR_GLYPH_STRINGS): Ditto.
(x_draw_glyph_string): Don't draw anything but the foreground
if glyph string draws row overlaps.
(x_append_glyph): Set glyph flag overlaps_vertically_p.
(x_produce_image_glyph): Compute iterator's physical
ascent and descent.
(x_produce_stretch_glyph): Ditto.
(x_produce_glyphs): Ditto.
1999-08-06 13:59:59 +00:00
Gerd Moellmann 312246d12f (compute_line_metrics): If first line's physical ascent
is larger than its logical ascent, use the physical ascent, and
make the row taller.  Set row's overlapping_p flag.
(init_iterator): Reset physical line height info
after producing special glyphs.
(display_toolbar_line): Set physical line height info.
(compute_line_metrics): Ditto.
(display_line): Ditto.
(display_string): Ditto.
(reseat_at_next_visible_line_start): New parameter
on_newline_p.
(set_iterator_to_next):  After delivering last char
from display vector, reseat on next visible line start if
dpvec_char_len < 0.
(next_element_from_buffer): Set dpvec_char_len to -1 for
selective display.
1999-08-06 13:59:43 +00:00
Gerd Moellmann cfe8a05e43 (produce_glyphs): Set iterator's physical height
information.
1999-08-06 13:59:39 +00:00
Gerd Moellmann 408f5064df (redraw_overlapping_rows): Use flag overlapping_p.
(direct_output_for_insert): Ditto.
(direct_output_for_insert): Don't use this method if
row is overlapped by others.
(update_text_area): Write full line if current line is overlapped.
(redraw_overlapped_rows): New.
(update_window): Call it.
(redraw_overlapping_rows): New.
(update_window): Call it.
(scrolling_window): Make sure overlapped_p flag in current rows is
unchanged.
(row_equal_p): Take rows overlapped_p flag into account.
(adjust_glyphs): Block input while adjusting matrices.
(direct_output_for_insert): Don't use this
optimization for rows that overlap others.
(update_window_line): Return non-zero if display has changed.
(update_text_area): Ditto.
(update_window): Record if display has been changed.
(blank_row): Compute glyph row's physical height.
(row_equal_p): Take physical row heights into account.
(direct_output_for_insert): Ditto.
(update_text_area): Ditto.
1999-08-06 13:59:32 +00:00
Gerd Moellmann 2febf6e033 (struct glyph_row): Add overlapping_p.
(MATRIX_ROW_OVERLAPS_PRED_P): New.
(MATRIX_ROW_OVERLAPS_SUCC_P): New.
(struct glyph_row): Add flag overlapped_p.
(MATRIX_ROW_OVERLAPPING_P): New.
(struct redisplay_interface): Add
fix_overlapping_area.
(struct glyph): Add overlaps_vertically_p.
(struct glyph_row): Add phys_ascent and
phys_height.
(struct it): Add phys_ascent, phys_descent, max_phys_ascent,
max_phys_descent.
1999-08-06 13:59:29 +00:00
Richard M. Stallman 413e06a447 (switch_to_buffer_1): New subroutine, taken out from Fswitch_to_buffer.
(no_switch_buffer): New function.
(Fswitch_to_buffer): Call them.  Don't get confused
by "same-window" buffers in a dedicated frame.
1999-08-06 11:45:48 +00:00
Richard M. Stallman aee631c210 (display-buffer): Don't get confused
by "same-window" buffers in a dedicated frame.
1999-08-05 19:40:03 +00:00
Richard M. Stallman 2594e0fdb5 (switch_to_buffer_1): New subroutine, taken out from Fswitch_to_buffer.
(no_switch_buffer): New function.
(Fswitch_to_buffer): Call them.  Don't get confused
by "same-window" buffers in a dedicated frame.
1999-08-05 19:38:34 +00:00
Andreas Schwab 534b98409f (insert_from_string_1): Check gap size against number
of outgoing bytes, not incoming bytes.
1999-08-04 11:26:17 +00:00
Richard M. Stallman 9e062b6cc0 (read1): Added circular reading code to #N=.
(SUBSTITUTE): New macro.
(seen_list): New variable.
(substitute_object_in_subtree): New function.
(substitute_object_recurse): New function.
(substitute_in_interval): New function.
1999-08-03 17:27:46 +00:00
Eli Zaretskii 1c56132258 (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h. 1999-08-02 12:46:06 +00:00
Eli Zaretskii 1a6d362313 (make_terminal_frame): Don't call init_frame_faces if
noninteractive, for termcap frames as well.
1999-08-02 12:41:09 +00:00
Eli Zaretskii 045942b2e9 (init_sys_modes): Call init_frame_faces for termcap
frames.
1999-08-02 12:37:31 +00:00
Richard M. Stallman ae1ef097ac Comment change. 1999-08-02 01:17:41 +00:00
Richard M. Stallman 95aa0336b5 (x_set_internal_border_width):
Call do_pending_window_change.  Don't block input, don't call XFlush.
(x_set_vertical_scroll_bars): Call do_pending_window_change.
(x_set_scroll_bar_width, x_set_font): Likewise.
1999-08-02 00:10:19 +00:00
Richard M. Stallman b5dd21a8e6 (Fset_frame_height): Call do_pending_window_change.
(Fset_frame_width, Fset_frame_size): Likewise.
1999-08-02 00:01:27 +00:00
Richard M. Stallman 79e03a85f9 (EmacsFrameSetCharSize): Don't call do_pending_window_change here. 1999-08-02 00:01:05 +00:00
Richard M. Stallman fddd5cebcc (x_set_window_size): When calling change_frame_size, specify 1 for DELAY. 1999-08-02 00:00:14 +00:00
Richard M. Stallman e23f814f70 (internal_equal): Fix overlay comparison. 1999-08-01 22:31:00 +00:00
Dave Love 4a8443fcdd Add HAVE_STDLIB_H. 1999-07-30 17:32:20 +00:00
Karl Heuer 331e2d7b60 (allocate_vectorlike): Add missing increment. 1999-07-30 15:49:10 +00:00
Karl Heuer 32f532b7e2 (Fdefalias): Call Ffset instead of duplicating code. 1999-07-30 15:46:56 +00:00
Karl Heuer fc14013c81 (create_process): Detect failure of `pipe'. 1999-07-30 14:39:27 +00:00
Karl Heuer b1314e1550 (get_keymap_1, get_keyelt): Check the type of OBJECT
before calling indirect_function.
1999-07-30 14:37:30 +00:00
Karl Heuer c5749019d9 (lock_if_free): Indentation fix. 1999-07-30 14:30:03 +00:00
Eli Zaretskii 1cc0312335 (load_color, lookup_derived_face): Declare
prototypes.
1999-07-30 08:41:55 +00:00
Eli Zaretskii 622dca8953 (init_display) [MSDOS]: Don't initialize frame faces,
it will be done later.
1999-07-30 08:38:10 +00:00
Eli Zaretskii 4aec4b2958 (make_terminal_frame) [MSDOS]: Don't call
init_frame_faces if non-interactive.
(Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
array with a call to msdos_stdcolor_name.  The font name is now
"ms-dos", consistent with realize_tty_face.
1999-07-30 08:33:50 +00:00
Eli Zaretskii e6a77d6cab (cmd_error_internal): Don't kill Emacs if this is an
MSDOS frame.
1999-07-30 08:28:18 +00:00
Eli Zaretskii 4314246fcf (Fset_window_configuration) [MSDOS]: Don't call
x_set_toolbar_lines.
1999-07-30 08:24:02 +00:00
Eli Zaretskii 44747bd00a (load_color): Remove static from definition and remove
prototype.
[MSDOS]: Add a DOS-specific version of load_color.
(lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
(lookup_derived_face): New function.
(realize_default_face): Support MSDOS frames.
[MSDOS]: If fore/background colors are unspecified, inherit them
from the frame.
(realize_face): Support MSDOS frames.
(realize_tty_face): Support MSDOS frames.
[MSDOS]: If the face color is not in Vface_tty_color_alist, call
load_color to try to find a suitable approximation.  If the face
is inverse-video, swap the foreground and background colors.
1999-07-30 08:19:22 +00:00
Eli Zaretskii e4441df01c (msdos_stdcolor_name, msdos_stdcolor_idx): New
functions.
1999-07-30 08:15:13 +00:00
Eli Zaretskii ab39b7a5d5 (msdos_stdcolor_name, msdos_stdcolor_idx): Declare. 1999-07-30 08:11:41 +00:00
Eli Zaretskii 236027c963 Remove redundant declarations (most of them are now in
dispextern.h).
1999-07-30 08:08:43 +00:00
Eli Zaretskii c77f6f1b96 (IT_set_face): Rewritten for the new redisplay engine.
Use default frame colors if the face doesn't specify them; invert
the colors if highlight is ON.
(IT_write_glyphs): Rewritten for the new redisplay engine.
(IT_change_line_highlight): Add (unused) parameter Y, since that's
how the hook is called by term.c.
(IT_copy_glyphs): New function, copies an area of the display in
video RAM.
(IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
redisplay now calls it even if char_ins_del_ok is zero.
(IT_set_frame_parameters): Prototype changed.  Calls the new
load_color.  Puts the new fore/background colors into the default
face on current frame.
(IT_menu_display): Rewritten to handle the new struct glyph
instead of a char array.
(XMenuActivate): Call lookup_derived_face to create and use
special faces for the pop-up and drop-down menus.
1999-07-30 08:05:13 +00:00
Gerd Moellmann eb3935300f (x_set_toolkit_scroll_bar_thumb): Fix previous change. 1999-07-29 15:09:42 +00:00
Eli Zaretskii e2ee551e3b (getdefdir): Don't return failure indication when
_fixpath sets errno to ENOSYS.
1999-07-29 11:01:50 +00:00
Gerd Moellmann 7a5b8a934b (string_char_and_length): Fix previous change. 1999-07-28 19:46:05 +00:00
Gerd Moellmann 4fdb80f2a2 (string_char_and_length): New. Use it everywhere
instead of STRING_CHAR_AND_LENGTH in xdisp.c.
1999-07-28 18:05:44 +00:00
Kenichi Handa 87f0532f11 (concat): Fix previous change. 1999-07-28 02:37:17 +00:00
Kenichi Handa 2d6115c835 (count_combining): New function.
(struct textproc_rec): New structure.
(concat): Copy text properties correctly when byte combining
occurs.
1999-07-28 02:10:51 +00:00
Gerd Moellmann be8a72f424 (prepare_face_for_display): Use FillOpaqueStippled instead of
FillStippled.
1999-07-27 23:55:58 +00:00
Gerd Moellmann dcd08bfb64 (x_set_toolkit_scroll_bar_thumb): Don't call
XawScrollbarSetThumb if thumb parameters haven't changed because
that function apparently isn't optimized for this case.
1999-07-27 23:55:28 +00:00
Kenichi Handa d27f8ca73b (x_find_ccl_program): Add casting. 1999-07-27 01:32:50 +00:00
Kenichi Handa 17eedd00d9 (w32_find_ccl_program): Add casting. 1999-07-27 01:32:10 +00:00
Gerd Moellmann b9432a852b (x_setup_relief_color): Don't try smart color allocation
if display is mono.
(x_draw_row_bitmaps): If face has stipple, don't switch
to foreground color for clearing areas, and set the fill style.
1999-07-27 00:02:50 +00:00
Gerd Moellmann d7bf0342f2 (x_create_tip_frame): Don't set bitmapIcon resource. 1999-07-27 00:02:17 +00:00
Gerd Moellmann 2891cf7aaa (struct glyph_row): Flag internal_border_p removed. 1999-07-27 00:01:46 +00:00
Markus Rost 1fffe87013 (Fgethash): Fix order of variables (patch by gerd).
(Fputhash): Ditto.
(Fremhash): Ditto.
1999-07-26 22:20:21 +00:00
Gerd Moellmann 1da3fd719e (x_get_glyph_string_clip_rect): Take internal border
into account for full-width windows.  Don't add scroll bar width
to width of clip rect.
(x_draw_glyph_string_box): Add 1 to right x of full width lines.
(x_set_glyph_string_background_width): Add 1 to background width.
(x_draw_glyphs): Take internal border into account for full-width
lines.
1999-07-26 21:23:07 +00:00
Gerd Moellmann 203ae5607e (EmacsFrameSetCharSize): Don't add XtNborderWidth
value to frame width and height.
1999-07-26 21:22:23 +00:00
Karl Heuer 51a1d2d86b (x_set_mouse_color): Always unload the old color.
Don't allow nil as color value.
(x_set_cursor_color, x_set_background_color, x_set_foreground_color):
Always unload the old color.
1999-07-26 19:09:56 +00:00
Karl Heuer de4075cff3 (Fmove_to_column): Extend end of line only if FORCE is t. 1999-07-26 19:05:40 +00:00
Karl Heuer 2b8503eae9 (Fy_or_n_p): Doc fix. 1999-07-26 16:42:38 +00:00
Kenichi Handa 3545439c0b (w32_find_ccl_program): Get compiled CCL code by just
calling setup_coding_system.
1999-07-26 11:58:24 +00:00
Kenichi Handa a42f54e697 (x_find_ccl_program): Get compiled CCL code by just
calling setup_coding_system.
1999-07-26 11:57:35 +00:00
Kenichi Handa ef4ced281f (setup_coding_system): Get compiled CCL code by just
calling setup_coding_system.
1999-07-26 11:56:56 +00:00
Kenichi Handa 5232fa7b78 (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
stored in the following CCL code.  Adjusted for the change of
Vccl_program_table.
(resolve_symbol_ccl_program): Adjusted for the new style of
embedded symbols (SYMBOL . PROP) in CCL compiled code.   Return Qt
is resolving failed.
(ccl_get_compiled_code): New function.
(setup_ccl_program): Function type changed from `void' to `int'.
Resolve symbols in CCL_PROG.
(Fccl_program_p): New function.
(Fccl_execute): Get compiled CCL code by just calling
setup_ccl_program.
(Fccl_execute_on_string): Likewise.
(Fregister_ccl_program): Adjusted for the change of
Vccl_program_table.
1999-07-26 11:56:28 +00:00
Kenichi Handa e5e6d6fbaf (setup_ccl_program): The type is changed to `int'. 1999-07-26 11:55:53 +00:00
Gerd Moellmann 54c85a234b (get_next_display_element): Display DEL as `^?'. 1999-07-26 11:50:17 +00:00
Gerd Moellmann d6fc0a2255 (load_face_colors): Load background color if setting
stipple, too.
1999-07-26 11:49:43 +00:00
Karl Heuer 25b332443f (Fsplit_window): For default size, round up for left window. 1999-07-23 08:37:26 +00:00
Karl Heuer 5df0b2faaf (lock_if_free): Return -1 if check_lock_owner()
has returned -1 (lockfile exists but is not a symlink?)
1999-07-22 00:41:21 +00:00
Gerd Moellmann 2327e4a0bc (NARROWPROTO): New. 1999-07-21 21:43:52 +00:00
Gerd Moellmann e18f992255 (FONT_INFO_ID): Build an ID from a font_info pointer.
(FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
(toplevel): Add extern declarations for Vfontset_alias_alist
and Vglobal_fontset_alist.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 18082e2d15 (make_frame): Set n_current_toolbar_items to 0.
(syms_of_frame_1): Add Qtoolbar_lines.
(make_frame): Initialize toolbar members.
(make_frame): Initialize toolbar_window.
(frame-initialize): Set frame-creation-function to
tty-create-frame-with-faces.
(make_terminal_frame): Call init_frame_faces
unconditionally.
(make_frame): Call set_window_buffer instead of
Fset_window_buffer.
(make_frame): Initialze face cache with null.
(make_frame): Initialize face_cache.
(Fdelete_frame): Free it.
(Fdelete_frame): Use xfree instead of free.
(set_menu_bar_lines): Ditto.
(Fmake_terminal_frame): Ditto.
(make_frame): Initialize menu_bar_window to nil.
(make_frame): Remove CURSOR_X/Y.
(set_menu_bar_lines): Adjust matrices.
(make_frame): Initialize pools.
(make_frame): initialize DECODE_MODE_SPEC_BUFFER.
(Fmake_terminal_frame): Adjust glyphs.
(Fdelete_frame): Free glyphs.
(make_frame): Initialize matrix fields in frame.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 3b83d6312c (FRAME_TOOLBAR_LINES): New.
(FRAME_TOP_MARGIN): New.
(struct frame): Add toolbar-related members.
(FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
(CHECK_FRAME): Give this macro a C-statement form!
(CHECK_LIVE_FRAME): Ditto.
(FRAME_FACE_CACHE): New.
(struct frame): Add member face_cache.
(FRAME_FLAGS_AREA_COLS): New.
(FRAME_FLAGS_AREA_WIDTH): New.
(struct frame): New member menu_bar_window.
(struct frame): Add trunc_area_pixel_width, and _cols.
(struct frame): Cursor-related stuff removed.
(FRAME_SCROLL_BAR_WIDTH): Removed.
(FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
(FRAME_CURSOR_X): Removed.
(FRAME_CURSOR_Y): Ditto.
(struct frame): Remove old glyphs, add new.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 8720a429d9 (Fvertical_motion): Rewritten. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 04e209dc56 (ctagsfiles): Split so that files starting
with an `x' are found before files starting with `w32'.
(ctagsfiles1): New.
(ctagsfiles2): New.
(TAGS): Use ctagsfiles[12] instead of ctagsfiles.
Add PNG library.
(obj): Add sound.o.
(LIBW): Use Xaw3d if present.
(LIBTIFF): Added.
(LIBJPEG): Added.
(LIBXPM): If not already defined, define to -lXpm.
(LIBX)[HAVE_X11]: Add LIBXPM.
(term.o): Add dependency on dispextern.h.
(alloc.o): Add dependency to dispextern.h.
(window.o): Depends on dispextern.h.
(alloc.o): Add dependency dispextern.h.
(window.o): Add dependency window.c -> dispextern.h
(term.o): term.c depends on dispextern.h
1999-07-21 21:43:52 +00:00
Gerd Moellmann d3c92eee39 (toplevel): Add function prototypes. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 2e9f55fde2 (prepare_to_modify_buffer): Set windows_or_buffers_changed,
(del_range_1) [PROMPT_IN_BUFFER]: If start position
is less than mini-buffer prompt width, use prompt width as start.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 41c28a3753 (gc_sweep): Call sweep_weak_hash_tables.
(survives_gc_p): New.
(mark_object): Mark objects referenced from glyphs, hash tables,
toolbar date, toolbar window, face caches, menu bar window.
Mark windows specially.
(Fgarbage_collect): Use message3_nolog.
(mark_face_cache): New.
(NSTATICS): Increased to 1024.
(mark_glyph_matrix): New.
1999-07-21 21:43:52 +00:00
Gerd Moellmann ecfd95532d Add function prototypes. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 7ee32cda42 (read_char): Use message3_nolog to show help-echo.
(make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
(kbd_store_ptr): Declare it as a volatile pointer
instead of a pointer to a volatile input_event.
(kbd_buffer_store_event): Remove volatile modifier from
declaration of local variable `sp'.
(Fdiscard_input): Don't cast when assigning kbd_store_ptr
to kbd_fetch_ptr.
(make_lispy_event): Handle mouse on top lines.
(make_lispy_movement): Ditto.
(read_char): Rename local variable echo_area_message
because it shadows the global one.
(cmd_error_internal): Set echo_areA_message.
(command_loop_1): Test echo_areA_message.
(read_char): Ditto.
(record_menu_key): Set echo_area_message to nil.
(Fexecute_extended_command): Test echo_area_message.
(Fexecute_extended_command): Handle echo_area_message.
(toolbar_items): Call access_keymap with third
parameter 1, so that we don't get inherited toolbar item
definitions.
 Ditto.
(kbd_buffer_get_event): Set flag to prevent recording
TOOLBAR_EVENT events in last_nonmenu_event.
(timer_check): Inhibit busy cursor around calls to
timer-event-handler.  This busy cursor tends to be anoying if
fontifying stealthily.
(command_loop_1): Display busy cursor.
(Vshow_help_function): New.
(read_char): Use it.
(make_lispy_event): Add string and string position
info to mouse-click events.
(read_key_sequence): Handle `local-map' property of mode line
strings.
(Qend_scroll): New.
(scroll_bar_parts): Add it.
(scroll_bar_parts): Add Qtop and Qbottom.
(syms_of_keyboard): Add Qbottom.
(make_lispy_event): Handle scroll_bar_click
differently when using toolkit scroll bars.
(cmd_error_internal): Bug fix.
(syms_of_keyboard): Staticpro toolbar_item_properties
and toolbar_items_vectors.
(Qhelp_echo): New symbol.
(read_char): Handle `toolbar' and `help_echo' events.
(kbd_buffer_get_event): Handle HELP_ECHO input event.
(make_lispy_event): Handle TOOLBAR_EVENT.
(toolbar_items): New.
(process_toolbar_item): New.
(PROP): New.
(init_toolbar_items): New.
(append_toolbar_item): New.
(read_char_x_menu_prompt): Handle `toolbar' event.
(read_key_sequence): Ditto.
(syms_of_keyboard): Intern `:help'.
(toolbar_items): New.
(process_toolbar_item): New.
(parse_toolbar_item): New.
(init_toolbar_items): New.
(append_toolbar_item): New.
(detect_input_pending_run_timers): Likewise.
(detect_input_pending_run_timers): Call gobble_input
after redisplaying.
(clear_waiting_for_input): Return void.
(record_asynch_buffer_change): Return void.
(stop_polling): Return void.
(start_polling): Ditto.
(cmd_error_internal): Write to stderr if selected
frame is Vterminal_frame under X.  This is the case when a font
cannot be loaded when Emacs starts.  Replace test for
FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
(quit_throw_to_read_char): Ditto.
(make_lispy_event): mouse clicks; don't do frame
glyph position calculations.
(make_lispy_movement): Use buffer_posn_from_coords and window
relative coordinates.
(make_lispy_event): For mouse clicks, use
x_y_to_hpos_vpos.
(make_lispy_event): Use BUFFER_POSN_FROM_COORDS
with window relative pixel coordinates.  Use GLYPH_TO_PIXEL_-
COORDS mit new arguments.
(make_lispy_event): WINDOW_FROM_COORDINATES with
pixel coords.
(make_lispy_movement): Same.
(interrupt_signal): Cursor_to with 4 params.
(command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
for any character.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 0552666bc1 (init_buffer_once): Init top_line_format.
(default-top-line-format): New.
(top-line-format): New buffer-local variable.
(init_buffer_once): Set buffer_local_flags for
scroll_*_aggressively.
(syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
(init_buffer_once): Set defaults for these variables.
(syms_of_buffer): Add default-scroll-*-aggressively.
(indicate-empty-lines): New.
(default-indicate-zv-lines): Likewise.
(init_buffer_once): Add default for `indicate-zv-lines'.
(init_buffer_once): New variable `default-indicate-zv-lines'.
(syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
(init_buffer_once): Add left_margin_width and
right_margin_width to buffer_local_flags.
(syms_of_buffer): Add buffer-local variables
left-margin-width and right-margin-width.  Add defaults
default-left-margin-width and default-right-margin-width.
(record_buffer): Return void.
(record_asynch_buffer_change): Return void.
(Fget_buffer_create): Initialize minibuffer_prompt_length.
(Fmake_indirect_buffer): Ditto.
(Fkill_buffer): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 6e0adcfa04 (POSN_STRING): New. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 2d8c80b12e Add top_line_format.
(scroll_up_aggressively): New.
(scroll_down_aggressively):  New.
(struct buffer): indicate_empty_lines renamed from
indicate_zv_lines.
(struct buffer): New member indicate_zv_lines.
(struct buffer): New members left_margin_width
and right_margin_width.
(struct buffer): Add member minibuffer_prompt_length
if PROMPT_IN_BUFFER.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 5e6d549314 (Fmessage): Use message3.
(Fcurrent_message): If echo_area_message is set,
return a substring of that string.
(Fformat): Add text properties to the result string
from properties of the format string and properties of string
arguments.
(make_buffer_string_both) [PROMPT_IN_BUFFER]: Prevent start > end.
(make_buffer_string) [PROMPT_IN_BUFFER]: If start
position is less than mini-buffer prompt width, use the prompt
width as start.
(make_buffer_string) [PROMPT_IN_BUFFER): Add prompt
length to start position.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 5010d3b802 (P_): Moved to top of file.
(struct Lisp_Hash_Table): New.
(GC_HASH_TABLE_P): New.
(PVEC_HASH_TABLE): New.
(struct Lisp_Hash_Table): New.
(XHASH_TABLE): New.
(XSET_HASH_TABLE): New.
(HASH_TABLE_P): New.
(CHECK_HASH_TABLE): New.
(DEFAULT_HASH_SIZE): New.
(DEFAULT_REHASH_THRESHOLD): New.
(DEFAULT_REHASH_SIZE): New.
(HAVE_FACES): Removed.
(MAKE_GLYPH): Remove test for frame type.
(GLYPH_CHAR): Ditto.
(GLYPH_FACE): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 3dc9587ac1 (CHAR_LEN): Moved here from dispextern.h. 1999-07-21 21:43:52 +00:00
Gerd Moellmann f69f3ee03b (Fbeginning_of_line) [PROMPT_IN_BUFFER]: Set point to
end of prompt if applied to a mini-buffer and BEG reached.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 279cf52c7f (read_minibuf): Reset echo message strings to nil.
(Fminibuffer_completion_help): Ditto.
(Fminibuffer_complete_word): Fix computation of
i_byte when prompts are inserted into minibuffers.
(read_minibuf): Use minibuf_prompt instead of prompt.
(read_minibuf): Add front-sticky text property for prompt.
(read_minibuf_unwind): Return Lisp_Object.
(read_minibuf): Put access to minibuffer_prompt_length
in #if PROMPT_IN_BUFFER.
(minibuffer-prompt-in-buffer): Bound if
PROMPT_IN_BUFFER.
(read_minibuf): Save the value of
minibuffer_prompt_length in minibuf_save_list.
(read_minibuf_unwind): Restore minibuffer_prompt_length.
(Fminibuffer_prompt_width): Return value from
current_buffer if PROMPT_IN_BUFFER.
(read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
mini-buffer and make it read-only.
(Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
minibuffer_prompt_length instead of BEGV.
(Fminibuffer_complete_word): Ditto.
(Fminibuffer_complete_word): Ditto.
(read_minibuf): Conditionally insert prompt into
buffer instead of handling prompts specially.  Change other
functions accordingly.  All such code is in #if PROMPT_IN_BUFFER.
(read_minibuf): Set MUST_BE_UPDATED_P instead of
building frame matrix.
(read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
(read_minibuf): Build frame matrix.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 43c70fcf91 (HAVE_PNG): New.
(HAVE_SOUND): New.
(HAVE_MACHINE_SOUNDCARD_H): New.
(HAVE_SYS_SOUNDCARD_H): New.
(USE_TOOLKIT_SCROLL_BARS): New.
(HAVE_XAW3D): New.
(HAVE_FACES): Removed.
(HAVE_TIFF): Added.
(HAVE_JPEG): Added.
(HAVE_XPM): New.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 5f5c8ee54a Complete rewrite. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 7eb0330213 (print): Add hash table handling.
(printchar): Set echo_area_message to nil.
(strout): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 90d920b607 (main): Call init_fns.
(main): Call syms_of_sound and init_sound.
(main): Call syms_of_xfaces before init_window_once.
(main): Call init_xfns.
(shut_down_emacs): check glyph memory.
1999-07-21 21:43:52 +00:00
Gerd Moellmann efa2a55cbd (wait_reading_process_input): Show and hide busy
cursor.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 48f8dfa38d (Fsignal): Reset redisplaying_p to zero.
(Fsignal): Hide busy cursor.
(Feval): Check interrupt_input_block == 0.
(Fsignal): Call to quit_error_check removed.
1999-07-21 21:43:52 +00:00
Gerd Moellmann d70392acd4 (BASE_PURESIZE): Increased. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 9c856db9d2 (Fdo_auto_save): Handle the case that echo_area_message
is set.
(Finsert_file_contents): Prevent redisplay optimizations.
(Fread_file_name): Call it.
(report_file_error): Return void.
1999-07-21 21:43:52 +00:00
Gerd Moellmann d80c6c1199 (toplevel): Add hash tables.
(init_fns): New.
(Fmessage): Use message3.
(Fcurrent_message): If echo_area_message is set,
return a substring of that string.
(Fformat): Add text properties to the result string
from properties of the format string and properties of string
arguments.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 8970011174 Rewritten. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 7840ced199 New file. 1999-07-21 21:43:52 +00:00
Gerd Moellmann a168702af0 Rewritten.
(append_glyph): New.
(update_end): Turn cursor on only if selected window's
cursor_off_p flag is not set.
(TS_cursor_visible): Renamed from TS_visual_mode.
(TS_cursor_normal): Renamed from TS_end_visual_mode.
(TS_cursor_invisible):  New.
(term_init): Initialize TS_cursor_invisible.
(tty_hide_cursor): New.
(tty_show_cursor): New.
(update_end): Show tty cursor.
(update_begin): Hide tty cursor to prevent cursor flickering
during redisplays triggered by timers (stealth fontification).
(estimate_mode_line_height): New.
(estimate_mode_line_height_hook): New.
(OUTPUT_IF): Make replacement text have statement form.
(OUTPUT1_IF): Ditto.
(TS_italic_mode, TS_end_italic_mode): Removed.
(TS_bold_mode): Removed.
(TS_underscore_mode, TS_end_underscore_mode): Removed.
(TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
(TS_enter_reverse_mode): New.
(TS_enter_underline_mode, TS_exit_underline_mode): New.
(TN_magic_cookie_glitch_ul): New.
(TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
(TS_exit_attribute_mode): New.
(TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
(TS_set_foreground, TS_set_background): New.
(reset_terminal_modes): Switch colors back to default.
(write_glyphs): Turn face on before writing text, turn it off
afterwards.
(insert_glyphs): Ditto.
(term_init): Initialize new terminal capability variables.
(turn_on_face): Turn a face on.
(turn_off_face): Turn a face off.
(global): Rewrite for new glyphs.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 6820433ec3 (scroll_bar_end_scroll): New.
(scroll_bar_to_top): New.
(scroll_bar_to_bottom): New.
(event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
 Some hooks with prototypes.
Add function prototypes.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 9dd7eec678 (text_property_list): New.
(add_text_properties_from_list): New.
(extend_property_ranges): New.
(validate_interval_range): Make it externally
visible.
1999-07-21 21:43:52 +00:00
Gerd Moellmann f403d3c379 (EmacsFrameSetCharSize): Take widget's border width
into account.
(set_frame_size): Use FRAME_SCROLL_BAR_COLS
to determine vertical_scroll_bar_extra.
(EmacsFrameSetCharSize): Ditto.
(EmacsFrameDestroy): Remove call to free_frame_faces;
it's also called from x_destroy_window.  Since this function is
called from X, freeing stuff allocated with xmalloc is dangerous
here, anyway.
(widget_store_internal_border): Return void.
(create_frame_gcs): Don't allocate relief GCs.
(setup_frame_gcs): Don't change relief GCs.
(setup_frame_gcs): Initialize relief GC's to line
width 1; remove references to relief_gc_line_width.
(create_frame_gcs): Create GC's for relief drawing.
(setup_frame_gcs): Initialize them.
(EmacsFrameDestroy): Free them.
(set_frame_size): Double trunc_area_extra.
(EmacsFrameSetCharSize): Ditto.
(set_frame_size): Set it.
(EmacsFrameSetCharSize): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 9ee67259db (x_set_font): Don't call face-set-after-frame-default
if faces haven't been initialized.
(Fx_create_frame): Call face-set-after-frame-default after
faces have been initialized, and widget has been created.
(scroll_bar): Add x_widget_low and x_widget_high.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 5500c42256 (Fcoordinates_in_window_p): Rewritten.
(scroll_command): If not acting on current_buffer,
make redisplay consider all windows.
(coordinates_in_window): Rewritten.
(Fdelete_other_windows): Use FRAME_TOP_MARGIN
instead of FRAME_MENU_BAR_LINES.
(check_frame_size): Ditto.
(struct save_window_data): Add frame_toolbar_lines.
(Fcurrent_window_configuration): Save toolbar lines.
(window_from_coordinates): Rewritten.
(Vscroll_preserve_screen_position): Replacement for
scroll_preserve_screen_position.
(window_scroll_pixel_based): New.
(Fsplit_window): Rewritten.
(window_internal_width): Rewritten.
(set_window_buffer): Extracted from Fset_window_buffer,
with an additional argument specifying whether or not hooks may
be called.
(Fset_window_buffer): Call it.
(Fset_window_vscroll): New.
(Fwindow_vscroll): New.
(Fpos_visible_in_window_p): Rewrite.
(change_window_height): Return void.
(make_dummy_parent): Return void.
(init_window_once): Return void.
(syms_of_window): Ditto.
(keys_of_window): Ditto.
(delete_window): Correct return with and without value.
(unshow_buffer): Return void.
(delete_window): Ditto.
(set_window_height): Return void.
(set_window_width): Ditto.
(get_phys_cursor_glyph): New.
(change_window_height): Ditto.
(Fset_window_margins): Ditto.
(window_scroll_line_based): Formerly window_scroll.
(window_scroll): Call both.
(window_topmost_p, window_rightmost_p): Removed because not used.
(Fset_window_margins): New.
(Fwindow_margins): New.
(make_window): Rewritten.
(replace_window): Rewritten.
(Fset_window_configuration): Rewritten.
(get_leaf_windows): New.
(Fdelete_window): Free window matrices.
(Fdelete_window): Adjust glyphs.
(change_window_height): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann f43dd8341a (struct window): Add vscroll.
(struct window): New member cursor_off_p.
(struct window): Remove phys_cursor_glyph.
(struct window): New members phys_cursor_ascent and
phys_cursor_descent.
(struct window): New flag pseudo_window_p.
(struct window): Add left_margin_width, right_margin_width.
New member last_cursor.
(WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
(WINDOW_TO_FRAME_VPOS): Convert window vpos
to frame vpos.
(WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
(FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
(FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
(WINDOW_TOPMOST_P): Added.
(struct window): Rewrittenf for new glyphs.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 82641697d8 Implemented from scratch. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 333b20bbc2 (x_real_positions): Don't subtract window borders
from positions returned.
(top-level): Added image support, busy cursor, tooltips, file
selection box.
(x_report_frame_params): Don't report `outer-window-id'
if widget not present.
(x_set_font): Don't call face-set-after-frame-default
if faces haven't been initialized.
(Fx_create_frame): Call face-set-after-frame-default after
faces have been initialized, and widget has been created.
(x_set_scroll_bar_foreground): New.
(x_set_scroll_bar_background): New.
(x_default_scroll_bar_color_parameter): New.
(Fx_create_frame): Call it.
(Fx_create_frame): Initialize scroll bar pixel color
values in x_output structure.
(Qscroll_bar_foreground, Qscroll_bar_background): New.
(syms_of_xfns): Initialize these symbols.
(x_frame_parms): Add entries for scroll bar colors.
(Fx_create_frame): Try 12pt Courier font first.
(Fx_create_frame): Add toolbar height to frame height.
(x_frame_parms): Add `toolbar-lines'.
(x_set_toolbar_lines): New.
(x_set_internal_border_width): Correct call to
widget_store_internal_border_width.
(x_destroy_bitmap): Use xfree instead of free.  Return
void.
(init_x_parm_symbols): Return void.
(x_report_frame_params): Ditto.
(x_set_border_pixel): Ditto.
(syms_of_xfns): Ditto.
(x_destroy_all_bitmaps): Use xfree instead of free.
(Fx_close_connection): Use xfree instead of free.
Only free fonts from filled font table entries.
(display_x_get_resource): Make it externally visible.
(x_set_font): First store real font name in frame
parameters, then call recompute_basic_faces.
(Fx_face_fixed_p): Removed.
(Fx_list_fonts): Moved to xfaces.c.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 3427a3db9f Ditto.
(xmenu_show) [LESSTIF_VERSION]: Add workaround for remaining
button grab under LessTif
(HAVE_BOXES): Define if USE_X_TOOLKIT.
(HAVE_BOXES): Define if using Lucid menus.
(single_submenu): Set button_type of menu to
BUTTON_TYPE_NONE.
(single_submenu): Likewise for panes and menu items.
(set_frame_menubar): Set button_type of menu bar to none.
(xmenu_show): Likewise.
(single_submenu): Set widget values selected slot.
(xmenu_show): Likewise.
(push_menu_item): Add parameters `type' and
`selected'. Store it in menu_items.
(MENU_ITEMS_ITEM_TYPE): New.
(MENU_ITEMS_ITEM_SELECTED): New.
(MENU_ITEMS_ITEM_LENGTH): Increase by two.
(popup_get_selection): Use xmalloc/xfree instead of
malloc/free.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 4da4f20133 (x_load_resources): Set double-click time defaults
for Motif list boxes from double-click-time.
(x_load_resources): Add default resoures for file
selection dialog.
(x_load_resources): Add grey background colors as
defaults for menus, scroll bars, and dialogs.
(x_load_resources): Add font defaults for menus and
dialogs.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 06a2c2193f Display-related functions implemented from scratch. Add toolkit
scroll bars, mouse-sensitive mode line, help-echo, busy-cursor.
(x_calc_absolute_position): Subtract menu bar height
for YNegative, if using X toolkit.
(XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
in scroll bars.
(SET_SAVED_MENU_EVENT): Give it statement form.
(XTflash): Don't flash the toolbar window.
(XTread_socket): Workaround for LessTif popup menus
in case of ButtonPress events.
(XTread_socket): Set inhibit_busy_cursor.
1999-07-21 21:43:52 +00:00
Gerd Moellmann a8cc2c53ca (struct x_output): Add scroll bar pixel colors, busy_cursor,
busy_window.  Remove cursor, computed_faces etc.  Add
white_relief_pixel, black_relief_pixel, white_allocated_p,
black_allocated_p, relief_background.
(struct x_display_info): Add gray pixmap, scroll_bar_pixel,
Xatom_Scrollbar, DONE, PAGE, image cache, resx, rey, smallest_char_width,
smallest_font_height.
(scroll_bar): Add x_widget_low and x_widget_high.
(FRAME_X_IMAGE_CACHE): New.
(FRAME_SMALLEST_CHAR_WIDTH): New.
(FRAME_SMALLEST_FONT_HEIGHT): New.
(struct relief): New.
(VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
(text_cursor_kinds): New.
(FRAME_FLAGS_BITMAP_HEIGHT): New.
(FRAME_FLAGS_BITMAP_WIDTH): New.
(FRAME_X_FLAGS_AREA_COLS): New.
(FRAME_MODE_LINE_BORDER_WIDTH): Removed.
(FRAME_MODE_LINE_HEIGHT): Removed.
(CHAR_TO_PIXEL_WIDTH): Rrwritten.
(PIXEL_TO_CHAR_WIDTH): Ditto.
(WINDOW_COL_PIXEL_X etc.) Removed.
1999-07-21 21:43:52 +00:00
Paul D. Smith 071b0719a0 * Fix memory leaks, fd leaks, and some long-standing bugs recognizing when
targets need to have their modtimes rechecked (-n, etc.)
1999-07-20 22:34:43 +00:00
Dave Love ed8300d96d (syms_of_buffer): Make default-enable-multibyte-characters a user variable. 1999-07-20 16:42:19 +00:00
Richard M. Stallman 33bae69064 (lock_file): Do nothing if purifying. 1999-07-14 16:00:57 +00:00
Richard M. Stallman eea6af04ee (x_display_bar_cursor): Use the cursor-color
to display the bar, not the cursor foreground pixel.
1999-07-10 20:45:46 +00:00
Andrew Innes 191100f2aa (w32_use_full_screen_buffer): New variable.
(syms_of_ntterm): Register it.
(initialize_w32_display): Set initial frame size accordingly,
respecting the LINES and COLUMNS environment variables if set.
1999-07-09 13:38:11 +00:00
Andrew Innes d44c074d09 (w32_console_read_socket): Use new variable w32_use_full_screen_buffer. 1999-07-09 13:36:55 +00:00
Richard M. Stallman 10af5b4c34 (create_process): If the output goes to a unibyte
buffer, suppress character code conversion.p
1999-07-07 22:50:13 +00:00
Richard M. Stallman 237a6fd294 (Finsert_file_contents): If reading into a unibyte
buffer, suppress character code conversion.
1999-07-07 22:49:31 +00:00
Richard M. Stallman 09494912d9 (Fcall_process): Decide coding system for decoding
after we set to the target buffer.  If the output goes to a
unibyte buffer, suppress character code conversion.

(Fcall_process): Don't use initializer on coding_systems.
(Fcall_process_region): Likewise.
1999-07-07 22:48:37 +00:00
Andreas Schwab 9f02739333 (line-number-display-limit): Doc fix. 1999-07-07 10:24:28 +00:00
Richard M. Stallman 0fa248bcc0 (init_callproc): Set exec_directory if installation_directory is
non-nil, without a test of exec_path.
1999-07-02 12:57:10 +00:00
Richard M. Stallman 094d978996 (read_minibuf): Set the multibyteness of the
minibuffer before inserting `initial' string.
1999-07-02 12:15:14 +00:00
Andrew Innes 716490f0c2 (drain_message_queue): New function. 1999-07-01 19:48:55 +00:00
Andrew Innes b37ac782fc (drain_message_queue): Add extern. 1999-07-01 19:48:19 +00:00
Andrew Innes 8b031dcc5f (sys_select): Call MsgWaitForMultipleObjects instead
of WaitForMultipleObjects when user input is allowed, so we can
handle incoming window messages.  Call drain_message_queue when
there are messages waiting; this ensures that windows created
indirectly from the lisp thread get processed properly, and don't
hang other applications by failing to respond to broadcasts.
1999-07-01 19:47:32 +00:00
Andreas Schwab 4b27f17c03 (Fcall_interactively): Ignore first element of
event-symbol-elements property.
1999-07-01 15:02:43 +00:00
Richard M. Stallman 887f2a2d78 Comment changes. 1999-07-01 14:16:44 +00:00