1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
Commit graph

10633 commits

Author SHA1 Message Date
Richard M. Stallman
6cc1fc1d3d (MAXNAMLEN) [WINDOWSNT]: Define as 255. 1994-11-01 08:24:29 +00:00
Richard M. Stallman
dbecffaa01 [WINDOWSNT]: Don't include vlimit.h.
(get_lim_data): Alternate definition for WINDOWSNT.
1994-11-01 08:23:44 +00:00
Richard M. Stallman
317073d51d Change explicit uses of the Unix directory separator
'/' to uses of the macros IS_ANY_SEP, IS_DIRECTORY_SEP,
IS_DEVICE_SEP, DIRECTORY_SEP, and DEVICE_SEP.

(init_lread) [WINDOWSNT]: Disable warnings about
directories in the load path not existing.

(load): Test DOS_NT instead of MSDOS.
1994-11-01 08:22:31 +00:00
Richard M. Stallman
5e570b7585 Change explicit uses of the Unix directory separator
/' to uses of the macros IS_ANY_SEP, IS_DIRECTORY_SEP,
S_DEVICE_SEP, DIRECTORY_SEP, and DEVICE_SEP.

[WINDOWSNT]: Don't define HAVE_FSYNC; add includes for NT.

(Ffile_name_absolute_p): Test DOS_NT instead of MSDOS.
(Fwrite_region, Fdo_auto_save, Ffile_modes): Likewise.

(Qfind_buffer_file_type): Test DOS_NT instead of MSDOS.
(syms_of_files): Likewise.
(Finsert_file_types): Test DOS_NT instead of MSDOS.
Rename local var try to trytry.

(Fadd_name_to_file): Wlways fail.
(Frename_file) [WINDOWSNT]: Use MoveFile, not link and unlink,
and check for both ERROR_FILE_EXISTS and ERROR_ALREADY_EXISTS.
(Fmake_directory_internal) [WINDOWSNT]: Invoke mkdir without the mask.

(Fexpand_file_name): Test DOS_NT, not MSDOS.
(Fexpand_file_name) [WINDOWSNT]: Accept // or \\ at start.
Call dostonunix_filename for HOME envvar, for ~USER.
Quote directory separators found in environment variables.
(Fsubstitute_in_file_name): Test DOS_NT instead of MSDOS.
(Fsubstitute_in_file_name) [WINDOWSNT]: Accept // or \\ at start.
Work around alloca bug in MS compiler.
(Ffile_name_directory): Test DOS_NT instead of MSDOS sometimes.
But don't insert a drive letter on windows.
1994-11-01 08:16:31 +00:00
Richard M. Stallman
cc5f52cbfa (Fdump_emacs): Don't reset the data start address by
invoking memory_warnings just before unexec-ing.
1994-11-01 07:07:32 +00:00
Richard M. Stallman
0b39d75da8 Use macros IS_ANY_SEP, IS_DIRECTORY_SEP, and DIRECTORY_SEP.
(file-attributes) [WINDOWSNT]: Set st_gid and st_uid to Qnil; use
get_inode_and_device_vals to fake up inode number and device number.
1994-11-01 07:03:57 +00:00
Richard M. Stallman
bad95d8f8d (getenv_internal) [WINDOWSNT]: Use strnicmp, not bcmp.
(child_setup): Use IS_DIRECTORY_SEP.
[WINDOWSNT]: Call prepare_standard_handles.  Use spawnve.
Use reset_standard_handles.

(Fcall_process_region): Test DOS_NT, not MSDOS.
(Fcall_process) [WINDOWSNT]: Call pipe_with_inherited_out.
Use the return value of child_setup to get the child's pid;
don't call vfork etc. explicitly.

[WINDOWSNT]: Add includes.  Defone NOMINMAX, _P_NOWAIT.
(Vbinary_process_input, Vbinary_process_output)
(Qbuffer_file_type): Test DOS_NT, not MSDOS.
(syms_of_callproc): Test DOS_NT, not MSDOS.

