From 0c72d684c4b3e25bdb3a6a869d9f1b8bd21b80c7 Mon Sep 17 00:00:00 2001 From: Karoly Lorentey Date: Mon, 2 Feb 2004 22:09:56 +0000 Subject: Fix the case when emacsclient is run on Emacs's controlling tty. 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 . (Fdelete_tty): Return nil. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-72 --- README.multi-tty | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'README.multi-tty') diff --git a/README.multi-tty b/README.multi-tty index 06e069f8019..c86d69ac0dd 100644 --- a/README.multi-tty +++ b/README.multi-tty @@ -60,22 +60,23 @@ architectures, though.) Both multiple tty device support and simultaneous X and tty frame support works fine. Emacsclient has been extended to support opening a new terminal frame. - Please let me know if you find any bugs in this branch. +HOW TO COMPILE AND TEST +----------------------- + To try it out, compile and run the multi-tty branch with the following commands: mkdir +build cd +build - ../configure + ../configure make bootstrap src/emacs -nw # You can also try without -nw M-x server-start and then (from a shell prompt on another terminal) start emacsclient with - lib-src/emacsclient -t /optional/file/names... You'll hopefully have two fully working, independent frames on @@ -160,9 +161,12 @@ THANKS The following is an (incomplete) list of people who have contributed to the project by testing, bug reports, and suggestions. Thanks! -Robert J. Chassel -Romain Francoise -Ami Fischman +Robert J. Chassel +Romain Francoise +Ami Fischman +Dan Nicolaescu + +Richard Stallman was kind enough to review my patches. CHANGELOG @@ -172,6 +176,10 @@ See arch logs. THINGS TO DO ------------ +** Dan Nicolaescu (dann at ics dot uci dot edu) suggests that -nw + should be added as an alias for -t in emacsclient. Good idea. + (Alas, implementing this is not trivial, getopt_long does not seem + to support two-letter ``short'' options.) ** Robert J. Chassell reports: @@ -634,4 +642,11 @@ DIARY OF CHANGES (Fixed.) + +-- Dan Nicolaescu noticed that starting emacsclient on the same + terminal device that is the controlling tty of the Emacs process + gives unexpected results. + + (Fixed.) + ;;; arch-tag: 8da1619e-2e79-41a8-9ac9-a0485daad17d -- cgit v1.2.1