1. 19 May, 2006 1 commit
  2. 13 May, 2006 1 commit
  3. 23 Apr, 2006 1 commit
  4. 01 Apr, 2006 1 commit
    • Karoly Lorentey's avatar
      Fix previous commit. · 5bcee7ef
      Karoly Lorentey authored
      * src/frame.c (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
      * src/gtkutil.c (xg_create_frame_widgets): Ditto.
      * src/macfns.c (x_set_mouse_color): Ditto.
      * src/macfns.c (x_make_gc): Ditto.
      * src/msdos.c (ScreenVisualBell): Ditto.
      * src/msdos.c (internal_terminal_init): Ditto.
      * src/w32term.c (x_free_frame_resources): Ditto.
      * src/xfns.c (x_window): Ditto.
      * src/xterm.c (x_scroll_bar_create): Ditto.
      * src/xterm.c (x_scroll_bar_set_handle): Ditto.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-545
      5bcee7ef
  5. 26 Mar, 2006 1 commit
    • Karoly Lorentey's avatar
      Fix toolbars on X frames when Emacs is started on a tty. (Reported by Richard Lewis.) · 095fe281
      Karoly Lorentey authored
      * lisp/faces.el (x-create-frame-with-faces): Remove bogus check for first
        frame.  Call `tool-bar-setup'.
      
      * lisp/frame.el (window-system-default-frame-alist): Enhance doc string.
      
      * lisp/frame.el (frame-notice-user-settings): Don't put 'tool-bar-lines
        in `default-frame-alist' when initial frame is on a tty.
      
      * lisp/frame.el (modify-all-frames-parameters): Simplify using
        `assq-delete-all'.  Remove specified parameters from
        `window-system-default-frame-alist'.
      
      * lisp/fringe.el (set-fringe-mode): Simplify and fix using
        `modify-all-frames-parameters'.
      * lisp/menu-bar.el (menu-bar-mode): Ditto.
      * lisp/scroll-bar.el (set-scroll-bar-mode): Ditto.
      * lisp/tool-bar.el (tool-bar-mode): Ditto.  Remove 'tool-bar-map length
        check before calling `tool-bar-setup'.
      
      * lisp/tool-bar.el (tool-bar-setup): New variable.
      
      * lisp/tool-bar.el (tool-bar-setup): Use it to guard against multiple
        calls.  Add optional frame parameter, and select that frame before
        adding items.
      
      * src/frame.c (syms_of_frame): Enhance doc string of `default-frame-alist'.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-536
      095fe281
  6. 08 Mar, 2006 1 commit
  7. 25 Feb, 2006 1 commit
  8. 15 Feb, 2006 2 commits
  9. 06 Feb, 2006 1 commit
  10. 26 Jan, 2006 1 commit
  11. 18 Jan, 2006 1 commit
  12. 03 Jan, 2006 1 commit
    • Karoly Lorentey's avatar
      Overhaul and simplify single_kboard API. Allow calls to `recursive-edit' in... · b3e6f69c
      Karoly Lorentey authored
      Overhaul and simplify single_kboard API.  Allow calls to `recursive-edit' in process filters.  Small fixes.
      
      * lisp/server.el (server-process-filter): Protect `display-splash-screen'
        call in a condition-case.  Explain why.
      
      * src/callint.c (Fcall_interactively): Update call to
        `temporarily_switch_to_single_kboard'.
      
      * src/fns.c (Fy_or_n_p): Ditto.
      
      * src/frame.c (Fdelete_frame): Remove unused variable `count'.
      
      * src/keyboard.c (wrong_kboard_jmpbuf): Remove global variable.
      
      * src/keyboard.c (read_char): Add wrong_kboard_jmpbuf parameter to allow
        for recursive calls.  Update longjmp invocations.  Remember the
        original current_kboard, and longjmp to `wrong_kboard_jmpbuf' when a
        filter, timer or sentinel changes it.  Comment out unnecessary calls to
        `record_single_kboard_state' and `any_kboard_state'.  Update recursive
        calls.
      
      * src/keyboard.c (read_key_sequence): Add `wrong_kboard_jmpbuf' local
        variable.  Update setjmp and read_char calls.  Abort if
        interrupted_kboard died in read_char.
      
      * src/keyboard.c (any_kboard_state, single_kboard_state)
        (record_single_kboard_state): Comment out obsolete functions.
        (push_frame_kboard): Remove function.
        (pop_kboard): Switch out of single_kboard mode if the
        kboard has been deleted.
        (temporarily_switch_to_single_kboard): Change first
        parameter to a frame pointer.  Throw an error when caller wants to
        change kboards while in single_kboard mode.
        (restore_kboard_configuration): Abort if pop_kboard changed
        the kboard in single_kboard mode.
        (Frecursive_edit): Switch to single_kboard mode only in
        nested command loops.
        (cmd_error, command_loop, command_loop_1, timer_check):
        Comment out unnecessary call to `any_kboard_state' and
        `record_single_kboard_state'.
      
      * src/keyboard.c (delete_kboard): Exit single_kboard mode if we have just
        deleted that kboard.
      
      * src/keyboard.c (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
        `fatal_error_signal'.
      
      * src/keyboard.h (read_char, single_kboard_state)
        (record_single_kboard_state): Remove.
        (temporarily_switch_to_single_kboard): Update.
      
      * src/lread.c: Include setjmp.h.  Update declaration of `read_char'.
        (read_filtered_event): Call `read_char' with a local
        `wrong_kboard_jmpbuf'.
      
      * src/minibuf.c (read_minibuf): Update call to
        `temporarily_switch_to_single_kboard'.
      
      * src/termchar.h (tty_display_info): Rename `previous_terminal_frame'
        member to `previous_frame'.
      
      * src/xdisp.c (redisplay_internal): Update references to
        `previous_terminal_frame'.
        (display_mode_line, Fformat_mode_line): Replace calls to
        `push_frame_kboard' with `push_kboard'.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-489
      b3e6f69c
  13. 31 Dec, 2005 1 commit
  14. 30 Dec, 2005 1 commit
  15. 29 Dec, 2005 2 commits
    • 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'.
        (DEVICE_TERMINAL_CODING): Rename to `TERMINAL_TERMINAL_CODING'.
        (TERMINAL_KEYBOARD_CODING): Rename to `TERMINAL_KEYBOARD_CODING'.
        (DEVICE_ACTIVE_P): Rename to `TERMINAL_ACTIVE_P'.
        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)
        (Fterminal_coding_system4)
        (Fset_keyboard_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-save-buffers-kill-terminal'.
        (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)
        (turn-off-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
      6ed8eeff
    • Karoly Lorentey's avatar
      Store local environment in frame (not terminal) parameters. · da8e8fc1
      Karoly Lorentey authored
      * src/callproc.c (child_setup, getenv_internal, Fgetenv_internal):
        Store the local environment in a frame (not terminal) parameter.
        Update doc strings.
        (syms_of_callproc): Update doc strings.
        (Qenvironment): Moved to frame.c. 
      
      * lisp/env.el (read-envvar-name, setenv, getenv, environment): Use frame
        parameters to store the local environment, not terminal parameters.
      
      * server.el (server-process-filter): Store the local environment in a
        frame (not terminal) parameter.  Do not try to decode environment
        strings.
      
      * lisp/frame.el (make-frame): Set up the 'environment frame parameter,
        when needed.
      
      * src/frame.c (Qenvironment): Move here from callproc.c.
        (Fdelete_frame): Don't allow other frames to refer to a deleted frame
        in their 'environment parameter.
        (Fframe_with_environment): New function.
        (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
      
      * frame.h (Qenvironment): Declare.
      * lisp.h (Fframe_with_environment): EXFUN it.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-467
      da8e8fc1
  16. 25 Dec, 2005 1 commit
    • Karoly Lorentey's avatar
      Reimplement terminal parameters in C; clean up term.c, create terminal.c. · ed8dad6b
      Karoly Lorentey authored
      * lisp/termdev.el (terminal-parameter-alist, terminal-parameters, terminal-parameter-p)
        (terminal-parameter, set-terminal-parameter, terminal-handle-delete-frame): Remove.
      
      * src/term.c (Vring_bell_function, device_list, initial_device)
        (next_device_id, 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_device, Fdisplay_name, create_device, delete_device)
        (Fdelete_display, Fdisplay_live_p, Fdisplay_list)
        Move to terminal.c.
        (syms_of_term): Move their initialization to terminal.c.
      
      * src/terminal.c: New file.
        (device_list, next_device_id, initial_device, Vring_bell_function)
        (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_device, create_device, delete_device)
        (Fdelete_display, Fdisplay_live_p, Fdisplay_list, Fdisplay_name): Move here.
        (mark_devices, get_terminal_param, store_terminal_param)
        (Fterminal_parameters, Fterminal_parameter)
        (Fmodify_terminal_parameters, Fset_terminal_parameter)
        (init_initial_device, delete_initial_device)
        (syms_of_terminal): New functions.
      
      * lisp/simple.el (normal-erase-is-backspace-setup-frame)
        (normal-erase-is-backspace-mode): Rephrase things
        without terminal-parameter-p.
      
      * lisp/termdev.el (terminal-getenv, terminal-setenv)
        (with-terminal-environment): Ditto.
      
      * mac/makefile.MPW (EmacsObjects): Add terminal.c.x.
        ({Src}terminal.c.x): Add dependencies.
      
      * src/Makefile.in (obj): Add terminal.o.
        (terminal.o): Add dependencies.
        [HAVE_CARBON]: Make terminal.o depend on macgui.h.
      
      * src/alloc.c (mark_devices): Declare.
        (Fgarbage_collect): Call `mark_devices'.
      
      * src/dispextern.h  (set_scroll_region, turn_off_insert)
        (turn_off_highlight, background_highlight, clear_end_of_line_raw)
        (tty_clear_end_of_line, tty_setup_colors, delete_tty): Remove.
        (raw_cursor_to, clear_to_end, tty_turn_off_insert)
        (tty_turn_off_highlight): Add declaration.
      
      * src/emacs.c (main): Call `syms_of_terminal'.
      
      * src/frame.c (get_future_frame_param): New function.
        (Fmake_terminal_frame): Use it.
      
      * src/keyboard.c (pop_kboard): Remove unused variable.
        (Fset_output_flow_control): Return nil.
      
      * src/keymap.h (Fset_keymap_parent): Add EXFUN.
      
      * src/lisp.h (syms_of_terminal): Declare it.
      
      * src/sysdep.c (reset_sys_modes): Update for renames.
      
      * src/term.c (set_scroll_region): Rename to `tty_set_scroll_region'.
        (turn_on_insert): Rename to `tty_turn_on_insert'.
        (turn_off_insert): Rename to `tty_turn_off_insert'.
        (turn_off_highlight): Rename to `tty_turn_off_highlight'.
        (turn_on_highlight): Rename to `tty_turn_on_highlight'.
        (toggle_highligh): Rename to `tty_toggle_highlight'.
        (background_highlight): Rename to `tty_background_highlight'.
        (highlight_if_desired): Rename to `tty_highlight_if_desired'.
      
        (tty_ring_bell, tty_update_end, tty_set_terminal_window)
        (tty_set_scroll_region, tty_background_highlight)
        (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
        (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
        (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
        (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty)
        (delete_tty): Add static modifier.
      
        (tty_reset_terminal_modes, tty_set_terminal_window)
        (tty_set_scroll_region, tty_background_highlight)
        (tty_highlight_if_desired, tty_cursor_to)
        (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
        (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
        (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): 
        Update for renames.
      
      * src/termhooks.h (param_alist): New member to struct device.
      
      * src/xterm.h (x_delete_device): Declare.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-460
      ed8dad6b
  17. 20 Dec, 2005 1 commit
    • Karoly Lorentey's avatar
      Implement full support for frame-local `next-buffer' and `previous-buffer'. · a18b8cb5
      Karoly Lorentey authored
      * frame.h (frame): New field `buried_buffer_list'.
      * alloc.c (mark_object): Mark it.
      * frame.c (make_frame): Initialize it.
      
      * frame.h (Qburied_buffer_list): New symbol declaration.
      
      * buffer.c (Fbuffer_list): Handle the buried-buffer-list frame parameter.
      
      * buffer.c (record_buffer): Delete the buffer from the buried_buffer_list.
      
      * buffer.c (Fbury_buffer): Add buffer to buried_buffer_list.
      
      * frame.c (Qburied_buffer_list): New symbol.
        (syms_of_frame): Initialize and staticpro it.
        (frames_discard_buffer): Also remove buffer from buried-buffer-list.
        (store_frame_param): Handle `buried-buffer-list' specially.
        (Fframe_parameters): Handle `buried-buffer-list' specially.
      
      * simple.el (last-buffer): Don't look at buried-buffer-list, rely on
        `buffer-list' doing that for us.
        (next-buffer): Simplify.
        (previous-buffer): Simplify.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-455
      a18b8cb5
  18. 10 Oct, 2005 1 commit
  19. 07 Sep, 2005 1 commit
    • Karoly Lorentey's avatar
      Enforce the presence of `window-system' and `tty-type' frame parameters in all frames. · 5b65d888
      Karoly Lorentey authored
      * src/dispnew.c (init_display): Set up `window-system' and `tty-type'
        frame parameters in the initial tty frame.
      
      * src/frame.c (Fmake_terminal_frame): Look up the `tty-type' frame
        parameter, not `tty' when discovering the tty type of the new frame.
        Initialize `tty' and `tty-type' frame parameters in the new frame.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-402
      5b65d888
  20. 07 Aug, 2005 1 commit
  21. 02 Aug, 2005 1 commit
  22. 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.
        (DISPLAY_ACTIVE_P): Rename to DEVICE_ACTIVE_P.
        (DISPLAY_TERMINAL_CODING): Rename to DEVICE_TERMINAL_CODING.
        (DISPLAY_KEYBOARD_CODING): Rename to DEVICE_KEYBOARD_CODING.
      
      * 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
      7e59217d
  23. 10 Jul, 2005 1 commit
    • Karoly Lorentey's avatar
      Rename term_init to init_tty. · a4c6993d
      Karoly Lorentey authored
      * src/term.c (term_init): Rename to init_tty.
      
      * src/dispextern.h (term_init): Rename to init_tty.
      
      * src/dispnew.c (init_display): Update.
      * src/frame.c (Fmake_terminal_frame): Update.
      * src/term.c (tty_setup_colors): Update comment.
      
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-381
      a4c6993d
  24. 06 Jul, 2005 1 commit
  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
      bedb9c0e
  27. 23 Jun, 2005 1 commit
  28. 21 Jun, 2005 1 commit
  29. 10 Jun, 2005 1 commit
  30. 03 May, 2005 1 commit
    • Karoly Lorentey's avatar
      Fix UTF-8 tty input when first frame is an X frame. Steps towards multiple tty locale support. · 68bba4e4
      Karoly Lorentey authored
      * lisp/international/mule-cmds.el (set-locale-environment): Ignore
        window-system; always set the keyboard coding system.
      
      
      * src/termhooks.h (DISPLAY_TERMINAL_CODING, DISPLAY_KEYBOARD_CODING): New macros.
      
      * src/coding.c (Fset_terminal_coding_system_internal, Fterminal_coding_system)
        (Fset_keyboard_coding_system_internal, Fkeyboard_coding_system): Add DISPLAY
        parameter.
      
      * src/term.c (get_display): Add THROW parameter.
        (get_tty_display, Fdisplay_name, Fdisplay_tty_type, Fdisplay_controlling_tty_p)
        (Fdelete_display, Fdisplay_live_p): Update callers.
      * src/xfns.c (check_x_display_info): Ditto.
      * src/frame.c (Fmake_terminal_frame, Fframe_display): Ditto.
      
      * src/dispextern.h (get_display): Update prototype.
      
      * lisp/international/mule.el (set-terminal-coding-system)
        (set-keyboard-coding-system): Add DISPLAY parameter.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-338
      68bba4e4
  31. 24 Apr, 2005 1 commit
  32. 19 Mar, 2005 1 commit
  33. 17 Mar, 2005 1 commit
  34. 08 Mar, 2005 1 commit
  35. 27 Dec, 2004 1 commit
    • Steven Tamm's avatar
      * dispextern.h: Change HAVE_CARBON to MAC_OS. · b15325b2
      Steven Tamm authored
      	(struct glyph_string): Likewise.
      * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
      	mac_initialize.
      * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
      	Change TARGET_API_MAC_CARBON to HAVE_CARBON.
      * fns.c (vector): Change MAC_OSX to MAC_OS.
      * frame.c (x_set_frame_parameters, x_report_frame_params)
      	(x_set_fullscreen): Remove #ifndef HAVE_CARBON.
      	(x_set_border_width, Vdefault_frame_scroll_bars): Change
      	HAVE_CARBON to MAC_OS.
      * image.c [MAC_OS]: Include sys/stat.h.
      	[MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
      	QuickTimeComponents.h.
      * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
      	[!MAC_OSX] (select): Use mac_wait_next_event.
      	[!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to
      	Vexec_suffixes.
      	[!MAC_OSX] (select, run_mac_command): Change `#ifdef
      	TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
      	(mac_clear_font_name_table): Add extern.
      	(Fmac_clear_font_name_table): New defun.
      	(syms_of_mac): Defsubr it.
      	[MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
      	[MAC_OSX] (select_and_poll_event): New function.
      	[MAC_OSX] (sys_select): Use it.
      	[MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
      	[MAC_OSX && SELECT_USE_CFSOCKET]
      	(SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
      	[MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
      	RunLoop for simultaneously monitoring two kinds of inputs, window
      	events and process outputs, without periodically polling.
      * macfns.c (mac_initialized): Remove extern.
      	(stricmp): Put in #if 0.  All callers changed to use xstricmp in
      	xfaces.c.
      	(strnicmp): Decrement `n' at the end of each loop, not the
      	beginning.
      	(check_mac): Use the term "Mac native windows" instead of "Mac
      	OS".
      	(check_x_display_info, x_display_info_for_name): Sync with xfns.c.
      	(mac_get_rdb_resource): New function (from w32reg.c).
      	(x_get_string_resource): Use it.
      	(install_window_handler): Add extern.
      	(mac_window): New function.
      	(Fx_create_frame): Use it instead of make_mac_frame.  Set
      	parameter for Qfullscreen.  Call x_wm_set_size_hint.
      	(Fx_open_connection, Fx_close_connection): New defuns.
      	(syms_of_macfns): Defsubr them.
      	(x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add
      	kWindowNoUpdatesAttribute to the window attribute.
      	(x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
      	(x_create_tip_frame): Don't call ShowWindow.
      	(Fx_show_tip): Call ShowWindow.
      	(Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
      	TARGET_API_MAC_CARBON'.
      	(mac_frame_parm_handlers): Set handlers for Qfullscreen.
      	(syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
      * macgui.h [!MAC_OSX]: Don't include Controls.h.  Include
      	Windows.h.
      	(Window): Typedef to WindowPtr and move outside `#if
      	TARGET_API_MAC_CARBON'.
      	(XSizeHints): New struct.
      * macterm.c (x_update_begin, x_update_end)
      	[TARGET_API_MAC_CARBON]: Disable screen updates during update of a
      	frame.
      	(x_draw_glyph_string_background, x_draw_glyph_string_foreground)
      	[MAC_OS8]: Use XDrawImageString/XDrawImageString16.
      	(construct_mouse_click): Put in #if 0.
      	(x_check_fullscreen, x_check_fullscreen_move): Remove decls.
      	(x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
      	TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
      	(activate_scroll_bars, deactivate_scroll_bars)
      	[!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
      	(x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
      	if the position is neither user-specified nor program-specified.
      	(x_free_frame_resources): Free size_hints.
      	(x_wm_set_size_hint): Allocate size_hints if needed.  Set
      	size_hints.
      	(mac_clear_font_name_table): New function.
      	(mac_do_list_fonts): Initialize font_name_table if needed.
      	(x_list_fonts): Don't initialize font_name_table.  Add BLOCK_INPUT
      	around mac_do_list_fonts.
      	(mac_unload_font): New function.
      	(x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
      	(init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
      	and definitions with #if TARGET_API_MAC_CARBON.
      	[USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
      	(install_window_handler): Add decl.
      	(do_window_update): Add BeginUpdate/EndUpdate for the tooltip
      	window.  Use UpdateControls.  Get the rectangle that should be
      	updated and restrict the target of expose_frame to it.
      	(do_grow_window): Set minimum height/width according to
      	size_hints.
      	(do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
      	(do_zoom_window): Don't use x_set_window_size.
      	[USE_CARBON_EVENTS] (mac_handle_window_event): New function.
      	(install_window_handler): New function.
      	[!USE_CARBON_EVENTS] (mouse_region): New variable.
      	[!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
      	(XTread_socket) [USE_CARBON_EVENTS]: Move call to
      	GetEventDispatcherTarget inside BLOCK_INPUT.
      	(XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
      	Update mouse_region when mouse is moved.
      	(make_mac_frame): Remove.
      	(make_mac_terminal_frame): Put in #ifdef MAC_OS8.  Initialize
      	mouse pointer shapes.  Change values of f->left_pos and
      	f->top_pos.  Don't use make_mac_frame.  Use NewCWindow.  Don't
      	call ShowWindow.
      	(mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
      	Vinvocation_name and Vsystem_name.
      	(mac_make_rdb): New function (from w32term.c).
      	(mac_term_init): Use it.  Add BLOCK_INPUT.  Error if display has
      	already been opened.  Don't pass argument to
      	mac_initialize_display_info.  Don't set dpyinfo->height/width.
      	Add entries to x_display_list and x_display_name_list.
      	(x_delete_display): New function.
      	(mac_initialize): Don't call mac_initialize_display_info.
      	(syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
      * macterm.h (check_mac): Add extern.
      	(struct mac_output): New member size_hints.
      	(FRAME_SIZE_HINTS): New macro.
      	(mac_unload_font): Add extern.
      * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
      * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
      b15325b2
  36. 16 Nov, 2004 1 commit
  37. 06 Nov, 2004 1 commit
  38. 24 Jul, 2004 1 commit