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

125 commits

Author SHA1 Message Date
Fred Pierresteguy
bc20ebbfef (x_make_frame_invisible): Add USE_X_TOOLKIT conditional. 1994-02-07 18:25:41 +00:00
Richard M. Stallman
502add23f1 (XTread_socket): Add X_IO_BUG conditional. 1994-02-02 23:47:57 +00:00
Karl Heuer
8c002a25f4 (x_iconify_frame): Fix misbalanced BLOCK_INPUT/UNBLOCK_INPUT. 1994-02-02 07:34:08 +00:00
Karl Heuer
8c86eccda4 (x_term_init): Use get_system_name instead of gethostname. 1994-02-02 06:32:28 +00:00
Richard M. Stallman
a07d4bc524 (dumpglyphs): Don't crash for invalid face code. 1994-02-01 06:49:18 +00:00
Fred Pierresteguy
80fd1fe20c (x_set_window_size): Add USE_X_TOOLKIT conditional. Call EmacsFrameSetCharSize and return. 1994-01-28 17:34:46 +00:00
Fred Pierresteguy
5c94b90b10 * xterm.c (x_term_init): Cast to (char **) before assignment to argv. 1994-01-28 14:28:51 +00:00
Richard M. Stallman
4466efa553 (x_set_mouse_position): Don't raise the frame. 1994-01-26 21:09:54 +00:00
Richard M. Stallman
3afe33e7ec (x_wm_set_size_hint): Swap southeast and northwest.
(XTupdate_end): No need to test updating_frame.

(construct_mouse_click): New function, in #ifdef USE_X_TOOLKIT.
(process_expose_from_menu): Likewise.
(XTread_socket, x_set_offset, x_set_window_size): Handle USE_X_TOOLKIT.
(x_raise_frame, x_lower_frame, x_make_frame_visible): Likewise.
(x_iconify_frame, x_destroy_window, x_wm_set_window_state): Likewise.
(x_term_init): Likewise.

(x_term_init): Pass argv, argc to XtAppInitialize with the display_name value.

Include syssignal.h.


The following belongs in a previous version's log entry:

(XTread_socket): temp_buffer and temp_index deleted.
Put all vendor-specific keys into the buffer.
(x_is_vendor_fkey): Function deleted.
(XTread_socket): Don't call it.
1994-01-26 05:25:06 +00:00
Richard M. Stallman
66c30ea1e4 (XTflush): FIx typo in last change. 1993-12-26 09:06:44 +00:00
Richard M. Stallman
307feb1fd5 (XTread_socket): Make proper junk values to pass to select. 1993-12-26 07:08:08 +00:00
Richard M. Stallman
ce3f43382e (XTflash): Use EMACS_GET_TIME. 1993-12-26 06:00:04 +00:00
Richard M. Stallman
6938823812 (XTread_socket): Don't offset keysym here.
Special handling for "dead accent" keysyms.

(construct_mouse_click, x_scroll_bar_handle_click)
(XTread_socket): `code' of an event is now an int.

(pixel_to_glyph_coords): New arg NOCLIP.  Callers changed.

(XTread_socket): For MotionNotify, if x_mouse_grabbed, use last_mouse_frame.
(construct_mouse_click): Set last_mouse_frame.
(XTmouse_position): If x_mouse_grabbed, use last_mouse_frame.

(x_calc_absolute_position): Borderwidth must be doubled
before subtracting from width to get correct value.
1993-12-23 00:57:11 +00:00
Richard M. Stallman
1fb20991bf (XTread_socket): Really handle Xatom_wm_window_moved events.
(XTread_socket): Generate delete_window_event's.
1993-11-24 06:39:54 +00:00
Richard M. Stallman
bf6d8fb9b1 (XTread_socket): Increase length of copy_buffer to 81. 1993-11-15 06:30:31 +00:00
Richard M. Stallman
472895ad89 (XTmouse_position): Undo roland's change.
Fix bug in bfox change.
1993-11-11 02:33:43 +00:00
Roland McGrath
e5074ca4b1 (XTmouse_position): First arg is FRAME_PTR, not FRAME_PTR *. 1993-11-10 22:56:45 +00:00
Richard M. Stallman
4dea6d905e (Tmouse_position): If the passed in frame is not an
Xwindow frame, don't do anything.
1993-11-10 20:07:07 +00:00
Richard M. Stallman
e53cb100f7 (syms_of_xterm): Initialize last_mouse_scroll_bar. 1993-11-10 06:10:27 +00:00
Richard M. Stallman
dff815ef33 (x_new_font): xmalloc arg was 1 too small. 1993-11-03 20:31:49 +00:00
Brian Fox
2554751d80 (w_wn_set_size_hint): Make recent window gravity addition
depend on "PWinGravity" begin `#defined'.
1993-09-22 18:16:37 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
61c3ce6288 (x_term_init): Call change_keyboard_wait_descriptor,
instead of dup2.  Use the existing X desc number in fcntl calls.
(XTread_socket): Don't forget to clear out `mask'.
1993-09-08 17:53:49 +00:00
Richard M. Stallman
6dba18584c (x_wm_set_size_hint): New args spec_x and spec_y.
Set the window gravity.  All callers changed.

