1. 17 Oct, 2007 1 commit
    • Stefan Monnier's avatar
      * xselect.c (x_own_selection, x_handle_selection_clear) · 99784d63
      Stefan Monnier authored
      * w32menu.c (list_of_panes, list_of_items):
      * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
      * textprop.c (validate_plist, interval_has_all_properties)
      (interval_has_some_properties, interval_has_some_properties_list)
      (add_properties, text_property_list):
      * process.c (Fget_buffer_process, list_processes_1, status_notify):
      * minibuf.c (Fassoc_string):
      * macselect.c (x_own_selection, x_clear_frame_selections)
      * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
      Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
  2. 12 Sep, 2007 2 commits
  3. 06 Sep, 2007 2 commits
  4. 03 Aug, 2007 1 commit
  5. 25 Jul, 2007 1 commit
  6. 08 Jun, 2007 1 commit
  7. 04 Jun, 2007 1 commit
  8. 06 Mar, 2007 1 commit
  9. 21 Jan, 2007 1 commit
  10. 24 Nov, 2006 1 commit
  11. 12 Nov, 2006 1 commit
  12. 19 Oct, 2006 1 commit
  13. 11 Aug, 2006 1 commit
  14. 18 Jul, 2006 1 commit
  15. 05 Mar, 2006 1 commit
  16. 28 Feb, 2006 1 commit
    • Chong Yidong's avatar
      * xselect.c (x_catch_errors_unwind): New function. · c525d842
      Chong Yidong authored
      	(x_reply_selection_request): Put x_uncatch_errors in an unwind.
      	(Fx_get_atom_name): Call x_uncatch_errors earlier.
      	* window.c (Qscroll_up, Qscroll_down): New syms.
      	(window_scroll_pixel_based): Make preserve_y static to avoid
      	getting point stuck when scrolling 1 line.
  17. 27 Feb, 2006 1 commit
    • Chong Yidong's avatar
      * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary · 4545fa20
      Chong Yidong authored
      	* xterm.c: (x_load_font, x_term_init, XTmouse_position)
      	(handle_one_xevent, x_connection_closed, x_list_fonts): No arg for
      	* xselect.c (x_own_selection, x_decline_selection_request)
      	(x_reply_selection_request, x_get_foreign_selection)
      	(Fx_get_atom_name, Fx_send_client_event): Likewise.
      	* xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
  18. 25 Feb, 2006 1 commit
    • Chong Yidong's avatar
      * xterm.h (x_catch_errors) Return value changed to void. · 9ba8e10d
      Chong Yidong authored
      	(x_uncatch_errors): Unused count argument deleted.
      	* xterm.c (x_catch_errors): Don't use record_unwind_protect, since
      	it can be called in a signal handler.
      	(x_catch_errors_unwind): Function deleted.
      	(x_uncatch_errors): Deallocate last x_error_message_stack struct.
      	(x_check_errors): Call x_uncatch_errors before signalling error.
      	(x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
      	(x_connection_closed, x_list_fonts): Use new versions of
      	x_catch_errors and x_uncatch_errors.
      	* xselect.c (x_own_selection, x_decline_selection_request)
      	(x_reply_selection_request, x_get_foreign_selection)
      	(Fx_get_atom_name, Fx_send_client_event): Likewise.
      	* xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
      	* eval.c (record_unwind_protect): Add an assertion.
  19. 06 Feb, 2006 1 commit
  20. 29 Dec, 2005 1 commit
    • Karoly Lorentey's avatar
      Rename `struct device' to `struct terminal'. Rename some terminal-related functions similarly. · 6ed8eeff
      Karoly Lorentey authored
      * src/termhooks.h (struct device): Rename to `terminal'.  Rename member
        `next_device' to `next_terminal'.
        (device_list): Rename to `terminal_list'.
        (FRAME_DEVICE): Rename to `FRAME_TERMINAL'.
        Update declarations and macro definitions.
      * src/termchar.h (tty_display_info): Rename member `device' to `terminal'.
        (FRAME_TTY): Update for renames.
      * src/xterm.h (x_display_info): Rename member `device' to `terminal'.
      * src/frame.h (frame): Rename `device' member to `terminal'.
        (FRAME_KBOARD, FRAME_LIVE_P, Qdevice, Qdisplay_live_p):
        Update for renames.
      * src/lisp.h (set_process_environment): Rename to `set_global_environment'.
        (device): Rename to `terminal'.
      * src/dispextern.h: Update declarations and macro definitions.
      * src/terminal.c (device_list): Rename to `terminal_list'.
        (next_device_id): Rename to `next_terminal_id'.
        (initial_device): Rename to `initial_terminal'.
        (get_device): Rename to `get_terminal'.
        (create_device): Rename to `create_terminal'.
        (mark_devices): Rename to `mark_terminals'.
        (delete_device): Rename to `delete_terminal'.
        (Fdelete_display): Rename to `Fdelete_terminal'.
        (Fframe_terminal): Move here from frame.c.
        (Fdisplay_live_p): Rename to `Fterminal_live_p'.
        (Fdisplay_list): Rename to `Fterminal_list'.
        (Fdisplay_name): Rename to `Fterminal_name'.
        (init_initial_device): Rename to `init_initial_terminal'.
        (delete_initial_device): Rename to `delete_initial_terminal'.
        (ring_bell, update_begin, update_end, set_terminal_window)
        (cursor_to, raw_cursor_to, clear_to_end, clear_frame)
        (clear_end_of_line, write_glyphs, insert_glyphs, delete_glyphs)
        (ins_del_lines, get_terminal_param, store_terminal_param)
        (Fterminal_parameters, Fterminal_parameter)
        (Fmodify_terminal_parameters, Fset_terminal_parameter)
        (syms_of_terminal): Update for renames.
      * src/term.c (get_tty_device): Rename to `get_tty_terminal'.  Update.
        (Fdisplay_tty_type): Rename to `Ftty_type'.
        (Fdisplay_controlling_tty_p): Rename to `Fcontrolling_tty_p'.
        (delete_tty, tty_set_terminal_modes, tty_reset_terminal_modes)
        (Ftty_display_color_p, Ftty_display_color_cells, get_named_tty)
        (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
        (init_tty, maybe_fatal, delete_tty, syms_of_term): Update for rename.
      * src/frame.c (Qdevice): Rename to `Qterminal'.
        (Qdisplay_live_p): Rename to `Qterminal_live_p'.
        (terminal_frame_count): Rename to `tty_frame_count'.
        (Fframe_display): Move to terminal.c, rename to `Fframe_terminal'.
        (make_frame_without_minibuffer, make_initial_frame)
        (make_terminal_frame, Fmodify_frame_parameters)
        (do_switch_frame, Fdelete_frame, Fmouse_position)
        (Fmouse_pixel_position, Fraise_frame, Flower_frame)
        (Fredirect_frame_focus, set_term_frame_name, syms_of_frame):
        Update for renames.
      * src/xdisp.c (message2_nolog, message3_nolog, redisplay_internal)
        (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
        (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
        (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
        (Fx_display_pixel_width, Fx_display_pixel_height)
        (Fx_display_planes, Fx_display_color_cells)
        (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
        (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
        (Fx_display_backing_store, Fx_display_visual_class)
        (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
        Update for renames.
      * xterm.c (handle_one_xevent): Initialize `f' to NULL.
        (x_delete_device): Rename to `x_delete_terminal'.
        (x_create_device): Rename to `x_create_terminal'.
        (XTset_terminal_modes, XTreset_terminal_modes)
        (XTread_socket, x_connection_closed, x_term_init)
        (x_term_init, x_delete_display): Update for renames.
      * src/dispnew.c (Fredraw_frame, Fsend_string_to_terminal)
        (Fsend_string_to_terminal, init_display): Update for renames.
      * src/keyboard.c (push_frame_kboard, pop_kboard, pop_kboard)
        (kbd_buffer_get_event, read_avail_input, tty_read_avail_input)
        (interrupt_signal, Fset_output_flow_control)
        (Fset_input_meta_mode, Fset_quit_char, delete_kboard)
        (syms_of_keyboard): Update for renames.
      * src/alloc.c (mark_devices): Update declaration.
        (Fgarbage_collect): Update for renames.
      * src/coding.c (Fset_terminal_coding_system_internal)
        (Fkeyboard_coding_system): Update for renames.
      * src/data.c (Fterminal_local_value, Fset_terminal_local_value):
        Update for renames.
      * src/minibuf.c (read_minibuf): Update for renames.
      * src/sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
      * xselect.c (x_handle_selection_clear): Update for renames.
      * lisp/files.el (save-buffers-kill-display): Rename to `save-buffers-kill-terminal'.
        (save-buffers-kill-terminal, ctl-x-map): Update for renames.
      * frame.el (make-frame): Rename 'device frame parameter to 'terminal.  Update.
        (frames-on-display-list, framep-on-display, suspend-frame): Update for renames.
        (selected-display): Rename to `selected-terminal'.
      * server.el (server-save-buffers-kill-display): Rename to
        (server-delete-client, server-handle-delete-frame)
        (server-handle-suspend-tty, server-process-filter)
        (server-switch-buffer): Update for renames.
      * startup.el (normal-splash-screen, normal-splash-screen): Update for renames.
      * talk.el (talk): Update for renames.
      * termdev.el (terminal-id): Update for renames.
      * xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal)
        (xterm-mouse-handle-delete-frame): Update for renames.
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-471
  21. 19 Dec, 2005 1 commit
  22. 07 Aug, 2005 1 commit
  23. 12 Jul, 2005 1 commit
  24. 11 Jul, 2005 1 commit
    • Karoly Lorentey's avatar
      Rename `struct display' to `struct device'. Update function, parameter and... · 7e59217d
      Karoly Lorentey authored
      Rename `struct display' to `struct device'.  Update function, parameter and variable names accordingly.
      * src/termhooks.h (struct device): Rename to `struct device'.
        Rename member `next_display' to `next_device'.
        Rename member `delete_display_hook' to `delete_device_hook'.
        (FRAME_DISPLAY): Rename to FRAME_DEVICE.
      * src/frame.h (stuct frame): Rename `display' member to `device'.
      * src/xterm.h (x_display_info): Rename member `frame_display' to `device'.
      * src/termchar.h (struct tty_display_info): Rename `display' member to `device'.
      * src/keyboard.c (push_display_kboard): Rename to push_device_kboard.
      * lisp/frame.el (make-frame): Rename frame parameter `display-id' to `device'.
      * src/frame.c (Fmake_terminal_frame): Ditto.
      * src/xfns.c (Fx_create_frame): Ditto.
      * src/term.c (display_list): Rename to device_list.
      * src/term.c (initial_display): Rename to initial_device.
      * src/term.c (next_display_id): Rename to next_device_id.
      * src/term.c (get_display): Rename to get_device.
      * src/term.c (get_tty_display): Rename to get_tty_device.
      * src/term.c (get_named_tty_display): Rename to get_named_tty.
      * src/term.c (init_initial_display): Rename to init_initial_device.
      * src/term.c (delete_initial_display): Rename to delete_initial_device.
      * src/term.c (create_display): Rename to create_device.
      * src/term.c (delete_display): Rename to delete_device.
      * src/xfns.c (check_x_display_info): Document that the function allows
        display ids as well.
      * src/xterm.c (x_delete_frame_display): Rename to x_delete_device.
      * src/xterm.c (x_create_frame_display): Rename to x_create_device.
      * src/coding.c: Update.
      * src/dispextern.h: Update.
      * src/data.c: Update.
      * src/dispnew.c: Update.
      * src/frame.c: Update.
      * src/frame.h: Update.
      * src/keyboard.c: Update.
      * src/keyboard.h: Update.
      * src/lisp.h: Update.
      * src/sysdep.c: Update.
      * src/term.c: Update.
      * src/xdisp.c: Update.
      * src/xselect.c: Update.
      * src/xterm.c: Update.
      * src/prefix-args.c: Include stdlib.h for exit.
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-382
  25. 04 Jul, 2005 1 commit
  26. 27 Jun, 2005 1 commit
    • Karoly Lorentey's avatar
      Cleanup: Move kboard fields from struct frame and device-specific descriptors to struct display. · bedb9c0e
      Karoly Lorentey authored
      * src/termhooks.h (display): New field: kboard.
      * src/xterm.h (x_display_info): Remove kboard field.
      * src/termchar.h (tty_display_info): Ditto.
      * src/frame.h (frame): Ditto.
        (FRAME_KBOARD): Update.
      * src/dispnew.c (init_display): Don't initialize kboard.
      * src/frame.c (make_frame, make_initial_frame, make_terminal_frame): Ditto.
      * src/frame.c (make_frame_without_minibuffer, Fdelete_frame): Update kboard access.
      * src/keyboard.c (delete_kboard): Ditto.
      * src/term.c (term_init): Ditto.
      * src/xfns.c (Fx_create_frame, x_create_tip_frame): Ditto.
      * src/xselect.c (x_handle_selection_clear): Ditto.
      * src/xterm.c (x_term_init): Ditto.
      * src/term.c (init_initial_display): Initialize kboard.
      * src/xterm.c (x_term_init): Ditto.
      * src/term.c (delete_tty): Remove kboard deletion.
        (delete_display): Delete kboard as well.
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-363
  27. 23 Jun, 2005 1 commit
  28. 17 Jun, 2005 1 commit
  29. 17 Feb, 2005 1 commit
  30. 14 Feb, 2005 1 commit
  31. 08 Feb, 2005 1 commit
  32. 07 Feb, 2005 1 commit
    • Jan Djärv's avatar
      * xselect.c (x_reply_selection_request): Pass long array to · e22cf39c
      Jan Djärv authored
      XChangeProperty so that 64 bit longs are handeled correctly.
      (x_get_window_property): If format is 32 and long is bigger than 32
      bits convert data from XGetWindowProperty from long array to int array.
      (lisp_data_to_selection_data): When the input is a vector and the
      format is 32, allocate a long array even if long is bigger than 32 bits.
      (x_fill_property_data): Use char, short and long as the man page
      for XChangeProperty specifies.  This way the data returned is OK for
      both 32 and 64 bit machines.
      (x_handle_dnd_message): Calculate size correctly even for 64 bit
      (Fx_send_client_event): Undo change from 2005-02-05,
      x_fill_property_data now handles that case.
  33. 05 Feb, 2005 1 commit
  34. 07 Jan, 2005 1 commit
    • Jan Djärv's avatar
      * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar) · ff59904a
      Jan Djärv authored
      (xg_tool_bar_callback, xg_tool_bar_help_callback)
      (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler
      * xselect.c (x_get_foreign_selection, x_fill_property_data)
      (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
      XFLOAT_DATA to get extract number from Lisp object.
  35. 22 Dec, 2004 1 commit
  36. 09 Nov, 2004 1 commit
  37. 05 Nov, 2004 2 commits
    • Kim F. Storm's avatar
      * xselect.c (struct selection_event_queue, selection_queue) · dd0fe424
      Kim F. Storm authored
      (x_queue_selection_requests, x_queue_event)
      (x_stop_queuing_selection_requests): Add new queue for selection
      input events to replace previous XEvent queue in xterm.c.
      (queue_selection_requests_unwind): Adapt to new queue.
      (x_reply_selection_request): Adapt to new queue.  Unexpect
      wait_object in case of x errors (memory leak).
      (x_handle_selection_request, x_handle_selection_clear): Make static.
      (x_handle_selection_event): New function.  May queue selection events.
      (wait_for_property_change_unwind): Use save_value instead of cons.
      Clear property_change_reply_object.
      (wait_for_property_change): Abort if already waiting.
      Use save_value instead of cons for unwind data.
      (x_handle_property_notify): Skip events already arrived, but don't
      free them, as "arrived" field is checked by wait_for_property_change,
      and it will be freed by unwind or explicit unexpect_property_change.
      (x_get_foreign_selection): Add to new queue.
      (receive_incremental_selection): Don't unexpect wait_object when done
      as it has already been freed by previous wait_for_property_change.
    • Jan Djärv's avatar
      * xselect.c (TRACE3): New debug macro. · 9c3ad9e1
      Jan Djärv authored
      (x_reply_selection_request): Use it.
      (receive_incremental_selection): In call to TRACE0, the name of
      a symbol is in xname.