(init_callproc): Test DOS_NT, not MSDOS.
1994-11-01 06:49:52 +00:00
Richard M. Stallman
f7975d0711 (init_buffer): Use DIRECTORY_SEP, IS_DIRECTORY_SEP macros,
not character constants.
(init_buffer_once, syms_of_buffer): Test DOS_NT, not MSDOS.
1994-11-01 06:39:38 +00:00
Richard M. Stallman
5e028eee2a (struct buffer): Test DOS_MT, not MSDOS. 1994-11-01 06:17:07 +00:00
Karl Heuer
b30ec46658 (XTclear_end_of_line): Finish the line dance here too, just as was done in
XTwrite_glyphs.
1994-11-01 00:26:36 +00:00
Richard M. Stallman
77b686467c (fast_find_position): Special case if POS is end of buffer. 1994-11-01 00:07:34 +00:00
Karl Heuer
163638a8a9 (column_number_displayed): New variable.
(redisplay, redisplay_window): If that var is set, do mode line.
(display_mode_line): Unset the var.
(decode_mode_spec): Set the var if %c was seen.
1994-10-31 21:50:17 +00:00
Richard M. Stallman
ce006f691a (display_text_line): Truncate the minibuf_prompt if nec. 1994-10-30 21:02:06 +00:00
Richard M. Stallman
ae921e6f5a (BASE_PURESIZE): Increment MULTI_FRAME value. 1994-10-30 20:12:53 +00:00
Richard M. Stallman
6befb35eba (unexec): Don't print number of pure bytes used. 1994-10-30 08:20:41 +00:00
Karl Heuer
f3e59d5e1a (read_avail_input): Fix Lisp_Object vs. int problem. 1994-10-29 18:33:48 +00:00
Richard M. Stallman
82c90203bd (Fx_create_frame): Set xlwmenu_default_font.
[USE_X_TOOLKIT] (x_window): Use XtAppCreateShell.
(Xt_app_shell, Xt_app_con): Variables deleted.

(Fx_close_connection) [USE_X_TOOLKIT]: Call XtCloseDisplay.
1994-10-29 09:47:12 +00:00
Richard M. Stallman
7f9c7f949a (x_delete_display): Call XrmDestroyDatabase.
(x_destroy_window): Rewrite to fetch dpyinfo just once.

[USE_X_TOOLKIT]: Make application context explicitly
and support multiple top-level shells.
(x_initialize): Call XtToolkitInitialize, XtCreateApplicationContext;
don't open display or make a shell.
(x_term_init): Call XtOpenDisplay.

(x_scroll_bar_create): Use XMapRaised directly.
(x_make_frame_visible, x_iconify_frame): Likewise.
(XMapWindow): Macro definition deleted.
(METABIT): Macro deleted.
(MAXDESC, FD_SETSIZE, FD_SET, FD_CLEAR, FD_ZERO, FD_ISSET): Likewise.
(x_id_name): Variable deleted.
1994-10-29 09:43:07 +00:00
Richard M. Stallman
47c2ba0e27 (LD_SWITCH_SYSTEM): Definitions deleted.
(INTERRUPTIBLE_IO, INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE)
(read, write, open, close): New definitions.
1994-10-28 19:00:34 +00:00
Richard M. Stallman
5f8e11f926 (LD_SWITCH_MACHINE): New definition. 1994-10-28 18:54:40 +00:00
Karl Heuer
a9ee7a5992 (Fset_buffer_major_mode): New function. Set the default major mode here.
(Fget_buffer_create): Not here.
(Fswitch_to_buffer): Call Fset_buffer_major_mode.
(syms_of_buffer): defsubr the new function.
1994-10-27 22:35:14 +00:00
Karl Heuer
8af6db0671 (keys_of_frame): Bind the new events to 'ignore, since the window manager has
already done the work.
1994-10-27 21:15:50 +00:00
Karl Heuer
af17bd2bcc (kbd_buffer_get_event): Translate them to lispy events.
(head_table): Initialize those new symbols appropriately.
1994-10-27 21:13:33 +00:00
Karl Heuer
f2afbef624 (iconify_event, deiconify_event): New events. 1994-10-27 21:09:39 +00:00
Karl Heuer
4d19cb8e06 (set_frame_menubar): Don't copy string during GC risk. 1994-10-27 18:44:47 +00:00
Roland McGrath
bf074c060c [alliant && i860] (FSCALE): Move defn before #ifndef FSCALE. 1994-10-27 00:34:56 +00:00
Richard M. Stallman
3abc2d461a (HAVE_GETPAGESIZE): Explicitly #undef. 1994-10-26 23:25:45 +00:00
Richard M. Stallman
bf20bdca0e (HAVE_GETPAGESIZE): Definition deleted. 1994-10-26 23:25:27 +00:00
Richard M. Stallman
d73fe42b59 (HAVE_GETPAGESIZE): Add #undef. 1994-10-26 23:19:58 +00:00
Paul Eggert
273c0c509d (re_comp, re_exec): Define this obsolete 4.2bsd
interface only if the new feature test macro _REGEX_RE_COMP is defined.
This avoids a clash with Cray YMP include files.
1994-10-26 22:43:45 +00:00
Richard M. Stallman
38971c4157 (set_frame_size): Set app_shell and wmshell the same. 1994-10-26 12:57:46 +00:00
Richard M. Stallman
ed0cae0592 (status_message): Add a cast.
(sigchld_handler): Add a cast.
1994-10-26 09:30:46 +00:00
Richard M. Stallman
7a13e8946b (x_catch_errors, x_check_errors, x_had_errors_p)
(x_uncatch_errors): Make the argument a display, not a frame.

