diff options
| author | Karoly Lorentey | 2004-02-02 22:09:56 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-02-02 22:09:56 +0000 |
| commit | 0c72d684c4b3e25bdb3a6a869d9f1b8bd21b80c7 (patch) | |
| tree | ff652240fcff0425e0398736c2b44b690bb8ebe7 /README.multi-tty | |
| parent | d3a6748c5b378a86fc8408222c7dd26e47218af9 (diff) | |
| download | emacs-0c72d684c4b3e25bdb3a6a869d9f1b8bd21b80c7.tar.gz emacs-0c72d684c4b3e25bdb3a6a869d9f1b8bd21b80c7.zip | |
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 <dann at ics dot uci dot edu>.
(Fdelete_tty): Return nil.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-72
Diffstat (limited to 'README.multi-tty')
| -rw-r--r-- | README.multi-tty | 27 |
1 files changed, 21 insertions, 6 deletions
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 | |||
| 60 | simultaneous X and tty frame support works fine. Emacsclient has been | 60 | simultaneous X and tty frame support works fine. Emacsclient has been |
| 61 | extended to support opening a new terminal frame. | 61 | extended to support opening a new terminal frame. |
| 62 | 62 | ||
| 63 | |||
| 64 | Please let me know if you find any bugs in this branch. | 63 | Please let me know if you find any bugs in this branch. |
| 65 | 64 | ||
| 65 | HOW TO COMPILE AND TEST | ||
| 66 | ----------------------- | ||
| 67 | |||
| 66 | To try it out, compile and run the multi-tty branch with the following | 68 | To try it out, compile and run the multi-tty branch with the following |
| 67 | commands: | 69 | commands: |
| 68 | 70 | ||
| 69 | mkdir +build | 71 | mkdir +build |
| 70 | cd +build | 72 | cd +build |
| 71 | ../configure | 73 | ../configure <your favourite options> |
| 72 | make bootstrap | 74 | make bootstrap |
| 73 | src/emacs -nw # You can also try without -nw | 75 | src/emacs -nw # You can also try without -nw |
| 74 | M-x server-start | 76 | M-x server-start |
| 75 | 77 | ||
| 76 | and then (from a shell prompt on another terminal) start emacsclient | 78 | and then (from a shell prompt on another terminal) start emacsclient |
| 77 | with | 79 | with |
| 78 | |||
| 79 | lib-src/emacsclient -t /optional/file/names... | 80 | lib-src/emacsclient -t /optional/file/names... |
| 80 | 81 | ||
| 81 | You'll hopefully have two fully working, independent frames on | 82 | You'll hopefully have two fully working, independent frames on |
| @@ -160,9 +161,12 @@ THANKS | |||
| 160 | The following is an (incomplete) list of people who have contributed | 161 | The following is an (incomplete) list of people who have contributed |
| 161 | to the project by testing, bug reports, and suggestions. Thanks! | 162 | to the project by testing, bug reports, and suggestions. Thanks! |
| 162 | 163 | ||
| 163 | Robert J. Chassel <bob@rattlesnake.com> | 164 | Robert J. Chassel <bob at rattlesnake dot com> |
| 164 | Romain Francoise <romain@orekobech.com> | 165 | Romain Francoise <romain at orekobech dot com> |
| 165 | Ami Fischman <ami@fischman.org> | 166 | Ami Fischman <ami at fischman dot org> |
| 167 | Dan Nicolaescu <dann at ics dot uci dot edu> | ||
| 168 | |||
| 169 | Richard Stallman was kind enough to review my patches. | ||
| 166 | 170 | ||
| 167 | 171 | ||
| 168 | CHANGELOG | 172 | CHANGELOG |
| @@ -172,6 +176,10 @@ See arch logs. | |||
| 172 | 176 | ||
| 173 | THINGS TO DO | 177 | THINGS TO DO |
| 174 | ------------ | 178 | ------------ |
| 179 | ** Dan Nicolaescu (dann at ics dot uci dot edu) suggests that -nw | ||
| 180 | should be added as an alias for -t in emacsclient. Good idea. | ||
| 181 | (Alas, implementing this is not trivial, getopt_long does not seem | ||
| 182 | to support two-letter ``short'' options.) | ||
| 175 | 183 | ||
| 176 | ** Robert J. Chassell reports: | 184 | ** Robert J. Chassell reports: |
| 177 | 185 | ||
| @@ -634,4 +642,11 @@ DIARY OF CHANGES | |||
| 634 | 642 | ||
| 635 | (Fixed.) | 643 | (Fixed.) |
| 636 | 644 | ||
| 645 | |||
| 646 | -- Dan Nicolaescu noticed that starting emacsclient on the same | ||
| 647 | terminal device that is the controlling tty of the Emacs process | ||
| 648 | gives unexpected results. | ||
| 649 | |||
| 650 | (Fixed.) | ||
| 651 | |||
| 637 | ;;; arch-tag: 8da1619e-2e79-41a8-9ac9-a0485daad17d | 652 | ;;; arch-tag: 8da1619e-2e79-41a8-9ac9-a0485daad17d |