1. 29 Dec, 2005 3 commits
    • Karoly Lorentey's avatar
      Show the splash screen on Emacsclient frames. Show *scratch* by default. · c2844302
      Karoly Lorentey authored
      * lisp/server.el (server-process-filter): Show the Emacs splash screen
        and startup echo area message.  Display the *scratch* buffer by
        default.
      
      * lisp/startup.el (fancy-splash-screens): Restore previous buffer, even
        if it's *scratch*.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-473
      c2844302
    • 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
  2. 26 Dec, 2005 1 commit
    • Karoly Lorentey's avatar
      Implement automatic terminal-local environment variables via `local-environment-variables'. · f105f403
      Karoly Lorentey authored
      * lisp/env.el (setenv, getenv): Add optional terminal parameter.  Update docs.
        (setenv): Handle `local-environment-variables'.
        (read-envvar-name): Also allow (and complete) local
        environment variables on the current terminal.
      
      * src/callproc.c: Include frame.h and termhooks.h, for terminal parameters.
        (Qenvironment): New constant.
        (Vlocal_environment_variables): New variable.
        (syms_of_callproc): Register and initialize them.
        (child_setup): Handle Vlocal_environment_variables.
        (getenv_internal): Add terminal parameter.  Handle
        Vlocal_environment_variables.
        (Fgetenv_internal): Add terminal parameter.
      
      * src/termhooks.h (get_terminal_param): Declare.
      
      * src/Makefile.in (callproc.o): Update dependencies.
      * mac/makefile.MPW (callproc.c.x): Update dependencies.
      
      * lisp/termdev.el (terminal-id): Make parameter optional.
        (terminal-getenv, terminal-setenv, with-terminal-environment): 
        Disable functions.
      
      * lisp/mule-cmds.el (set-locale-environment): Convert `terminal-getenv' calls
        to `getenv'.
      * lisp/rxvt.el (rxvt-set-background-mode): Ditto.
      * lisp/x-win.el (x-initialize-window-system): Ditto.
      * lisp/xterm.el (terminal-init-xterm): Ditto.
      
      * lisp/server.el (server-process-filter): Fix reference to the 'display frame
        parameter.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-461
      f105f403
  3. 19 Nov, 2005 1 commit
    • Karoly Lorentey's avatar
      Store client's environment in terminal parameters, not server parameters. · 59e085e0
      Karoly Lorentey authored
      * lisp/loadup.el: Don't load server.
      * lisp/ldefs-boot.el: Update.
      
      * lib-src/emacsclient.c (main): Send environment only when a new display
        is created.
      
      * lisp/server.el (server-save-buffers-kill-display): Add autoload
        cookie.  Move stuff not specific to server into `save-buffers-kill-display'.
      * lisp/files.el (save-buffers-kill-display): New function.
        (ctl-x-map): Bind it to C-x C-c.
      
      * lisp/frame.el (terminal-getenv): New function.
      * lisp/international/mule-cmds.el (set-locale-environment): Use it.
      
      * lisp/frame.el (with-terminal-environment): New macro.
      
      * lisp/server.el (server-getenv, server-with-client-environment): Remove.
        (server-getenv-from, server-with-environment): New functions.
        (server-process-filter): Change syntax of environment
        variables.  Put environment into terminal parameters, not client parameters.
      
      * lisp/term/rxvt.el: Don't require server.
        (rxvt-set-background-mode): Use terminal-getenv, not server-getenv.
      * lisp/term/x-win.el (x-initialize-window-system): Ditto.
      * lisp/term/xterm.el (terminal-init-xterm): Ditto.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-443
      59e085e0
  4. 24 Oct, 2005 1 commit
  5. 18 Sep, 2005 1 commit
  6. 11 Sep, 2005 2 commits
  7. 10 Sep, 2005 1 commit
    • Karoly Lorentey's avatar
      Fix `emacsclient -ne '(+ 2 2)'' (reported by Han Boetes), and clean up some... · 92071250
      Karoly Lorentey authored
      Fix `emacsclient -ne '(+ 2 2)'' (reported by Han Boetes), and clean up some corner cases in Emacs server.
      
      * lib-src/emacsclient.c (decode_options): Make --no-wait imply
        --current-frame, except when it is the only option given.  Make sure no
        frame is opened when --current-frame is set.  
        (main): Pass --current-frame to server.el.
      
      * lisp/server.el (server-process-filter): Handle -current-frame command.
        Don't create frames when it is given.  Don't bind X frames to the
        client when we are in -no-wait mode.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-407
      92071250
  8. 06 Aug, 2005 1 commit
  9. 16 Jul, 2005 1 commit
  10. 11 Jul, 2005 1 commit
    • Karoly Lorentey's avatar
      Cosmetic changes in server.el. · 6d93dbff
      Karoly Lorentey authored
      * lisp/server.el: Use `device' instead of `display' or `display-id' in
        variable and client parameter names.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-383
      6d93dbff
  11. 06 Jul, 2005 2 commits
    • Karoly Lorentey's avatar
      Handle and document that `delete-frame' may call functions in `delete-frame-functions' twice. · e519a50b
      Karoly Lorentey authored
      * src/frame.c (syms_of_frame): Add warning to `delete-frame-functions' description.
      
      * lisp/frame.el (terminal-handle-delete-frame): Check that the frame is alive.
      * lisp/server.el (server-handle-delete-frame): Ditto.  Remove bogus comment.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-375
      e519a50b
    • Karoly Lorentey's avatar
      Small enhancements. · 626ea340
      Karoly Lorentey authored
      * lisp/international/mule-cmds.el (set-locale-environment): Use
        server-getenv, not getenv.
      
      * lisp/server.el (server-handle-delete-frame): Add note on possible race
        condition.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-374
      626ea340
  12. 04 Jul, 2005 1 commit
  13. 16 May, 2005 1 commit
  14. 03 May, 2005 1 commit
    • Karoly Lorentey's avatar
      Support for ttys with different character locale settings. · 97c57fb2
      Karoly Lorentey authored
      * lisp/server.el (server-process-filter): Set locale environment
        variables from client while creating tty frames.
      
      * lisp/faces.el (tty-create-frame-with-faces): Call set-locale-environment.
      
      * lisp/international/mule-cmds.el (set-display-table-and-terminal-coding-system): 
        Add DISPLAY parameter.  Pass it to set-terminal-coding-system.
        (set-locale-environment): Add DISPLAY parameter.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-340
      97c57fb2
  15. 28 Mar, 2005 1 commit
    • Karoly Lorentey's avatar
      Fix error when creating tty clients. · 4a932511
      Karoly Lorentey authored
      * lisp/server.el (server-process-filter): Disable call to configure-display-for-locale.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-323
      4a932511
  16. 20 Feb, 2005 1 commit
  17. 10 Feb, 2005 1 commit
  18. 09 Feb, 2005 1 commit
  19. 04 Feb, 2005 1 commit
    • Karoly Lorentey's avatar
      Prevent emacsclient errors when Emacs is compiled without X support. · 6afdd335
      Karoly Lorentey authored
      * lisp/frame.el (make-frame-on-display): Protect condition on
        x-initialized when x-win.el is not loaded.
      
      * lib-src/emacsclient.c (main): Handle -window-system-unsupported
        command.  Doc update.
      
      * lisp/server.el (server-process-filter): Don't try to create an X frame
        when Emacs does not support it.  Improve logging.
      
      * lisp/server.el (server-send-string): New function.
        (server-handle-suspend-tty, server-process-filter): Use it.
      
      * lisp/server.el (server-process-filter, server-unquote-arg)
        (server-quote-arg): Doc updates.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-286
      6afdd335
  20. 30 Dec, 2004 1 commit
  21. 17 Oct, 2004 1 commit
  22. 10 Oct, 2004 2 commits
    • Karoly Lorentey's avatar
      Set ncurses-related environment variables while creating a new tty frame.... · 65f64034
      Karoly Lorentey authored
      Set ncurses-related environment variables while creating a new tty frame. (Reported by Dan Nicolaescu.)
      
      * lisp/server.el (server-with-client-environment): New macro.
        (server-process-filter): Temporarily set ncurses-related environment
        variables to those of the client while creating a new tty frame.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-257
      65f64034
    • Karoly Lorentey's avatar
      Small tweaks in server.el. · 6d3a46f7
      Karoly Lorentey authored
      * lisp/server.el: Doc updates.
        (server-select-display): Remove (unused).
        (server-handle-suspend-tty): Kill the client in case of errors from
        process-send-string.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-255
      6d3a46f7
  23. 08 Oct, 2004 1 commit
  24. 23 Aug, 2004 1 commit
  25. 16 Aug, 2004 1 commit
  26. 10 Jul, 2004 1 commit
  27. 04 Jul, 2004 1 commit
    • Karoly Lorentey's avatar
      Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes. · b6660415
      Karoly Lorentey authored
      * lisp/frame.el (make-frame-on-display): Update doc.
      (make-frame): Handle display-id parameter.  Update doc.
      (frames-on-display-list): Update for display ids.
      (framep-on-display): Ditto.
      (suspend-frame): Use display-name, not frame-tty-name.
      (selected-display): New function.
      
      * lisp/server.el (server-delete-client): Use delete-display, not delete-tty.
      (server-tty-live-p, server-handle-delete-tty): Removed.
      (server-handle-delete-frame): Delete tty clients, if needed.
      (server-process-filter): Set the display parameter, and use it when appropriate.
      (server-handle-suspend-tty): Use the display parameter.
      (server-start, server-unload-hook): Removed obsolete delete-tty hook.
      
      * lisp/talk.el (talk): Always use talk-add-display.
      (talk-add-tty-frame, talk-handle-delete-tty): Removed.
      (talk-handle-delete-frame): New function.
      (talk-add-display): Open a new frame only if parameter was not a frame.
      
      * src/dispextern.h (get_display, Fdisplay_tty_type):  New prototypes.
      (Fframe_tty_type): Removed.
      
      * src/dispnew.c (init_display): Use Fdisplay_tty_type, not Fframe_tty_type.
      
      * src/frame.c (Qdisplay_id, Qdisplay_live_p): New symbols.
      (make_terminal_frame): Get display as a parameter.
      (Fmake_terminal_frame): Get/create display here; pass it to
      make_terminal_frame.
      (Fframe_display): New function.
      (Fdelete_frame): Stop if the hook deleted the frame.
      (syms_of_frame): Register new stuff.
      
      * src/frame.h (Qdisplay_id, Qdisplay_live_p, make_terminal_frame):
      Updated prototypes.
      
      * src/keyboard.c (interrupt_signal): Updated comment.
      
      * src/term.c (Vdelete_tty_after_functions): Removed variable.
      (Qframe_tty_name, Qframe_tty_type): Removed.
      (next_display_id): New var.
      (tty_ring_bell): Don't do anything on suspended frames.
      (Ftty_display_color_p, Ftty_display_color_cells): Doc update.
      (get_display): New function.
      (get_tty_display): Use it.
      (get_named_tty_display): Ignore suspended displays.
      (Fframe_tty_name): Renamed to Fdisplay_name.  Handle all kinds of
      displays.
      (Fframe_tty_type): Renamed to Fdisplay_tty_type.
      (init_initial_display): Set display name.
      (term_init): Allow more displays on the same device.  Set display name.
      (Fdelete_tty): Removed.
      (delete_tty): Don't run hooks.
      (create_display): Set display id.
      (delete_display): Free display name.
      (Fdelete_display, Fdisplay_live_p, Fdisplay_list): New functions.
      (Fsuspend_tty): Call hook with display id.  Doc update.
      (Fresume_tty): Refuse to resume when there is already an active display
      on the same device.  Call hook with display id.  Doc update.
      (syms_of_term): Reflect above changes.
      
      * src/termhooks.h (struct display): Added `id' and `name' members.
      (DISPLAY_ACTIVE_P): New macro.
      
      * src/xfns.c (check_x_display_info): Handle display ids.
      (Fx_create_frame): Try to get display from `display-id' parameter.
      
      * src/xterm.c (x_term_init): Set display name.
      (x_delete_display): Handle the case when `font_table' is NULL.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-207
      b6660415
  28. 03 Jul, 2004 1 commit
    • Karoly Lorentey's avatar
      Fix --no-wait in emacsclient (reported by Dan Nicolaescu). · fc2040c0
      Karoly Lorentey authored
      * lib-src/emacsclient.c (main): Don't exit prematurely on --no-wait,
        let Emacs close the connection for us.
      
      * lisp/server.el (server-visit-files): Don't set client-record when nowait.
      
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-205
      fc2040c0
  29. 08 Jun, 2004 1 commit
  30. 27 May, 2004 1 commit
    • Karoly Lorentey's avatar
      Fix background mode initialization on client tty frames (rep. by Dan Nicolaescu). · 3a258474
      Karoly Lorentey authored
      lisp/server.el (server-process-filter): Add the client parameter to
      the initialization parameters of new frames.
      (server-getenv): Use the 'client frame parameter and not
      server-clients-with to get the client; server-getenv is called during
      frame initialization. (Dan Nicolaescu)
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-179
      3a258474
  31. 25 May, 2004 1 commit
  32. 23 May, 2004 2 commits
    • Karoly Lorentey's avatar
      Use the remote locale for terminal & keyboard coding system. · 14de9163
      Karoly Lorentey authored
      lisp/international/mule-cmds.el (set-locale-translation-file-name)
      (get-locale-real-name, get-locale-coding-system)
      (configure-display-for-locale): New functions.
      (set-locale-environment): Factored contents into separate functions.
      
      lisp/server.el (server-process-filter): Call
      configure-display-for-locale after creating a new terminal frame.
      
      lisp/startup.el (command-line): Call set-locale-translation-file-name.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-171
      14de9163
    • Karoly Lorentey's avatar
      Fix environment variables on emacsclient frames. · 44070fdf
      Karoly Lorentey authored
      lisp/server.el (server-getenv): Fix string lookup in alist.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-170
      44070fdf
  33. 18 May, 2004 1 commit
  34. 08 May, 2004 1 commit
    • Karoly Lorentey's avatar
      Fixed environment variable handling during terminal initialization. · 2cd1371d
      Karoly Lorentey authored
      lisp/server.el (server-getenv): New inline function.
      
      lisp/term/rxvt.el (rxvt-set-background-mode): Use server-getenv
      instead of getenv.
      lisp/term/x-win.el (x-initialize-window-system): Ditto.
      lisp/term/xterm.el (xterm-rxvt-set-background-mode): Ditto.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-158
      2cd1371d