(XTread_socket_fake_io_error): New variable.
(XTread_socket): Obey XTread_socket_fake_io_error.

(x_initialize): Init x_noop_count, x_focus_frame
and x_highlight_frame here.
(x_term_init): Not here.

(x_term_init): Open the connection first thing;
if that fails, don't allocate dpyinfo.

(x_delete_display): New function.
(x_connection_closed): New args dpyinfo and error_message.
Delete all frames on the dead display
and all frames using them for minibuffers.
Call x_delete_display.
Maybe signal a Lisp error.

(x_term_init): Don't report error here--just return 0.

(x_scroll_bar_report_motion): Store proper value in
*bar_window (the Emacs window, not the X window number).

(x_scroll_bar_report_motion): Don't clear *fp.

(x_wm_set_icon_pixmap): Use x_bitmap_pixmap.

(show_mouse_face): New arg dpyinfo.  All callers changed.
(clear_mouse_face): New arg dpyinfo.  All callers changed.

(scratch_cursor_gc): Variable deleted.
(dumpglyphs): Use scratch_cursor_gc in x_display_info.

(syms_of_xterm): Don't staticpro mouse_face_window.

(expose_all_windows, expose_all_icons): Variables deleted.
(BLOCK_INPUT_mask): Variable deleted.

(x_term_init): Set up x_id_name field.
(x_id_name): Variable deleted.

(x_font_table, x_font_table_size, x_n_fonts): Vars deleted.
(x_new_font): Use new fields.
(warp_mouse_on_deiconify): Unused variable deleted.

(x_term_init): Set up dpyinfo->xrdb.
Set up dpyinfo->vertical_scroll_bar_cursor.
(x_scroll_bar_create): Use vertical_scroll_bar_cursor slot.
(x_vertical_scroll_bar_cursor): Variable deleted.

(x_term_init): Really return dpyinfo.

(x_term_init): Call add_keyboard_wait_descriptor,
not change_keyboard_wait_descriptor.

(x_term_init): Pass new arg to init_sigio.
Don't set old_fcntl_owner.
Don't call change_input_fd.
(XTread_socket): Loop over displays and process input from each.

(x_display_name_list): New variable.
(syms_of_xterm): staticpro it.
Don't staticpro slots in the_x_screen.
(x_term_init): Update x_display_name_list along with x_display_list.
Actually malloc the x_display_info.
(the_x_screen): Variable deleted.
1994-10-26 09:26:40 +00:00
Richard M. Stallman
c4ec904fd6 (x_window): Pass new arg f to hack_wm_protocols.
(x_set_mouse_color, x_real_positions): Change calls
to x_catch_errors and friends.
1994-10-26 09:19:57 +00:00
Karl Heuer
99da5b4efd (syms_of_window): Fix missing \n\'s. 1994-10-26 06:22:14 +00:00
Richard M. Stallman
a7b24d4689 (x_own_selection, x_get_foreign_selection): Change calls
to x_catch_errors and friends.
1994-10-26 04:58:18 +00:00
Richard M. Stallman
f34e2e1816 Comment changes. 1994-10-26 04:43:33 +00:00
Karl Heuer
a9fde32e8d (list_processes_1): Print tty name. 1994-10-26 00:21:05 +00:00
Richard M. Stallman
c3ef6b1d5f (Vtemp_buffer_show_function): Doc fix. 1994-10-25 20:34:42 +00:00
Richard M. Stallman
866fc66add (Brk): Declare as unsigned long.
(unexec): Do CHECH_SCNHDR on _RCONST if that's defined.
Ignore rdata_section if there is none.
(update_dynamic_symbols): New arg new_name.  Call changed.
Fix some calls to WRITE.
(fatal_unexec): Declare all arguments.
1994-10-25 10:52:58 +00:00
Richard M. Stallman
e964ed223e Delete X10 code.
(struct x_display_info): New fields bitmaps, bitmaps_size, bitmaps_last.
(struct x_bitmap_record): Structure moved here.

(struct font_info): New type.
(struct x_display_info): New fields font_table, font_table_size and n_fonts.

