summaryrefslogtreecommitdiff
path: root/README.multi-tty
Commit message (Collapse)AuthorAgeFilesLines
* Support for ttys with different character locale settings.Karoly Lorentey2005-05-031-81/+89
| | | | | | | | | | | | | * 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
* Fix UTF-8 tty input when first frame is an X frame. Steps towards multiple ↵Karoly Lorentey2005-05-031-15/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | tty locale support. * 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
* README update. (Fix identifier names in emacs background preloader example.)Karoly Lorentey2005-03-281-13/+13
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-322
* README updates.Karoly Lorentey2005-03-221-5/+35
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-314
* Fix crash condition when an X server connection is broken. (Reported by ↵Karoly Lorentey2005-03-071-0/+1
| | | | | | | | Vincent Bernat.) * src/xterm.c (x_flush): Return immediately when redisplay is inhibited. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-304
* README updates. (Reported by Xavier Mallard)Karoly Lorentey2005-02-041-6/+8
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-287
* README update.Karoly Lorentey2004-12-091-0/+2
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-275
* Trivial changes in x_create_tip_frame.Karoly Lorentey2004-12-081-0/+4
| | | | | | | * src/xfns.c (x_create_tip_frame): Copy color slot initialization safeguards from x-create-frame. Trivial doc update. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-274
* Remove remaining references to updating_frame.Karoly Lorentey2004-11-281-68/+112
| | | | | | | | | | | | | * src/dispextern.h (updated_window): Remove comment reference to updating_frame. * src/dispnew.c (update_window): Remove bogus xassert. * src/xterm.c: (x_clear_frame): Update comment. (x_draw_window_cursor): Remove reference to updating_frame. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-270
* Fix core dump in redisplay window. (Reported by Yoshiaki Kasahara.) Plus ↵Karoly Lorentey2004-10-141-0/+3
| | | | | | | | | | | | | | | | cleanups. * src/xdisp.c (handle_single_display_prop): Use FRAME_WINDOW_P instead of checking against specific frame types. Ignore images on non-window frames. (echo_area_display): Use FRAME_INITIAL_P to check for initial frame. (redisplay_preserve_echo_area): Update for multi-tty support. (redisplay_window): Don't bother with toolbars, fringe bitmaps or vertical borders on tty frames. (display_line): Remove superflous #ifdefs. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-260
* README updates.Karoly Lorentey2004-09-201-15/+28
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-248
* Inhibit redisplay while frames are being deleted after an X disconnect.Karoly Lorentey2004-09-101-1/+2
| | | | | | | | * src/xterm.c (x_connection_closed): Inhibit redisplay while frames are being deleted. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-243
* Fix typo in server.el (Han Boetes, Ted Morse, Ami Fischman)Karoly Lorentey2004-08-231-0/+1
| | | | | | | | * lisp/server.el ("\C-x#"): Fix typo. (Thanks Han Boetes, Ted Morse and Ami Fischman.) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-235
* README updates.Karoly Lorentey2004-08-191-21/+3
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-233
* README updates, including a new Tips & Tricks sectionKaroly Lorentey2004-08-131-56/+156
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-231
* Updated archive location in docs. (Thanks to Dan Waber.)Karoly Lorentey2004-08-111-2/+9
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-230
* Cleaned up README compile & test instructions.Karoly Lorentey2004-08-051-12/+16
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-226
* Fix Viper with simultaneous X and tty display devices. (Rep. by IRIE Tetsuya.)Karoly Lorentey2004-07-101-0/+1
| | | | | | | * lisp/emulation/viper-init.el (viper-has-face-support-p): Acknowledge that Emacs has face support on ttys. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-214
* Implemented display ids for multiple emacsclients on the same tty. Plus ↵Karoly Lorentey2004-07-041-39/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assorted bugfixes. * 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
* Fix byte-compile errors during bootstrap. (Reported by Juraj Kubelka.)Karoly Lorentey2004-06-151-0/+1
| | | | | | | * src/term.c (Ftty_display_color_cells): Return 0 in case of an error, not nil. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-201
* README.multi-tty update.Karoly Lorentey2004-06-081-0/+2
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-192
* README.multi-tty update.Karoly Lorentey2004-06-071-0/+2
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-188
* Don't ignore SIGWINCH under X (contributed by Yoshiaki Kasahara).Karoly Lorentey2004-05-291-0/+1
| | | | | | | src/xterm.c (x_initialize): Don't disable SIGWINCH (small fix contributed by Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>). git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-181
* Fix window-system-default-frame-alist (ARISAWA Akihiro).Karoly Lorentey2004-05-271-0/+1
| | | | | | | lisp/frame.el (make-frame): Use the cdr of the value returned by assq. By ARISAWA Akihiro (<ari@mbf.ocn.ne.jp>). git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-180
* README.multi-tty updates.Karoly Lorentey2004-05-271-0/+6
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-177
* Update README.multi-tty.Karoly Lorentey2004-05-231-9/+11
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-172
* Add kludge to prevent overriding keyboard-coding-system customization.Karoly Lorentey2004-05-181-0/+4
| | | | | | | | lisp/international/mule-cmds.el (set-locale-environment): Don't set keyboard-coding-system if it is already set (reported by Friedrich Delgado Friedrichs). git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-165
* Fix fatal error during startup (rep. by Friedrich Delgado Friedrichs)Karoly Lorentey2004-05-181-0/+1
| | | | | | | | | | | lisp/loadup.el: Unconditionally preload server. lisp/server.el: Change server-getenv to a simple defun. src/Makefile.in (lisp, shortlisp): Added server.elc. mac/makefile.MPW (LispSource): Ditto. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-164
* Fixed environment variable handling during terminal initialization.Karoly Lorentey2004-05-081-32/+47
| | | | | | | | | | | 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
* Mention `tla replay' in README.multi-tty (Gaute Strokkenes).Karoly Lorentey2004-04-231-0/+9
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-151
* Fix frame parameter handling in server.el.Karoly Lorentey2004-04-181-0/+11
| | | | | | | lisp/server.el (server-process-filter): Work around make-frame frame parameter bogosity by using modify-frame-parameters. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-145
* Another server.el overhaul.Karoly Lorentey2004-04-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib-src/emacsclient.c (xstrdup): New function. (quote_argument): Use xmalloc, not malloc. (main): Send environment variable values. lisp/server.el (server-clients): Documentation update. (server-ttys, server-frames): Removed. (server-client, server-client-get, server-client-set) (server-clients-with, server-add-client) (server-delete-client): New functions. (server-sentinel, server-handle-suspend-tty) (server-handle-delete-tty, server-handle-delete-frame) (server-start, server-process-filter, server-visit-files) (server-buffer-done, server-kill-buffer-query-function) (server-kill-emacs-query-function, server-switch-buffer): Use them. (server-log): Handle both kinds of client references. (server-start): Set up all hooks here. (server-process-filter): Cleanup. Store version in client. Handle -env commands for passing environment variable values. (server-buffer-done): Don't close clients that were created bufferless. (server-switch-buffer): Only look at frameless clients. Don't switch away from current buffer if there is no next-buffer. (server-unload-hook): Remove frame/tty hooks, too. lisp/server.el (server-quote-arg, server-unquote-arg) (server-process-filter, server-kill-buffer-query-function) (server-kill-emacs-query-function): Doc update. (server-buffer-done, server-switch-buffer): Use buffer-live-p, not buffer-name. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-143
* README updates.Karoly Lorentey2004-04-171-4/+4
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-141
* README changes.Karoly Lorentey2004-04-131-15/+26
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-137
* Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).Karoly Lorentey2004-03-261-7/+16
| | | | | | | | | | | | | | | lisp/simple.el: Make interprogram-cut-function and interprogram-paste-function frame-local. (Reported by Mark Plaksin and Robert Chassell). lisp/faces.el (x-create-frame-with-faces) (tty-create-frame-with-faces): Set the interprogram-cut-function and interprogram-paste-function frame parameters. lisp/x-win.el (x-initialize-window-system): Don't set interprogram-cut-function and interprogram-paste-function. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-124
* README updates.Karoly Lorentey2004-03-111-0/+16
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-116
* Fix background-mode on terminal frames (Dan Nicolaescu).Karoly Lorentey2004-03-111-0/+8
| | | | | | | | | | | | | | | | | | | | lisp/faces.el (frame-set-background-mode): Guess the background mode on terminal frames from the termcap type string. (tty-create-frame-with-faces): Switch to the new frame during its setup. Load the customization library corresponding to the terminal type of the newly created frame. (Reported by Dan Nicolaescu <dann at ics dot uci dot edu>.) lisp/startup.el (normal-top-level): Moved background-mode heuristic to frame-set-background-mode. src/dispnew.c (init_display): Update the tty-type frame parameter of the initial terminal frame. src/frame.h (Qtty, Qtty_type): New externs. src/term.c (term_init): Update comments. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-114
* README updates.Karoly Lorentey2004-03-061-0/+9
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-110
* README updates.Karoly Lorentey2004-03-021-9/+7
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-109
* Implemented suspending of emacsclient frames.Karoly Lorentey2004-02-281-9/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib-src/emacsclient.c (quote_file_name): Renamed to quote_argument. (unquote_argument, handle_sigcont, handle_sigtstp): New functions. (out, in): New global variables for communicating with the Emacs process. (init_signals): Set up handlers for SIGCONT, SIGTSTP and SIGTTOU. (main): Changed out and in to global variables. Prepend `-eval' or '-file' to each argument. Use fsync to force sending the strings to Emacs. Removed obsolete -bad-version code. Support the -suspend command. Cleaned up newline handling. lisp/frame.el (suspend-frame): New function. Substitute key definition of suspend-emacs with suspend-frame. lisp/server.el (server-log): Cosmetic change in log format. (server-handle-delete-tty, server-handle-delete-frame): Added logging. (server-handle-suspend-tty, server-quote-arg): New functions. (server-start): Install server-handle-suspend-tty. (server-process-filter): Reorganized source code for clarity. Implemented -resume, -suspend and -ignore commands. lisp/term/x-win.el (x-initialize-window-system): Don't change the binding of C-z. src/cm.c: Replaced TTY_INPUT, TTY_OUTPUT, TTY_TERMSCRIPT calls with their macro expansion. src/dispnew.c: Ditto. src/frame.c: Ditto. src/keyboard.c: Ditto. src/sysdep.c: Ditto. src/keyboard.c (tty_read_avail_input): Don't read if the terminal is suspended. src/sysdep.c (discard_tty_input, init_sys_modes, reset_sys_modes): Ditto. src/term.c (tty_set_terminal_modes, tty_reset_terminal_modes): Ditto. src/term.c (Vsuspend_tty_functions, Vresume_tty_functions): New hooks. (syms_of_term): Defvar them. (term_init): Don't allow opening a new frame on a suspended tty device. (Fsuspend_tty, Fresume_tty): New functions. (syms_of_term): Defsubr them. src/termchar.c (struct tty_display_info): Update documentation of input and output. (TTY_INPUT, TTY_OUTPUT, TTY_TERMSCRIPT): Removed. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-105
* Make emacsclient refuse to create a frame inside an Emacs term buffer.Karoly Lorentey2004-02-271-7/+11
| | | | | | | lib-src/emacsclient.c (main): Exit with failure if the terminal type is `eterm' (Emacs term buffer). git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-104
* README.multi-tty updates.Karoly Lorentey2004-02-271-28/+1
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-103
* README updates.Karoly Lorentey2004-02-251-16/+36
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-95
* README updates.Karoly Lorentey2004-02-201-9/+13
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-86
* Changed emacsclient to open new frames by default.Karoly Lorentey2004-02-201-0/+4
| | | | | | | | | lib-src/emacsclient.c (decode_options): Handle the case when $DISPLAY is an empty string. Set window_system or tty to one by default, depending on if there is a valid display. (longopts, decode_options, print_help_and_exit): Removed -w, added -c. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-85
* Fixed a typo in README.multi-tty.Karoly Lorentey2004-02-101-1/+1
| | | | git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-76
* Don't hang on the tty if called from a shell script.Karoly Lorentey2004-02-081-1/+14
| | | | | | | | | src/sysdep.c (narrow_foreground_group): Set the process group to inherited_pgroup before calling EMACS_SET_TTY_PGRP. Removed confusing inherited_pgroup initialization (it is done in emacs.c). (Reported by Istvan Marko <mi-mtty at kismala dot com>.) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-75
* Fix the case when emacsclient is run on Emacs's controlling tty.Karoly Lorentey2004-02-021-6/+21
| | | | | | | | | | | | src/term.c (O_NOCTTY): Make sure it's defined. (no_controlling_tty): New variable. (init_initial_display, mark_ttys): Remove unused variable. (term_init): Check that the given filename is a terminal device. Dissociate the controlling terminal if we reopen it for other purposes. (Reported by Dan Nicolaescu <dann at ics dot uci dot edu>. (Fdelete_tty): Return nil. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-72
* Don't exit Emacs when the X display is closed during a tty-X combo session.Karoly Lorentey2004-01-261-7/+31
| | | | | | | | | src/xterm.c (x_delete_display): Fix semantic typo. (x_connection_closed): When deciding whether or not to shut down Emacs, check for remaining elements in display_list, not x_display_list. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-68
* Fixed interactive temacs.Karoly Lorentey2004-01-241-3/+5
| | | | | | src/xdisp.c (init_iterator): Always initialize the face cache if it's NULL. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-64