Mercurial > emacs
comparison README.multi-tty @ 83032:b8237c556f0e
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
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Mon, 02 Feb 2004 22:09:56 +0000 |
parents | bf5b5fb49420 |
children | fcf6fc349e0d |
comparison
equal
deleted
inserted
replaced
83031:1d2f73785d9d | 83032:b8237c556f0e |
---|---|
58 major problems were fixed. (It still needs testing on other | 58 major problems were fixed. (It still needs testing on other |
59 architectures, though.) Both multiple tty device support and | 59 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. |
64 | |
65 HOW TO COMPILE AND TEST | |
66 ----------------------- | |
65 | 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 |
82 separate terminals. The new frame is closed automatically when you | 83 separate terminals. The new frame is closed automatically when you |
83 have finished editing the specified files (C-x #), but delete-frame | 84 have finished editing the specified files (C-x #), but delete-frame |
158 ------ | 159 ------ |
159 | 160 |
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 |
169 --------- | 173 --------- |
170 | 174 |
171 See arch logs. | 175 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 |
178 > * After starting the frame in the VC, I saw this message in the | 186 > * After starting the frame in the VC, I saw this message in the |
179 > *Message* buffer | 187 > *Message* buffer |
632 -- Don't exit Emacs when the last X connection fails during a | 640 -- Don't exit Emacs when the last X connection fails during a |
633 multi-display session. | 641 multi-display session. |
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 |