(struct x_display_info): New field scratch_cursor_gc.

(mouse_face_*): New fields.

(struct x_display_info): New field x_id_name.

(struct x_display_info): Replace elements `name'
and `face_list_cache' with one cons cell `name_list_element'.
(x_display_name_list): Variable declared.
1994-10-25 10:42:02 +00:00
Richard M. Stallman
c6423dc1ac (Fx_selection_exists_p): Fix backwards if. 1994-10-25 10:34:49 +00:00
Richard M. Stallman
08a90d6aea (Fx_create_frame): Don't increment refernce_count
until the frame is put on the frame list.

(Fx_close_connection): Call x_delete_display.

(x_display_info_for_name, Fx_open_connection):
Signal error if x_term_init fails.
(Fx_open_connection): New arg must_succeed.

(x_real_positions): Catch errors and retry if error happens.
No need to block input here.

(Fx_create_frame): Don't store the frame name
till after FRAME_X_DISPLAY_INFO is set up.
(Fx_close_connection): Renamed from Fx_close_current_connection

Many doc fixes and Lisp function arg renamings.

(x_bitmaps, x_bitmap_size, x_bitmap_last):
Variables deleted.  Use fields in x_display_info instead.
(x_bitmaps_free): Variable deleted.
(x_destroy_bitmap, x_allocate_bitmap_record): Don't use or set it.
(x_allocate_bitmap_record): New arg f.  Callers changed.
(x_lookup_pixmap): Function deleted.
(x_destroy_all_bitmaps): New function.
(Fx_close_current_connection): Call x_destroy_all_bitmaps.
Free the fonts in the font table.  Free various other data
that dpyinfo points to.  Avoid using Fdelq.

(x_set_name, Fx_create_frame): Use x_id_name field.

(Fx_close_current_connection):
Call delete_keyboard_wait_descriptor.

(Fx_close_current_connection): Call check_x_display_info.
Delete the display from x_display_list and x_display_name_list.
(Fx_display_list): New function.
(syms_of_xfns): defsubr it.

(Fx_list_fonts): Use `name_list_element' field.
(x_display_info_for_name): Scan x_display_name_list
along with x_display_list.
1994-10-25 10:33:36 +00:00
Richard M. Stallman
e4fe371d28 (record_char): New subroutine.
(read_char): Use record_char.
Split up menu-bar mouse click events here.
Call record_char for both halves; likewise echo_char and add_command_key.
1994-10-25 10:26:49 +00:00
Richard M. Stallman
23dab951ec Never use input_fd if using X.
(stuff_char): Do nothing if read_socket_hook.
(setpgrp_of_tty): Function deleted.
(init_sigio): Take fd as argument.  Callers changed.
Don't call request_sigio; do the work here.
(request_sigio, unrequest_sigio): Do nothing if read_socket_hook.
(init_sys_modes): Don't call EMACS_GET_TTY unless we are going
to change the settings.
1994-10-25 09:51:50 +00:00
Richard M. Stallman
a69281ffda Handle multiple keyboard input descriptors.
(non_keyboard_wait_mask): New variable.
(Fset_process_filter): Update non_keyboard_wait_mask
(create_process, Fopen_network_stream, deactivate_process):
(init_process, sigchld_handler): Likewise.
(wait_reading_process_input): Maybe use non_keyboard_wait_mask.
(add_keyboard_wait_descriptor):
Renamed from change_keyboard_wait_descriptor.
Clear the old descriptor's bit only the first call.
(delete_keyboard_wait_descriptor): New function.
(keyboard_bit_set): New function.
(wait_reading_process_input): Use keyboard_bit_set.
Start the loop over process descs from 0, and explicitly
ignore non-process input descs.
(init_process): Don't init keyboard_descriptor.
(keyboard_descriptor): Variable deleted.
(add_keyboard_wait_descriptor): Don't set keyboard_descriptor.
(delete_keyboard_wait_descriptor): New function.
1994-10-25 09:48:44 +00:00
Richard M. Stallman
61bd0e9ccd (insert_from_buffer_1): Don't use min. 1994-10-25 07:53:05 +00:00
Karl Heuer
961dda3e4e (decode_mode_spec): New spec %c, for current column. 1994-10-25 00:45:21 +00:00
Richard M. Stallman
b8c70430de (Fx_selection_exists_p): If selected_frame isn't an x frame, return nil. 1994-10-24 21:59:55 +00:00
Richard M. Stallman
0704eec933 (unload_color): Pass arg f to WHITE_PIX_DEFAULT and BLACK_PIX_DEFAULT. 1994-10-23 09:40:07 +00:00