1. 22 Jun, 2008 1 commit
  2. 10 Jun, 2008 2 commits
    • Stefan Monnier's avatar
      * xdisp.c (underline_minimum_offset): Rename from xterm.c's · 2a3bd2e1
      Stefan Monnier authored
      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.
      2a3bd2e1
    • Stefan Monnier's avatar
      * xterm.c (x_underline_minimum_display_offset): New var. · d5dc6163
      Stefan Monnier authored
      (x_draw_glyph_string): Use it.
      (syms_of_xterm): Declare it.
      * cus-start.el (x-underline-minimum-display-offset): Give it a type.
      d5dc6163
  3. 02 Jun, 2008 1 commit
    • Jim Meyering's avatar
      Make "xfree (NULL)" a no-op; remove useless if-before-xfree. · 70fdbb46
      Jim Meyering authored
      * 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.
      70fdbb46
  4. 27 May, 2008 1 commit
  5. 26 May, 2008 1 commit
  6. 25 May, 2008 1 commit
  7. 23 May, 2008 2 commits
  8. 21 May, 2008 2 commits
  9. 14 May, 2008 2 commits
    • Glenn Morris's avatar
      9ec0b715
    • Kenichi Handa's avatar
      Throughout the file, delete all USE_FONT_BACKEND · 90546022
      Kenichi Handa authored
      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'.
      90546022
  10. 13 May, 2008 2 commits
  11. 27 Apr, 2008 1 commit
  12. 29 Mar, 2008 1 commit
    • Stefan Monnier's avatar
      * keyboard.c (pending_funcalls): New var. · 58555d81
      Stefan Monnier authored
      (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.
      58555d81
  13. 11 Mar, 2008 2 commits
  14. 03 Mar, 2008 1 commit
    • Dan Nicolaescu's avatar
      * w32term.c: Remove unused include "gnu.h". · 73f838ad
      Dan Nicolaescu authored
      * 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.
      73f838ad
  15. 01 Mar, 2008 1 commit
  16. 24 Feb, 2008 2 commits
  17. 22 Feb, 2008 1 commit
    • Stefan Monnier's avatar
      Consolidate the image_cache to the terminal struct. · 354884c4
      Stefan Monnier authored
      * 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.
      354884c4
  18. 21 Feb, 2008 1 commit
  19. 17 Feb, 2008 1 commit
  20. 10 Feb, 2008 1 commit
    • Stefan Monnier's avatar
      * frame.c (Qnoelisp): New symbol. · c53956fe
      Stefan Monnier authored
      (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'.
      c53956fe
  21. 09 Feb, 2008 1 commit
    • Dan Nicolaescu's avatar
      * configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove code · 4624371d
      Dan Nicolaescu authored
      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.
      4624371d
  22. 07 Feb, 2008 1 commit
    • Jan Djärv's avatar
      (x_detect_focus_change): Handle embed client message. · 81c02ebe
      Jan Djärv authored
      (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.
      81c02ebe
  23. 17 Jan, 2008 1 commit
  24. 08 Jan, 2008 1 commit
  25. 14 Dec, 2007 1 commit
  26. 03 Dec, 2007 1 commit
  27. 01 Dec, 2007 1 commit
  28. 18 Nov, 2007 1 commit
  29. 16 Nov, 2007 1 commit
    • Stefan Monnier's avatar
      * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data. · 056ce195
      Stefan Monnier authored
      Turn integer fields into `int'.  Merge x_window_low and x_window_high.
      (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
      (SET_SCROLL_BAR_X_WINDOW): Remove.
      (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
      Access the new x_window field directly.
      * xterm.c (x_scroll_bar_create): Use a pseudovector.
      Don't wrap/unwrap integers into Lisp_Objects.
      (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
      (x_scroll_bar_report_motion):
      Don't wrap/unwrap integers into Lisp_Objects.
      (x_term_init): Use SDATA.
      (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
      (x_scroll_bar_set_handle, x_scroll_bar_remove)
      (XTset_vertical_scroll_bar, x_scroll_bar_expose)
      (x_scroll_bar_report_motion, x_scroll_bar_clear):
      * xfns.c (x_set_background_color):
      * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
      Access the new x_window field directly.
      056ce195
  30. 01 Nov, 2007 3 commits
  31. 25 Oct, 2007 1 commit
    • Stefan Monnier's avatar
      Make `window-system' into a keyboard-local variable (rather than · 70b8d0a4
      Stefan Monnier authored
      frame-local as done originally by multi-tty).
      
      * startup.el (window-system): Remove.  Don't make it frame-local.
      
      * keyboard.h (struct kboard): Add Vwindow_system.
      * keyboard.c (init_kboard): Set a default for Vwindow_system.
      (mark_kboards): Mark Vwindow_system.
      
      * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
      (init_display): Don't set the obsolete `window-system' frame-param.
      
      * xterm.c (x_term_init):
      * w32term.c (w32_create_terminal):
      * term.c (init_tty): Set Vwindow_system.
      * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
      multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
      
      * xfns.c (Fx_create_frame, x_create_tip_frame):
      * w32fns.c (Fx_create_frame, x_create_tip_frame):
      * macfns.c (Fx_create_frame):
      Don't set the obsolete `window-system' frame-param.
      
      * frame.h (Qwindow_system): Remove.
      * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
      (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
      70b8d0a4