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

1264 commits

Author SHA1 Message Date
Chong Yidong
75f23946ee (x_free_frame_resources): Remove extraneous call to free_frame_faces. 2008-12-15 01:57:54 +00:00
Chong Yidong
b3b6105f0d (x_delete_display): Move xim_close_dpy call to x_delete_terminal.
(x_delete_terminal): Call xim_close_dpy.
2008-12-13 22:09:09 +00:00
Chong Yidong
09fce22308 (struct xim_inst_t): Definition moved to xterm.h.
(xim_initialize): Save pointer to callback function data.
(xim_close_dpy): Free callback function data.  Call XCloseIM,
reverting 2008-11-04 change by David Smith.
(x_term_init): Don't initialize the image cache here; it will be
done in init_frame_faces.  Remove ancient "null_pixel" cruft.
(x_delete_display): Free x_dnd_atoms member.
2008-12-13 05:44:38 +00:00
Chong Yidong
88baab62c5 (x_draw_glyph_string): Fall back on underline_minimum_offset for
undlerline position.
2008-12-03 04:10:37 +00:00
Chong Yidong
85bdc6d29e (x_draw_glyph_string): For stretch glyphs, don't call
x_draw_glyph_string_background.
2008-11-15 05:33:17 +00:00
Chong Yidong
8afbb9372d (x_draw_glyph_string): Stop drawing the background of the next glyph
string once past the overhang width.
2008-11-15 05:21:20 +00:00
Chong Yidong
2f8e69ccca (x_set_frame_alpha): Do nothing if alpha is negative. 2008-11-12 15:51:11 +00:00
Glenn Morris
a1dd29361a (handle_one_xevent): Don't let popup menus cause
mouse-autoselect-window related window switching.  (Bug#1261)
2008-11-06 03:49:28 +00:00
Chong Yidong
15773d23ec (xim_close_dpy): Avoid double-free on X11R6 XIM. 2008-11-04 16:47:34 +00:00
Chong Yidong
d3424e67eb (x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw it
with the default glyph width.
2008-10-27 22:20:46 +00:00
Eli Zaretskii
3e7600a697 (x_wm_set_size_hint): Use x_display_pixel_width and x_display_pixel_height. 2008-09-19 10:05:13 +00:00
Chong Yidong
95958e6c80 (x_display_pixel_height, x_display_pixel_width): New functions.
(x_calc_absolute_position): Use them.
(x_term_init): Omit removed `height' and `width' members.
2008-09-18 18:11:05 +00:00
Andreas Schwab
afed25840b (x_delete_display): Fix merge error. 2008-09-02 11:45:08 +00:00
Miles Bader
9850eff524 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1398
2008-09-02 05:35:54 +00:00
Kenichi Handa
24553805cb (x_draw_composite_glyph_string_foreground): Adjusted for
the change of struct glyph_string.
(x_draw_glyph_string): Likewise.
2008-08-29 07:58:40 +00:00
Chong Yidong
f1a943aeba (x_term_init): Temporarily hide the partially initialized terminal
while calling vendor-specific-keysyms.
2008-08-27 00:08:06 +00:00
Chong Yidong
bd917d98ad (x_delete_display): Don't call XrmDestroyDatabase on GTK+. 2008-08-21 19:40:29 +00:00
Chong Yidong
8f59f2e77a (x_delete_display): Don't call XrmDestroyDatabase on GTK+. 2008-08-21 19:37:04 +00:00
Dan Nicolaescu
69ab3201ca * s/ms-w32.h (MULTI_KBOARD): Remove.
* xterm.c:
* xselect.c:
* xfns.c:
* window.c:
* w32term.c:
* w32fns.c:
* terminal.c:
* termhooks.h:
* term.c:
* sysdep.c:
* keyboard.h:
* keyboard.c:
* frame.h:
* frame.c:
* frame.c: Remove references to MULTI_KBOARD, it is now the
default.
* config.in: Regenerate.

* config.nt (MULTI_KBOARD): Remove.

* configure.in (MULTI_KBOARD): Remove.
2008-07-31 02:47:32 +00:00
Andreas Schwab
85cf899228 * fontset.h: Declare fontset_from_font. Don't declare
new_fontset_from_font and fontset_from_font_name.
* xterm.c: Include "fontset.h".
* Makefile.in (xterm.o): Update dependencies.
2008-07-08 11:54:10 +00:00
Stefan Monnier
d925a42659 (x_set_frame_alpha): Add x_catch_errors for bug#437. 2008-06-22 14:02:07 +00:00
Stefan Monnier
2a3bd2e193 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
x_underline_minimum_display_offset.
(syms_of_xdisp): Declare it here rather than in xterm.c.
* dispextern.h (underline_minimum_offset): Declare it.
* w32term.c (x_draw_glyph_string): Use it.
* xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
(syms_of_xterm): Don't declare it any more.
(x_draw_glyph_string): Adjust to the new name.

* cus-start.el (underline-minimum-offset) Rename from
x-underline-minimum-display-offset.
2008-06-10 20:22:10 +00:00
Stefan Monnier
d5dc61631e * xterm.c (x_underline_minimum_display_offset): New var.
(x_draw_glyph_string): Use it.
(syms_of_xterm): Declare it.
* cus-start.el (x-underline-minimum-display-offset): Give it a type.
2008-06-10 20:01:54 +00:00
Jim Meyering
70fdbb46cd Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
* src/alloc.c (xfree): Return right away for a NULL arg.
* src/lread.c (nosuffix): Remove now-useless if-before-xfree tests.
* src/gtkutil.c (xg_gtk_scroll_destroy): Likewise.
* src/mac.c (create_apple_event_from_event_ref): Likewise.
(create_apple_event_from_drag_ref, cfstring_create_normalized): Likewise.
* src/doprnt.c (doprnt1): Likewise.
* src/frame.c (frame): Likewise.
* src/keyboard.c (wipe_kboard): Likewise.
* src/macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap):
(init_font_name_table, mac_unload_font, x_delete_display): Likewise.
* src/term.c (tty_default_color_capabilities, maybe_fatal)
(delete_tty): Likewise.
* src/w16select.c (string): Likewise.
* src/w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
* src/w32bdf.c (w32_free_bdf_font): Likewise.
* src/w32fns.c (w32_unload_font): Likewise.
* src/w32font.c (w32font_close): Likewise.
* src/window.c (size_window): Likewise.
* src/xselect.c (receive_incremental_selection): Likewise.
* src/xterm.c (x_free_frame_resources, x_delete_display): Likewise.
* src/mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
* src/w32.c (stat): Likewise.
2008-06-02 06:09:17 +00:00
Chong Yidong
c1e4782a8a (x_draw_glyph_string): If a clipmask is specified, use it. 2008-05-27 21:10:55 +00:00
Andreas Schwab
f8eb1603d2 (x_set_frame_alpha): Fix type mismatch. 2008-05-26 11:37:42 +00:00
Kenichi Handa
505ecc4969 (x_draw_glyph_string): Fix calculation of underline
position.
2008-05-25 11:19:50 +00:00
Kenichi Handa
90dc78a36e (x_draw_glyph_string): Be sure to draw underline within the current
line area.
2008-05-23 05:33:24 +00:00
Kenichi Handa
71b7654711 (x_draw_glyph_string): Be sure to update
s->underline_thickness and s->underline_position.
2008-05-23 04:43:48 +00:00
Dan Nicolaescu
6aac1c03b8 (x_set_frame_alpha): Move declarations before
statements.
2008-05-21 06:32:45 +00:00
Glenn Morris
4a59a6c015 Seiji Zenitani <zenitani at mac.com>
Ryo Yoshitake <ryo at shiftmode.net>

(x_set_frame_alpha): Add function.
2008-05-21 03:59:44 +00:00
Glenn Morris
9ec0b715e2 Switch to recommended form of GPLv3 permissions notice. 2008-05-14 07:50:26 +00:00
Kenichi Handa
90546022d6 Throughout the file, delete all USE_FONT_BACKEND
conditionals.  Don't check enable_font_backend.  Delete all codes
used only when USE_FONT_BACKEND is not defined.  Don't include
ccl.h.
(x_per_char_metric, x_encode_char): Deleted.
(x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
(x_compute_glyph_string_overhangs): Adjusted for the change of
`struct face'
(x_draw_glyph_string_foreground)
(x_draw_composite_glyph_string_foreground): Likewise.
(x_draw_glyph_string): Likewise.  Use font->underline_position and
font->underline_thickness.
(x_new_font): Renamed from x_new_fontset2.
(x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
(x_check_font): Call `check' method of a font driver.
(x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
(x_query_font, x_get_font_repertory): Deleted.
(x_find_ccl_program): Renamed and moved to xfont.c.
(x_redisplay_interface): Adjusted for the change of `struct
redisplay_interface'.
2008-05-14 01:44:51 +00:00
Jan Djärv
bb16531656 (handle_one_xevent): Don't pass buttons higher than 3
to Gtk+ menus.
2008-05-13 08:13:24 +00:00
Jan Djärv
44f249c055 (handle_one_xevent): Don't pass buttons higher than 3
to Gtk+ menus.
2008-05-13 08:08:25 +00:00
Andreas Schwab
ec1bf773df (XTread_socket): Fix use of uninitialized variable. 2008-04-27 10:44:37 +00:00
Stefan Monnier
58555d8187 * keyboard.c (pending_funcalls): New var.
(timer_check): Run it.
(syms_of_keyboard): Initialize it.
* terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
(Vdelete_terminal_functions): New vars.
(syms_of_terminal): Initialize them.
(Fdelete_terminal): Run delete-terminal-functions.
* xdisp.c (safe_eval): Rewrite.
(safe_call2): New fun.
* frame.c (Qdelete_frame_functions): New var.
(syms_of_frame): Initialize it.
(Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
* lisp.h (safe_call2, pending_funcalls): Declare.
2008-03-29 01:46:10 +00:00
Jan Djärv
9a09351550 Fix previous change. 2008-03-11 15:54:05 +00:00
Jan Djärv
c523e161a2 (x_connection_closed): For GTK: If this is the last
terminal just exit without closing the display.
2008-03-11 07:35:20 +00:00
Dan Nicolaescu
73f838adaf * w32term.c: Remove unused include "gnu.h".
* makefile.w32-in (w32term.o): Don't depend on gnu.h

* gnu.h: Rename to ...
* emacs-icon.h: ... this.
* xterm.c: Use emacs-icon.h instead of gnu.h.
* Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
2008-03-03 06:32:13 +00:00
Jan Djärv
7ee480ce4f (handle_one_xevent): For Gtk+ and ConfigureNotify, call
xg_frame_resized when the event is for the edit widget.
2008-03-01 14:59:17 +00:00
Chong Yidong
f93a616bee (x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1. 2008-02-24 01:05:27 +00:00
Chong Yidong
57b8e96ad5 (x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1. 2008-02-24 01:04:51 +00:00
Stefan Monnier
354884c46e Consolidate the image_cache to the terminal struct.
* termhooks.h (P_): Remove redundant def.
(struct terminal): New field `image_cache'.
* frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
of FRAME_X_IMAGE_CACHE.
* xterm.h (struct x_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
* w32term.h (struct w32_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
* macterm.h (struct mac_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
* xterm.c (x_term_init):
* w32term.c (w32_term_init):
* macterm.c (mac_term_init): Set the image_cache in the terminal.
* dispextern.h (clear_image_cache, forall_images_in_image_cache):
Remove declarations.
(clear_image_caches, mark_image_cache): New declarations.
* xfaces.c (clear_face_cache):
* xdisp.c (redisplay_internal): Use clear_image_caches.
* image.c (clear_image_cache): Don't check that a frame is on
a window-system before checking if it shares the same cache.
(clear_image_caches): New function.
(Fclear_image_cache): Use it.
(mark_image): Move from allo.c.
(mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
* alloc.c (mark_image, mark_image_cache): Move to image.c.
(mark_object): Don't call mark_image_cache for frames.
(mark_terminals): Call mark_image_cache.
2008-02-22 17:42:09 +00:00
Stefan Monnier
6bd9264021 (x_connection_closed): Consolidate identical tests.
(x_delete_terminal): Don't crash if called via x_connection_closed.
2008-02-21 16:51:07 +00:00
Kenichi Handa
1c5c216ba9 (x_set_cursor_gc): Use display_info->font->fid for GCs.
(x_set_mouse_face_gc, x_new_font): Likewise.
(x_term_init): Setup display_info->font.
(x_delete_terminal): Free display_info->font.
2008-02-17 02:02:54 +00:00
Stefan Monnier
c53956fead * frame.c (Qnoelisp): New symbol.
(syms_of_frame): Initialize it.
(Fdelete_frame): Use it to distinguish a mere `force' passed from
someharmles Elisp code, from a strong `force' from x_connection_closed.
* frame.h (Qnoelisp): Declare.
* xterm.c (x_connection_closed): Pass `noelisp'.
2008-02-10 21:56:38 +00:00
Dan Nicolaescu
4624371d9a * configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove code
dealing with obsolete variables.

* fakemail.c (MAIL_PROGRAM_NAME): Remove unused conditional.
(main): Replace MAIL_PROGRAM_NAME with its value.

* src/Makefile.in:
* src/emacs.c:
* src/gmalloc.c:
* src/keyboard.c:
* src/lisp.h:
* src/m/ibm370aix.h:
* src/process.c:
* src/regex.c:
* src/s/hpux.h:
* src/sysdep.c:
* src/sysselect.h:
* src/systty.h:
* src/unexec.c:
* src/w32term.c:
* src/xsmfns.c:
* src/xterm.c: Remove code that deals with obsolete variables.

* s/msdos.h (DONT_NEED_ENVIRON): Don't define.

* ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
nothing else needs it anymore.
2008-02-09 18:03:10 +00:00
Jan Djärv
81c02ebe5c (x_detect_focus_change): Handle embed client message.
(handle_one_xevent): Ditto.
(handle_one_xevent): If embedded and we get a button press/release,
request focus.
(xembed_set_info, xembed_send_message): New functions.
(x_make_frame_visible): Call xembed_set_info if embedded.
(x_make_frame_invisible): Call xembed_set_info if embedded.
(x_term_init): Initialize Xatom_XEMBED.
(x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
(x_iconify_frame): Ditto.
2008-02-07 14:07:35 +00:00
Miles Bader
d235ca2ff8 Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
2008-01-30 07:57:28 +00:00