(XTread_socket): Make copy_buffer unsigned.

(x_calc_absolute_position): For negative coords, take
account of added width from window manager's outer window.
1993-08-14 11:00:54 +00:00
Richard M. Stallman
2224a5fc74 (struct font_info): New structure.
(x_font_table): Use struct font_info as elements.
(x_new_font): Corresponding changes.
Use XListFonts, not XListFontsWithInfo.
Use XFreeFontNames, not XFreeFontInfo.
Compare fonts by name, not by fid.
If already_loaded is 0, that counts as "yes".
1993-08-08 22:38:31 +00:00
Richard M. Stallman
b30b24cbc3 (x_term_init): Set the hooks before we call Fset_input_mode. 1993-08-06 23:37:41 +00:00
Richard M. Stallman
a9c0010533 (x_iconify_frame): Handle case where frame was invisible. 1993-07-27 08:33:44 +00:00
Richard M. Stallman
c83febd71f (redraw_previous_char): New function. 1993-07-25 21:50:16 +00:00
Richard M. Stallman
7719aa0601 (XTread_socket) [! HAVE_X11R5]:
Check for XK_Mode_switch and XK_Num_Lock, if defined.
1993-07-23 08:04:52 +00:00
Jim Blandy
041b69acff * xterm.c (x_term_init): Adjust message printed when we can't
connect to the X server.

	* xterm.c (XTread_socket, UnmapNotify case): Add missing comment
	terminator.

	* xterm.c, sysdep.c (F_SETOWN_BUG): Defined.
	* m/dpx2.h: New file.
1993-07-18 06:29:55 +00:00
Jim Blandy
6cc35d868b * xterm.c (XTread_socket): When handing non-synthetic
ConfigureNotify events, don't refer to the parent window
	descriptor.
1993-07-02 04:00:38 +00:00
Jim Blandy
b3e1e05cfe * xterm.c (frame_highlight, frame_unhighlight): Don't test
Vx_no_window_manager.  BLOCK_INPUT around the border manipulation
	calls.
1993-07-01 04:04:32 +00:00
Jim Blandy
66f55a9d0c * xterm.c (XTread_socket): Initialize event_found to zero, and
pass a zeroed timeout to select, not a null pointer; the latter
	means "wait forever".
1993-06-30 21:35:22 +00:00
Jim Blandy
c34efc6cd8 * xterm.c: Add CPP tangle from process.c to get definitions for
FD_SET, etcetera.
	(XTread_socket): Use those macros when testing for dropped connection.
