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

4258 commits

Author SHA1 Message Date
Roland McGrath
2eb6bfbe93 (EVENT_QUEUES_EMPTY): Only test do_mouse_tracking and mouse_moved #ifdef
HAVE_MOUSE.
(Ftrack_mouse): Protect with #ifdef HAVE_MOUSE.
(syms_of_keyboard): Protect initialization of do_mouse_tracking, defsubr
of Strack_mouse, and DEFVAR of track-mouse with #ifdef HAVE_MOUSE.
1994-11-09 03:43:30 +00:00
Karl Heuer
3558db6f4d (Fset_frame_height): Compare against height, not width. 1994-11-08 02:43:25 +00:00
Roland McGrath
bcce3e0245 Move decl of input_fd outside of #ifdef HAVE_X_WINDOWS. 1994-11-08 02:37:04 +00:00
Karl Heuer
bddd097cb1 (XTread_socket): Generate iconify and deiconify events. 1994-11-04 04:00:50 +00:00
Karl Heuer
85cdd6afed Changed references of m\m-windowsnt.h to m\intel386.h and of s\s-windowsnt.h
to s\windowsnt.h.
1994-11-03 21:11:43 +00:00
Karl Heuer
b65769c78d (sbrk): Allow request sizes to be different than the page size. 1994-11-03 21:07:19 +00:00
Karl Heuer
8c147e4053 [WINDOWSNT]: (VIRT_ADDR_VARIES, DATA_END, DATA_START, HAVE_ALLOCA): Defined. 1994-11-03 20:49:20 +00:00
Karl Heuer
1cd47f14cc #include <malloc.h>.
(HAVE_MOUSE, MODE_LINE_BINARY_TEXT): defined.
1994-11-03 20:46:43 +00:00
Karl Heuer
40a5b2e17b (Fx_list_fonts): Don't bother to retrieve font info when there's no size_ref
to compare it against.
1994-11-02 06:18:45 +00:00
Karl Heuer
3c887943b4 (Fdecode_time): Fix Lisp_Object vs. integer problems.
Don't use tm_gmtoff; it's not portable.
1994-11-02 04:27:27 +00:00
Karl Heuer
568641ead2 Leave DEVICE_SEP undefined by default. 1994-11-02 02:35:56 +00:00
Richard M. Stallman
cf1e6391ae (init_buffer): Fix error message syntax. 1994-11-02 01:22:31 +00:00
Richard M. Stallman
3463f90ac0 (Fdecode_time): Change one XFASTINT to XINT. 1994-11-01 21:06:55 +00:00
Richard M. Stallman
dd254b21da (x_window): Make ibw 0 by default.
(Fx_create_frame): Don't set xlwmenu_default_font if not USE_X_TOOLKIT.
1994-11-01 21:05:11 +00:00
Richard M. Stallman
896c0d8b14 (SYSTEM_PURESIZE_EXTRA): Defined. 1994-11-01 10:31:35 +00:00
Richard M. Stallman
95ed00257a Initial revision 1994-11-01 10:27:02 +00:00
Richard M. Stallman
4691c06db4 (init_editfns): Get the username from the environment
variable USERNAME instead of USER.

(Fdecode_time): New function.
(syms_of_editfns): defsubr it.
1994-11-01 08:50:20 +00:00
Richard M. Stallman
bc536d8477 (read_key_sequence): Use flags instead of gotos to
enable the Microsoft C compiler to compile the routine.

(read_avail_input) [WINDOWSNT]: Just return 0.

(make_lispy_event): Record double and triple for drags.
Put in click_modifier for multi-clicks.
(read_key_sequence): Convert double-drag first to plan drag,
and only later try a click.
1994-11-01 08:49:40 +00:00
Richard M. Stallman
881a5a8093 (DEVICE_SEP, DIRECTORY_SEP, IS_DEVICE_SEP)
(IS_DIRECTORY_SEP, IS_ANY_SEP): New macros, defined if not already def.
1994-11-01 08:47:47 +00:00
Richard M. Stallman
fcc182b34b (DOS_NT): Defined. 1994-11-01 08:45:04 +00:00
Richard M. Stallman
cb28b9c22b (term_init) [WINDOWSNT]: Do some Windows-specific
initialization, then skip the rest of the code.
(FRAME_TERMCAP_P) [WINDOWSNT]: Always return 0.
1994-11-01 08:44:15 +00:00
Richard M. Stallman
57d655926a [WINDOWSNT] (EMACS_KILLPG): Use win32_kill_process. 1994-11-01 08:42:36 +00:00
Richard M. Stallman
101adcb531 Test DOS_NT, not MSDOS. 1994-11-01 08:41:25 +00:00
Richard M. Stallman
fe03522be2 [WINDOWSNT]: Add includes for NT.
Define _P_WAIT.  Declare _spawnlp, _getpid.
[WINDOWSNT] (select, strerror, vfork): Don't use these definitions.

(init_sys_modes): Test DOS_NT, not MSDOS.
(emacs_get_tty, emacs_set_tty,(child_setup_tty, init_baud_rate): Ditto.

(sys_subshell) [WINDOWSNT]: Use _spawnlp. not vfork.
(wait_for_termination) [WINDOWSNT]: Use wait.
(discard_tty_input) [WINDOWSNT]: Do nothing at all.
1994-11-01 08:39:49 +00:00
Richard M. Stallman
e98d950b32 Use macros IS_ANY_SEP, IS_DIRECTORY_SEP,
IS_DEVICE_SEP, DIRECTORY_SEP, and DEVICE_SEP.
[WINDOWSNT]: Add includes.  Don't define sys_siglist.

(sigchld_handler): Work around bug in MS C compiler.
(sigchld_handler) [WINDOWSNT]: Do not call signal.
(signal_process) [WINDOWSNT]: Use win32_kill_process instead of kill.
(read_process_output) [WINDOWSNT]: Use read_child_output instead of
read.

(create_process) [WINDOWSNT]: Use
pipe_with_inherited_out  and pipe_with_inherited_in.
Use the pid returned by child_setup.  Deal with not having vfork,
Call register_child.
(close_process_descs): Do nothing if WINDOWSNT.

(proc_buffer_char): No longer static.
1994-11-01 08:31:31 +00:00
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