1. 22 Dec, 2005 1 commit
    • Karoly Lorentey's avatar
      Reimplement and extend support for terminal-local environment variables. · f35ca2fe
      Karoly Lorentey authored
      * lisp/termdev.el: New file.  Move terminal parameter-related functions
        here from frame.el.
        (terminal-getenv, with-terminal-environment): Reimplement and extend.
        (terminal-setenv, terminal-setenv-internal): New functions.
      
      * lisp/frame.el (make-frame-on-tty, framep-on-display, suspend-frame):
        Extend doc string, update parameter names.
        (terminal-id, terminal-parameter-alist, terminal-parameters)
        (terminal-parameter-p, terminal-parameter, set-terminal-parameter)
        (terminal-handle-delete-frame, terminal-getenv, terminal-getenv)
        (with-terminal-environment): Move to termdev.el.
      
      * lisp/loadup.el: Load termdev as well.
      * lisp/Makefile.in (lisp, shortlisp): Add termdev.elc.
      * lisp/makefile.MPW (shortlisp): Ditto.
      
      * lisp/ebuff-menu.el (electric-buffer-menu-mode-map): Bind C-z to
        `suspend-frame', not `suspend-emacs'.
      * lisp/echistory.el (electric-history-map): Ditto.
      * lisp/ebrowse.el (ebrowse-electric-list-mode-map): Ditto.
      * lisp/ebrowse.el (ebrowse-electric-position-mode-map): Ditto.
      
      * lisp/startup.el (normal-splash-screen): Use `save-buffers-kill-display'
        instead of `save-buffers-kill-emacs'.
      
      * lisp/x-win.el (x-initialize-window-system): Add 'global-ok option to
        `terminal-getenv'.
      
      * src/term.c (suspend-tty): Update doc string.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-456
      f35ca2fe
  2. 12 Dec, 2005 1 commit
  3. 11 Dec, 2005 1 commit
    • Juri Linkov's avatar
      (set-background-color, set-foreground-color) · 63ec4f94
      Juri Linkov authored
      (set-cursor-color, set-mouse-color, set-border-color):
      Add explicit prompts to read colors by `facemenu-read-color'.
      (show-trailing-whitespace, blink-cursor-delay)
      (blink-cursor-interval, display-hourglass, hourglass-delay):
      Remove tags.
      (display-hourglass, hourglass-delay): Doc fix.
      (cursor-in-non-selected-windows): Capitalize words in tag.
      63ec4f94
  4. 06 Dec, 2005 1 commit
  5. 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
  6. 07 Nov, 2005 1 commit
  7. 23 Oct, 2005 1 commit
    • Karoly Lorentey's avatar
      Fix Delete key on X by adapting normal-erase-is-backspace-mode for multi-tty.... · 30a2fded
      Karoly Lorentey authored
      Fix Delete key on X by adapting normal-erase-is-backspace-mode for multi-tty. (Reported by Dan Waber and Dan Nicolaescu.)
      
      * lisp/frame.el (terminal-parameter-p): New function.
        (terminal-parameter): Use it.
      
      * lisp/simple.el (normal-erase-is-backspace): Add 'maybe option, set it as default.
        (normal-erase-is-backspace-mode): Rewrite for multiple display support.
        (normal-erase-is-backspace-setup-frame): New function.
      
      * lisp/frame.el (make-frame): Call it.
      * lisp/startup.el (command-line): Call it.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-427
      30a2fded
  8. 21 Oct, 2005 1 commit
  9. 20 Oct, 2005 1 commit
  10. 07 Sep, 2005 1 commit
  11. 06 Aug, 2005 1 commit
  12. 22 Jul, 2005 1 commit
  13. 20 Jul, 2005 1 commit
  14. 14 Jul, 2005 1 commit
  15. 12 Jul, 2005 1 commit
  16. 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
  17. 10 Jul, 2005 1 commit
  18. 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
      Implement rudimentary Lisp-level terminal parameters. · 4400e764
      Karoly Lorentey authored
      * lisp/frame.el (terminal-id, terminal-parameters, terminal-parameter) 
        (set-terminal-parameter, terminal-handle-delete-frame): New functions.
        (delete-frame-functions): Add to `delete-frame-functions' hook.
        (terminal-parameter-alist): New variable.
      
      * lisp/international/encoded-kb.el (saved-input-mode): Delete variable.
        (encoded-kbd-setup-display): Store the saved input method as a terminal
        parameter.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-373
      4400e764
  19. 04 Jul, 2005 1 commit
  20. 10 Jun, 2005 1 commit
  21. 19 May, 2005 1 commit
  22. 05 Mar, 2005 1 commit
  23. 03 Mar, 2005 1 commit
  24. 25 Feb, 2005 1 commit
  25. 21 Feb, 2005 1 commit
  26. 18 Feb, 2005 1 commit
  27. 12 Feb, 2005 1 commit
    • Luc Teirlinck's avatar
      (blink-cursor-timer): Doc fix. · a795e09a
      Luc Teirlinck authored
      (blink-cursor-mode): Use correct standard expression in defcustom.
      (blink-cursor): Make it an alias for `blink-cursor-mode' and declare obsolete.
      a795e09a
  28. 09 Feb, 2005 1 commit
  29. 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
  30. 17 Oct, 2004 1 commit
  31. 22 Aug, 2004 1 commit
  32. 24 Jul, 2004 1 commit
  33. 23 Jul, 2004 1 commit
  34. 21 Jul, 2004 1 commit
  35. 10 Jul, 2004 1 commit
    • Karoly Lorentey's avatar
      Fix suspend-frame on the controlling tty (reported by Dan Nicolaescu). · 4a933ef8
      Karoly Lorentey authored
      * src/term.c (Fdisplay_controlling_tty_p): New function.
      
      * src/term.c (syms_of_term): Initialize Sdisplay_controlling_tty_p.
      
      * lisp/frame.el (suspend-frame): Use display-controlling-tty-p to decide
        between suspend-emacs and suspend-tty.
      
      * src/keyboard.c (Fsuspend_emacs): Give a better error message when
        there are multiple open tty devices.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-213
      4a933ef8
  36. 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
  37. 19 Jun, 2004 1 commit
  38. 01 Jun, 2004 1 commit
  39. 27 May, 2004 1 commit