1993-06-29 23:07:22 +00:00
Jim Blandy
31ea78fd30 * xterm.c (XTread_socket): Remove #if 0''s around code which tests
for dropped connection (i.e. sigio but no events).
1993-06-24 01:34:33 +00:00
Jim Blandy
28f7279833 Separate parameter faces (those created and modified by the user)
from the computed faces (the combinations created by
	compute_char_face), so that we don't waste global face id's.
	* xterm.h (struct x_display): Replace the fields faces and n_faces
	with fields param_faces, n_param_faces, computed_faces,
	n_computed_faces, and size_computed_faces.
	(FRAME_FACES, FRAME_N_FACES): Replaced by...
	(FRAME_COMPUTED_FACES, FRAME_N_COMPUTED_FACES, FRAME_PARAM_FACES,
	FRAME_N_PARAM_FACES): New macros.
	* xfaces.c: Doc fixes.
	(init_frame_faces): Call new_computed_face to create entries for
	the default and mode line faces.  Use the FRAME...PARAM_FACES
	macros.
	(free_frame_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Don't use the copy flag; all
	parameter faces have real X resources, and all computed faces just
	have copies.  Free both the parameter and computed face arrays.
	(new_computed_face): New function.
	(intern_computed_face): Renamed from intern_frame_face; callers
	changed.  Call new_computed_face.
	(ensure_face_ready, compute_char_face, compute_glyph_face): Use the
	FRAME...PARAM_FACES macros.
	(recompute_basic_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Produce the computed faces by
	starting with the base faces and merging in the parameter faces.
	(Fset_face_attribute_internal): Use the FRAME...PARAM_FACES
	macros.  Just call recompute_basic_faces if the default or mode
	line faces have changed.
	* xfns.c (Fx_list_fonts): Use the FRAME...PARAM_FACES macros.
	* xterm.c (dumpglyphs): Use the FRAME...COMPUTED_FACES macros.
	* dispextern.h (struct face): Remove the copy member.  This is no
	longer necessary; all computed faces are copies, and no parameter
	faces are.
1993-06-22 07:26:44 +00:00
Jim Blandy
64a0721980 * xterm.c (XTread_socket): Never treat a modifier key as a
non_ascii_keystroke.
1993-06-19 21:01:38 +00:00
Richard M. Stallman
1cd2d6d402 (x_connection_closed): Pass new arg to shut_down_emacs. 1993-06-13 02:06:17 +00:00
Jim Blandy
43f868f524 * xterm.c (XTset_vertical_scroll_bar): Use double type for
intermediate results in scaling.
1993-06-12 17:00:45 +00:00
Jim Blandy
e09f935147 * xterm.c (x_error_quitter, x_io_error_quitter): Remove calls to
abort.  We can always run Emacs with _Xdebug set to 1.
1993-06-12 16:52:03 +00:00
Richard M. Stallman
a135645ac2 (XTmouse_position): Don't set *f at all unless we win. 1993-06-11 23:43:54 +00:00
Jim Blandy
0c94f6ee88 * xterm.c (x_new_font): If font_names is zero, that's all the
indication we get that no matches were found.
1993-06-11 07:02:36 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Jim Blandy
e4571a43ea * xterm.c (x_is_vendor_fkey): New function.
(XTread_socket): Call it to recognize vendor-specific function keys.
1993-06-09 04:56:47 +00:00
Richard M. Stallman
cef13e5501 (x_caught_error_message): Change type to char* from char*[].
(X_CAUGHT_ERROR_MESSAGE_SIZE): New macro.
(x_error_catcher): Corresponding changes.
(x_catch_errors): Corresponding changes.
(x_check_errors): Do not free x_caught_error_message.
(x_uncatch_errors): Set x_caught_error_message to 0 after freeing it.
1993-06-07 23:52:45 +00:00
Richard M. Stallman
5835f86081 (x_new_font): Don't give up right away if XListFontsWithInfo
finds no fonts--try XLoadQueryFont anyway.
1993-06-06 03:27:43 +00:00
Richard M. Stallman
60f9aad3af (x_catch_errors): Fill in missing array size in cast. 1993-06-04 00:57:45 +00:00
Richard M. Stallman
82ee0df472 (x_wm_set_size_hint): Handle XGetNormalHints returning 0. 1993-06-03 05:29:12 +00:00
Richard M. Stallman
465791dacd Comment change. 1993-05-31 21:58:25 +00:00
Richard M. Stallman
2d3682341c (XTread_socket, case KeyPress) [HPUX]: Test IsModifiedKey.
Include systty.h; don't mess with FIONREAD.
Don't include termio.h dorectly.
1993-05-31 18:33:08 +00:00