Mercurial > emacs
annotate README.multi-tty @ 83295:2d137ca54960
Merged from miles@gnu.org--gnu-2005 (patch 279-280)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-279
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-280
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-335
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Tue, 26 Apr 2005 12:17:42 +0000 |
parents | 6f9586cdd29c |
children | ed09a89e2b25 |
rev | line source |
---|---|
83008
040dd41ed7d0
Hookified termcap devices, added bootstrap display device, plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83004
diff
changeset
|
1 -*- coding: utf-8; mode: text; -*- |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
2 GOAL |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
3 ---- |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
4 |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
5 This branch implements support for opening multiple, different tty |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
6 devices and simultaneous X and tty frames from a single Emacs session. |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
7 |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
8 Some use cases: |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
9 Emacs is notoriously slow at startup, so most people use another |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
10 editor or emacsclient for quick editing jobs from the console. |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
11 Unfortunately, emacsclient was very awkward to use, because it did not |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
12 support opening a new Emacs frame on the current virtual console. |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
13 Now, with multi-tty support, it can do that. (Emacsclient starts up |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
14 faster than vi!) |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
15 |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
16 Some Gnus users (including me) run Gnus in an X frame in its own Emacs |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
17 instance, which they typically leave running for weeks. It would be |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
18 nice if they could connect to this instance from a remote ssh session |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
19 and check their messages without opening a remote X frame or resorting |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
20 to gnus-slave. |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
21 |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
22 WHO IS DOING IT |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
23 --------------- |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
24 |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
25 I'm Károly Lőrentey. My address: lorentey@elte.hu. |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
26 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
27 Comments, bug reports, suggestions and patches are welcome; send them |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
28 to multi-tty@lists.fnord.hu. |
83190
57877d5c2cf2
Updated archive location in docs. (Thanks to Dan Waber.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83186
diff
changeset
|
29 |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
30 The following is a (sadly incomplete) list of people who have |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
31 contributed to the project by testing, submitting patches, bug |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
32 reports, and suggestions. Thanks! |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
33 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
34 ARISAWA Akihiro <ari at mbf dot ocn dot ne dot jp> |
83264
3b1209720d0e
Fix crash condition when an X server connection is broken. (Reported by Vincent Bernat.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83247
diff
changeset
|
35 Vincent Bernat <bernat at luffy dot cx> |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
36 Han Boetes <han at mijncomputer dot nl> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
37 Robert J. Chassell <bob at rattlesnake dot com> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
38 Romain Francoise <romain at orebokech dot com> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
39 Ami Fischman <ami at fischman dot org> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
40 Friedrich Delgado Friedrichs <friedel at nomaden dot org> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
41 IRIE Tetsuya <irie at t dot email dot ne dot jp> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
42 Yoshiaki Kasahara <kasahara at nc dot kyushu-u dot ac dot jp> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
43 Jurej Kubelka <Juraj dot Kubelka at email dot cz> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
44 David Lichteblau <david at lichteblau dot com> |
83247
a257c9edb57b
README updates. (Reported by Xavier Mallard)
Karoly Lorentey <lorentey@elte.hu>
parents:
83235
diff
changeset
|
45 Xavier Mallard <zedek at gnu-rox dot org> |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
46 Istvan Marko <mi-mtty at kismala dot com> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
47 Ted Morse <morse at ciholas dot com> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
48 Dan Nicolaescu <dann at ics dot uci dot edu> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
49 Gergely Nagy <algernon at debian dot org> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
50 Mark Plaksin <happy at mcplaksin dot org> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
51 Francisco Borges <borges at let dot rug dot nl> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
52 Frank Ruell <stoerte at dreamwarrior dot net> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
53 Dan Waber <dwaber at logolalia dot com> |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
54 and many others. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
55 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
56 Richard Stallman was kind enough to review an earlier version of my |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
57 patches. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
58 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
59 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
60 MAILING LISTS |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
61 ------------- |
53228
c5b253fd2504
Added a pointer to my archive to README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53226
diff
changeset
|
62 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
63 The multi-tty mailing list (discussion & bug reports): |
83111
fd147ed0d1b8
Mention `tla replay' in README.multi-tty (Gaute Strokkenes).
Karoly Lorentey <lorentey@elte.hu>
parents:
83105
diff
changeset
|
64 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
65 Address: multi-tty@lists.fnord.hu |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
66 Signup: http://lists.fnord.hu/mailman/listinfo/multi-tty |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
67 Archive: http://news.gmane.org/gmane.emacs.multi-tty/ |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
68 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
69 Commit notifications (read-only): |
83020
d617fe346b2b
Added note about the commit mailing list.
Karoly Lorentey <lorentey@elte.hu>
parents:
83018
diff
changeset
|
70 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
71 Address: multi-tty-commits@lists.fnord.hu |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
72 Signup: http://lists.fnord.hu/mailman/listinfo/multi-tty-commits |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
73 |
83020
d617fe346b2b
Added note about the commit mailing list.
Karoly Lorentey <lorentey@elte.hu>
parents:
83018
diff
changeset
|
74 |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
75 STATUS |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
76 ------ |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
77 |
83118
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
78 The branch is now very stable and almost full-featured. All of the |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
79 major problems have been fixed, only a few minor issues remain. (It |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
80 still needs to be ported to Windows/Mac/DOS, though.) Both multiple |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
81 tty device support and simultaneous X and tty frame support works |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
82 fine. Emacsclient has been extended to support opening new tty and X |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
83 frames. It has been changed open new Emacs frames by default. |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
84 |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
85 The multi-tty branch has been scheduled for inclusion in the next |
83274 | 86 major release of Emacs (version 23). I expect the merge into the |
83118
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
87 development trunk to occur sometime during next year (2005), after the |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
88 merge of the Unicode branch. |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
89 |
83208 | 90 Tested on GNU/Linux, Solaris 8, FreeBSD and OpenBSD. Please let me |
91 know if you succeed or fail to use it on other platforms---I'll have a | |
92 few tricky test cases for you. | |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
93 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
94 Known problems: |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
95 |
83274 | 96 * GTK support. If you compile your Emacs with the GTK |
97 toolkit, some functionality of multi-tty will be lost. | |
98 Current releases of GTK have limitations and bugs that | |
99 prevent full-blown multi-display support in Emacs. Use the | |
100 Lucid toolkit if you want to see a complete feature set. | |
101 | |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
102 * The single-kboard mode. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
103 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
104 If your multi-tty Emacs session seems to be frozen, you |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
105 probably have a recursive editing session or a pending |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
106 minibuffer prompt (which is a kind of recursive editing) on |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
107 another display. To unfreeze your session, switch to that |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
108 display and complete the recursive edit, for example by |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
109 pressing C-] (`abort-recursive-edit'). |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
110 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
111 I am sorry to say that currently there is no way to break |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
112 out of this "single-kboard mode" from a frozen display. If |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
113 you are unable to switch to the display that locks the |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
114 others (for example because it is on a remote computer), |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
115 then you can use emacsclient to break out of all recursive |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
116 editing sessions: |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
117 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
118 emacsclient -e '(top-level)' |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
119 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
120 Note that this (perhaps) unintuitive behaviour is by design. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
121 Single-kboard mode is required because of an intrinsic Emacs |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
122 limitation that is very hard to eliminate. (This limitation |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
123 is related to the single-threaded nature of Emacs.) |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
124 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
125 I plan to implement better user notification and support for |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
126 breaking out of single-kboard mode from locked displays. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
127 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
128 * Mac, Windows and DOS support is broken, doesn't even |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
129 compile. Multiple display support will probably not provide |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
130 new Emacs features on these systems, but the multi-tty |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
131 branch changed a few low-level interfaces, and the |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
132 system-dependent source files need to be adapted |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
133 accordingly. The changes are mostly trivial, so almost |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
134 anyone can help, if only by compiling the branch and |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
135 reporting the compiler errors. (It is not worth to do this |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
136 yet, though.) |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
137 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
138 |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
139 HOW TO GET THE BRANCH |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
140 --------------------- |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
141 |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
142 The branch uses GNU Arch (http://www.gnuarch.org) for version control. |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
143 |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
144 Retrieving the latest version of the branch: |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
145 |
83247
a257c9edb57b
README updates. (Reported by Xavier Mallard)
Karoly Lorentey <lorentey@elte.hu>
parents:
83235
diff
changeset
|
146 tla register-archive -f http://lorentey.hu/arch/2004/ |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
147 tla get lorentey@elte.hu--2004/emacs--multi-tty <directory> |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
148 |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
149 This incantation uses my private archive mirror that is hosted on a |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
150 relatively low-bandwidth site; if you are outside Hungary, you will |
83274 | 151 probably want to you use my secondary mirror: (Note that the -f option |
152 will overwrite the archive location if you have previously registered | |
153 the Hungarian one.) | |
154 | |
155 tla register-archive -f http://aszt.inf.elte.hu/~lorentey/mirror/arch/2004 | |
156 tla get lorentey@elte.hu--2004/emacs--multi-tty <directory> | |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
157 |
83274 | 158 http://aszt.inf.elte.hu/~lorentey/mirror/arch/2004 |
159 | |
160 The Arch supermirror provides mirroring services for all public Arch | |
161 repositories. We have a mirror there, too, if you prefer. | |
162 | |
163 tla register-archive -f http://mirrors.sourcecontrol.net/lorentey%40elte.hu--2004 | |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
164 tla get lorentey@elte.hu--2004/emacs--multi-tty <directory> |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
165 |
83247
a257c9edb57b
README updates. (Reported by Xavier Mallard)
Karoly Lorentey <lorentey@elte.hu>
parents:
83235
diff
changeset
|
166 My GPG key id is 0FB27A3F; it is available from |
a257c9edb57b
README updates. (Reported by Xavier Mallard)
Karoly Lorentey <lorentey@elte.hu>
parents:
83235
diff
changeset
|
167 hkp://wwwkeys.eu.pgp.net/, or from my homepage at |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
168 http://lorentey.hu/rolam/gpg.html) |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
169 |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
170 Don't worry if the above checkout takes a few minutes to complete; |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
171 once you have a source tree, updating it to the latest revision will |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
172 be _much_ faster. Use the following command for the update: |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
173 |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
174 tla replay |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
175 |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
176 You can find more information about Arch on http://wiki.gnuarch.org/. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
177 It's a wonderful source control system, I highly recommend it. |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
178 |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
179 If you don't have tla, the branch has a homepage from which you can |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
180 download conventional patches against Emacs CVS HEAD: |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
181 |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
182 http://lorentey.hu/project/emacs.html |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
183 |
83274 | 184 DEBIAN PACKAGES |
185 --------------- | |
186 | |
187 If you run Debian, or a distribution based on Debian, you are welcome | |
188 to use our binary packages; put these lines in your /etc/apt/sources.list: | |
189 | |
190 # Multi-tty Emacs | |
191 deb http://aszt.inf.elte.hu/~lorentey/mirror/apt ./ | |
192 deb-src http://aszt.inf.elte.hu/~lorentey/mirror/apt ./ | |
193 | |
194 Note that these packages are intended solely to provide an easy way to | |
195 test the new multi-tty features. They are not to be taken as Emacs | |
196 releases, and it's a mistake to expect robust operation or any kind of | |
197 timely support for them. Do not install them, unless you'd like to | |
198 have your editor crash on you. | |
199 | |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
200 |
83208 | 201 COMPILATION |
202 ----------- | |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
203 |
83186
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
204 The multi-tty branch is compiled the same way as Emacs itself: |
53235
1bf332eccca1
Added compilation instructions to README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
53234
diff
changeset
|
205 |
83208 | 206 make maintainer-clean # (If you have compiled Emacs before) |
207 | |
83186
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
208 ./configure <your favourite options> |
53235
1bf332eccca1
Added compilation instructions to README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
53234
diff
changeset
|
209 make bootstrap |
83186
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
210 make install |
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
211 |
83208 | 212 If you have strange compilation errors, they may be caused by old |
213 *.elc files that are left over from an earlier bootstrap. The `make | |
214 maintainer-clean' target deletes them, so it is a good idea to run | |
215 that before reporting a bug. (Emacs requires a clean recompilation | |
216 after certain kinds of source code changes.) | |
83186
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
217 |
83208 | 218 TESTING |
219 ------- | |
220 | |
221 To test the multi-tty branch, start up the Emacs server with the | |
83186
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
222 following commands: |
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
223 |
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
224 emacs |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
225 M-x server-start |
53235
1bf332eccca1
Added compilation instructions to README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
53234
diff
changeset
|
226 |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
227 and then (from a shell prompt on another terminal) start emacsclient |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
228 with |
83186
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
229 emacsclient -t /optional/file/names... (for a tty frame) |
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
230 emacsclient /optional/file/names... (for an X frame) |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
231 |
83186
1adf7aed3649
Cleaned up README compile & test instructions.
Karoly Lorentey <lorentey@elte.hu>
parents:
83174
diff
changeset
|
232 (Make sure both emacs and emacsclient are multi-tty versions.) |
53340 | 233 You'll hopefully have two fully working, independent frames on |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
234 separate terminals. The new frame is closed automatically when you |
83101 | 235 finish editing the specified files (C-x #), but delete-frame (C-x 5 0) |
236 also works. Of course, you can create frames on more than two tty | |
237 devices. | |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
238 |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
239 Creating new frames on the same tty with C-x 5 2 works, and they |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
240 behave the same way as in previous Emacs versions. If you exit emacs, |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
241 all terminals should be restored to their previous states. |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
242 |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
243 This is work in progress, and probably full of bugs. It is a good |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
244 idea to run emacs from gdb, so that you'll have a live instance to |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
245 debug if something goes wrong. Please send me your bug reports on our |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
246 mailing list: multi-tty@lists.fnord.hu |
53234
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
247 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
248 TIPS & TRICKS |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
249 ------------- |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
250 |
83028
bf5b5fb49420
Don't exit Emacs when the X display is closed during a tty-X combo session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83024
diff
changeset
|
251 I think the best way to use the new Emacs is to have it running inside |
bf5b5fb49420
Don't exit Emacs when the X display is closed during a tty-X combo session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83024
diff
changeset
|
252 a disconnected GNU screen session, and always use emacsclient for |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
253 normal work. One advantage of this is that not a single keystroke of |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
254 your work will be lost if the display device that you are using |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
255 crashes, or the network connection times out, or whatever. (I had an |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
256 extremely unstable X server for some time while I was developing these |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
257 patches, and running Emacs this way has saved me a number of M-x |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
258 recover-session invocations.) |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
259 |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
260 I use the following two bash functions to handle my Emacs sessions: |
83028
bf5b5fb49420
Don't exit Emacs when the X display is closed during a tty-X combo session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83024
diff
changeset
|
261 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
262 ,----[ ~/.bash_profile |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
263 | # Usage: preload_emacs <name> [<waitp>] |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
264 | # |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
265 | # Preloads the Emacs instance called NAME in a detached screen |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
266 | # session. Does nothing if the instance is already running. If WAITP |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
267 | # is non-empty, the function waits until the server starts up and |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
268 | # creates its socket; otherwise it returns immediately. |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
269 | function preload_emacs { |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
270 | local name="$1" |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
271 | local waitp="$2" |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
272 | local screendir="/var/run/screen/S-$USER" |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
273 | local serverdir="/tmp/emacs$UID" |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
274 | local emacs=emacs # Or wherever you installed your multi-tty Emacs |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
275 | |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
276 | if [ -z "$name" ]; then |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
277 | echo "Usage: preload_emacs <name> [<waitp>]" >&2 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
278 | return 1 |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
279 | fi |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
280 | |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
281 | if [ ! -e "$screendir"/*."$name" ]; then |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
282 | if [ -e "$serverdir/$name" ]; then |
83193 | 283 | # Delete leftover socket (for the wait option) |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
284 | rm "$serverdir/$name" |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
285 | fi |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
286 | screen -dmS "$name" "$emacs" -nw --eval "(setq server-name \"$name\")" -f server-start |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
287 | fi |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
288 | if [ ! -z "$waitp" ]; then |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
289 | while [ ! -e "$serverdir/$name" ]; do sleep 0.1; done |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
290 | fi |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
291 | return 0 |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
292 | } |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
293 | |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
294 | # Usage: connect_emacs <name> <args>... |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
295 | # |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
296 | # Connects to the Emacs instance called NAME. Starts up the instance |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
297 | # if it is not already running. The rest of the arguments are passed |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
298 | # to emacsclient. |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
299 | function connect_emacs { |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
300 | local name="$1" |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
301 | shift |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
302 | |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
303 | if [ -z "$name" ]; then |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
304 | echo "Usage: connect_emacs <name> <args>..." >&2 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
305 | fi |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
306 | preload_emacs "$name" wait |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
307 | emacsclient -s "$name" "$@" |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
308 | } |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
309 | |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
310 | export -f preload_emacs connect_emacs |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
311 | |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
312 | # Preload editor and gnus sessions for speedy initial connects. |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
313 | preload_emacs editor |
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
314 | preload_emacs gnus |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
315 `---- |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
316 |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
317 ,----[ ~/.bashrc |
83282
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
318 | alias gnus="connect_emacs gnus" |
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
319 | alias edit="connect_emacs editor" |
6f9586cdd29c
README update. (Fix identifier names in emacs background preloader example.)
Karoly Lorentey <lorentey@elte.hu>
parents:
83274
diff
changeset
|
320 | alias et="connect_emacs editor -t" |
83191
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
321 | alias e=edit |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
322 `---- |
bc4b91420ff4
README updates, including a new Tips & Tricks section
Karoly Lorentey <lorentey@elte.hu>
parents:
83190
diff
changeset
|
323 |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
324 |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
325 NEWS |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
326 ---- |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
327 |
83118
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
328 For the NEWS file: (Needs work) |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
329 |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
330 ** Support for multiple terminal devices has been added. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
331 |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
332 *** You can specify a terminal device (`tty' parameter) and a terminal |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
333 type (`tty-type' parameter) to `make-terminal-frame'. |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
334 |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
335 *** You can test for the presence of multiple terminal support by |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
336 testing for the `multi-tty' feature. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
337 |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
338 *** Emacsclient has been extended to support opening a new terminal |
83046 | 339 frame. Its behaviour has been changed to open a new Emacs frame by |
340 default. Use the -c option to get the old behavior of opening | |
341 files in the currently selected Emacs frame. | |
83045
8ca11496d25c
Changed emacsclient to open new frames by default.
Karoly Lorentey <lorentey@elte.hu>
parents:
83036
diff
changeset
|
342 |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
343 *** A make-frame-on-tty function has been added to make it easier to |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
344 create frames on new terminals. |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
345 |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
346 *** New functions: frame-tty-name, frame-tty-type for accessing |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
347 terminal parameters, and delete-tty for closing the terminal |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
348 device. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
349 |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
350 *** talk.el has been extended for multiple tty support. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
351 |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
352 |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
353 ** Support for simultaneous graphical and terminal frames has been |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
354 added. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
355 |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
356 *** The function `make-frame-on-display' now works during a terminal |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
357 session, and `make-frame-on-tty' works during a graphical session. |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
358 |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
359 *** The `window-system' variable has been made frame-local. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
360 |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
361 *** The new `initial-window-system' variable contains the |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
362 `window-system' value for the first frame. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
363 |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
364 CHANGELOG |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
365 --------- |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
366 |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
367 See arch logs. |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
368 |
83208 | 369 * * * |
370 | |
371 (The rest of this file consists of my development notes and as such it | |
372 is probably not very interesting for anyone else.) | |
373 | |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
374 THINGS TO DO |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
375 ------------ |
83035
fcf6fc349e0d
Don't hang on the tty if called from a shell script.
Karoly Lorentey <lorentey@elte.hu>
parents:
83032
diff
changeset
|
376 |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
377 ** The single-keyboard mode of MULTI_KBOARD is extremely confusing |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
378 sometimes; Emacs does not respond to stimuli from other keyboards. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
379 At least a beep or a message would be important, if the single-mode |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
380 is still required to prevent interference. (Reported by Dan |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
381 Nicolaescu.) |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
382 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
383 Update: selecting a region with the mouse enables single_kboard |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
384 under X. This is very confusing. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
385 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
386 Update: After discussions with Richard, this will be resolved by |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
387 having locked displays warn the user to wait, and introducing a |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
388 complex protocol to remotely bail out of single-kboard mode by |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
389 pressing C-g. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
390 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
391 Update: Warning the user is not trivial to implement, as Emacs has |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
392 only one echo area. Ideally the warning should not be displayed on |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
393 the display that is locking the others. Perhaps the high |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
394 probability of user confusion caused by single_kboard mode deserves |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
395 a special case in the display code. Alternatively, it might be |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
396 good enough to signal single_kboard mode by changing the modelines |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
397 or some other frame-local display element on the locked out displays. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
398 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
399 ** normal-erase-is-backspace-mode in simple.el needs to be updated for |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
400 multi-tty (rep. by Dan Waber). |
83220
fe1db7935e1a
Fix core dump in redisplay window. (Reported by Yoshiaki Kasahara.) Plus cleanups.
Karoly Lorentey <lorentey@elte.hu>
parents:
83208
diff
changeset
|
401 |
83167
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
402 ** Hunt down display-related functions in frame.el and extend them all |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
403 to accept display ids. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
404 |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
405 ** rif->flush_display_optional (NULL) calls should be replaced by a |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
406 new global function. |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
407 |
83152
632f9d4fdffb
README.multi-tty update.
Karoly Lorentey <lorentey@elte.hu>
parents:
83148
diff
changeset
|
408 ** Have a look at fatal_error_hook. |
632f9d4fdffb
README.multi-tty update.
Karoly Lorentey <lorentey@elte.hu>
parents:
83148
diff
changeset
|
409 |
83235 | 410 ** Have a look at set_frame_matrix_frame. |
411 | |
83148
33462a853808
README.multi-tty update.
Karoly Lorentey <lorentey@elte.hu>
parents:
83141
diff
changeset
|
412 ** Check if we got term-setup-hook right. |
33462a853808
README.multi-tty update.
Karoly Lorentey <lorentey@elte.hu>
parents:
83141
diff
changeset
|
413 |
83234
ad592995fd24
Trivial changes in x_create_tip_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83230
diff
changeset
|
414 ** I think tip_frame should be display-local. |
ad592995fd24
Trivial changes in x_create_tip_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83230
diff
changeset
|
415 |
ad592995fd24
Trivial changes in x_create_tip_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83230
diff
changeset
|
416 ** Check display reference count handling in x_create_tip_frame. |
ad592995fd24
Trivial changes in x_create_tip_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83230
diff
changeset
|
417 |
83105
efc02a84dfbb
Fix frame parameter handling in server.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
83103
diff
changeset
|
418 ** make-frame does not correctly handle extra parameters in its |
efc02a84dfbb
Fix frame parameter handling in server.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
83103
diff
changeset
|
419 argument: |
efc02a84dfbb
Fix frame parameter handling in server.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
83103
diff
changeset
|
420 |
efc02a84dfbb
Fix frame parameter handling in server.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
83103
diff
changeset
|
421 (frame-parameter (make-frame (list (cons 'foobar 42))) 'foobar) |
efc02a84dfbb
Fix frame parameter handling in server.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
83103
diff
changeset
|
422 => nil |
efc02a84dfbb
Fix frame parameter handling in server.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
83103
diff
changeset
|
423 |
efc02a84dfbb
Fix frame parameter handling in server.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
83103
diff
changeset
|
424 (This is likely an error in the CVS trunk.) |
efc02a84dfbb
Fix frame parameter handling in server.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
83103
diff
changeset
|
425 |
83097 | 426 ** Fix set-input-mode for multi-tty. It's a truly horrible interface; |
427 what if we'd blow it up into several separate functions (with a | |
428 compatibility definition)? | |
429 | |
83074
34a7a8f40548
Fix background-mode on terminal frames (Dan Nicolaescu).
Karoly Lorentey <lorentey@elte.hu>
parents:
83070
diff
changeset
|
430 ** The terminal customization files in term/*.el tend to change global |
34a7a8f40548
Fix background-mode on terminal frames (Dan Nicolaescu).
Karoly Lorentey <lorentey@elte.hu>
parents:
83070
diff
changeset
|
431 parameters, which may confuse Emacs with multiple displays. Change |
34a7a8f40548
Fix background-mode on terminal frames (Dan Nicolaescu).
Karoly Lorentey <lorentey@elte.hu>
parents:
83070
diff
changeset
|
432 them to tweak only frame-local settings, if possible. |
34a7a8f40548
Fix background-mode on terminal frames (Dan Nicolaescu).
Karoly Lorentey <lorentey@elte.hu>
parents:
83070
diff
changeset
|
433 |
83055 | 434 ** Dan Nicolaescu suggests that -nw should be added as an alias for -t |
435 in emacsclient. Good idea. (Alas, implementing this is not | |
436 trivial, getopt_long does not seem to support two-letter ``short'' | |
83097 | 437 options. Patches are welcome.) :-) |
83018
1465425fe2d3
Romain Francoise's and Ami Fischman's bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83014
diff
changeset
|
438 |
83055 | 439 ** Mark Plaksin suggests that emacsclient should accept the same |
440 X-related command-line arguments as Emacs. Most of the X-related | |
441 argument-handling is done in Lisp, so this should be quite easy to | |
442 implement. | |
83021
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
443 |
83076 | 444 ** Gergely Nagy suggests that C-x # should only kill the current |
445 frame, not any other emacsclient frame that may have the same file | |
446 opened for editing. I think I agree with him. | |
447 | |
83065
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
448 ** Very strange bug: visible-bell does not work on secondary |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
449 terminals in xterm and konsole. The screen does flicker a bit, |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
450 but it's so quick it isn't noticable. |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
451 |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
452 ** Clean up the frame-local variable system. I think it's ugly and |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
453 error-prone. But maybe I just haven't yet fully understood it. |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
454 |
83004
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
455 ** Move baud_rate to struct display. |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
456 |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
457 ** Implement support for starting an interactive Emacs session without |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
458 an initial frame. (The user would connect to it and open frames |
83063
404175b0a47e
README.multi-tty updates.
Karoly Lorentey <lorentey@elte.hu>
parents:
83055
diff
changeset
|
459 later, with emacsclient.) |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
460 |
83118
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
461 ** Fix Mac support (I can't do this entirely myself). Note that the |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
462 current state of Mac-specific source files in the multi-tty tree |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
463 are not useful; before starting work on Mac support, revert to |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
464 pristine, pre-multi-tty versions. |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
465 |
83118
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
466 ** Fix W32 support (I can't do this entirely myself). Note that the |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
467 current state of W32-specific source files in the multi-tty tree |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
468 are not useful; before starting work on W32 support, revert to |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
469 pristine, pre-multi-tty versions. |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
470 |
83118
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
471 ** Fix DOS support (I can't do this entirely myself). Note that the |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
472 current state of DOS-specific source files in the multi-tty tree |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
473 are not useful; before starting work on DOS support, revert to |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
474 pristine, pre-multi-tty versions. |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
475 |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
476 ** Do a grep on XXX and ?? for more issues. |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
477 |
83097 | 478 ** Understand Emacs's low-level input system (it's black magic) :-) |
479 What exactly does interrupt_input do? I tried to disable it for | |
480 raw secondary tty support, but it does not seem to do anything | |
481 useful. (Update: Look again. X unconditionally enables this, maybe | |
482 that's why raw terminal support is broken again. I really do need | |
483 to understand input.) | |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
484 |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
485 ** Maybe standard-display-table should be display-local. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
486 |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
487 DIARY OF CHANGES |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
488 ---------------- |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
489 |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
490 (ex-TODO items with explanations.) |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
491 |
83009
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
492 -- Introduce a new struct for terminal devices. |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
493 |
82990
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
494 (Done, see struct tty_output. The list of members is not yet |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
495 complete.) |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
496 |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
497 -- Change the bootstrap procedure to initialize tty_list. |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
498 |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
499 (Done, but needs review.) |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
500 |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
501 -- Change make-terminal-frame to support specifying another tty. |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
502 |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
503 (Done, new frame parameters: `tty' and `tty-type'.) |
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
504 |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
505 -- Implement support for reading from multiple terminals. |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
506 |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
507 (Done, read_avail_input tries to read from each terminal, until one |
82989
f3845715a5f6
Separate frame-local, tty-dependent parameters from tty-local parameters.
Karoly Lorentey <lorentey@elte.hu>
parents:
82988
diff
changeset
|
508 succeeds. MULTI_KBOARD is not used. Secondary terminals don't send |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
509 SIGIO!) |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
510 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
511 (Update: They do, now.) |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
512 |
82990
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
513 (Update2: After enabling X, they don't.) |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
514 |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
515 -- other-frame should cycle through the frames on the `current' |
83009
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
516 terminal only. |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
517 |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
518 (Done, by trivially modifiying next_frame and prev_frame.) |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
519 |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
520 -- Support different terminal sizes. |
83009
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
521 |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
522 (Done, no problem.) |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
523 |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
524 -- Make sure terminal resizes are handled gracefully. (Could be |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
525 problematic.) |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
526 |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
527 (Done. We don't get automatic SIGWINCH for additional ttys, |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
528 though.) |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
529 |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
530 -- Extend emacsclient to automatically open a new tty when it connects |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
531 to Emacs. |
83009
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
532 |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
533 (Done. It's an ugly hack, needs more work.) |
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
534 |
53234
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
535 -- Redisplay must refresh the topmost frame on *all* terminals, not |
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
536 just the initial terminal. |
83009
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
537 |
53234
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
538 (Done, but introduced an ugly redisplay problems. Ugh.) |
53229
33c3c7c16e13
lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
Karoly Lorentey <lorentey@elte.hu>
parents:
53228
diff
changeset
|
539 |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
540 -- Fix redisplay problems. |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
541 |
53234
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
542 (Done; it turned out that the entire Wcm structure must be moved |
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
543 inside tty_output. Why didn't I catch this earlier?) |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
544 |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
545 -- Provide a way for emacsclient to tell Emacs that the tty has been |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
546 resized. |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
547 |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
548 (Done, simply forward the SIGWINCH signal.) |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
549 |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
550 -- Each keypress should automatically select the frame corresponding |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
551 to the terminal that it was coming from. This means that Emacs |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
552 must know from which terminal the last keyboard event came from. |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
553 |
53234
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
554 (Done, it was quite simple, the input event system already |
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
555 supported multiple frames.) |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
556 |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
557 -- Fix SIGIO issue with secondary terminals. |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
558 |
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
559 (Done, emacsclient signals Emacs after writing to the proxy pseudo |
53234
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
560 terminal. Note that this means that multi-tty does not work with |
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
561 raw ttys!) |
53233
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
562 |
53341 | 563 (Update: This is bullshit. There is a read_input_waiting function, |
564 extend that somehow.) | |
565 | |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
566 (Update of update: The first update was not right either, extending |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
567 read_input_waiting was not necessary. Secondary ttys do seem to |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
568 send signals on input.) |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
569 |
82990
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
570 (Update^3: Not any more.) |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
571 |
53233
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
572 -- Make make-terminal-frame look up the `tty' and `tty-type' frame |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
573 parameters from the currently selected terminal before the global |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
574 default. |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
575 |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
576 (Done.) |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
577 |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
578 -- Put all cached terminal escape sequences into struct tty_output. |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
579 Currently, they are still stored in global variables, so we don't |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
580 really support multiple terminal types. |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
581 |
53234
f3b94bd26d21
Cosmetic changes in README.multi-tty
Karoly Lorentey <lorentey@elte.hu>
parents:
53233
diff
changeset
|
582 (Done. It was not fun.) |
53233
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
583 |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
584 -- Implement sane error handling after initialization. (Currently |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
585 emacs exits if you specify a bad terminal type.) The helpful error |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
586 messages must still be provided when Emacs starts. |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
587 |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
588 (Done.) |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
589 |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
590 -- Implement terminal deletion, i.e., deleting local frames, closing |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
591 the tty device and restoring its previous state without exiting |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
592 Emacs. |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
593 |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
594 (Done, but at the moment only called when an error happens during |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
595 initialization. There is a memory corruption error around this |
82990
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
596 somewhere.) (Update: now it is fully enabled.) |
53233
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
597 |
53236
e77dcb66ec84
Implemented automatic deletion of terminals.
Karoly Lorentey <lorentey@elte.hu>
parents:
53235
diff
changeset
|
598 -- Implement automatic deletion of terminals when the last frame on |
e77dcb66ec84
Implemented automatic deletion of terminals.
Karoly Lorentey <lorentey@elte.hu>
parents:
53235
diff
changeset
|
599 that terminal is closed. |
e77dcb66ec84
Implemented automatic deletion of terminals.
Karoly Lorentey <lorentey@elte.hu>
parents:
53235
diff
changeset
|
600 |
e77dcb66ec84
Implemented automatic deletion of terminals.
Karoly Lorentey <lorentey@elte.hu>
parents:
53235
diff
changeset
|
601 (Done.) |
e77dcb66ec84
Implemented automatic deletion of terminals.
Karoly Lorentey <lorentey@elte.hu>
parents:
53235
diff
changeset
|
602 |
53341 | 603 -- Restore tty screen after closing the terminal. |
604 | |
605 (Done, we do the same as Emacs 21.2 for all terminals.) | |
606 | |
607 -- 'TERM=dumb src/emacs' does not restore the terminal state. | |
83009
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
608 |
53341 | 609 (Done.) |
53233
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
610 |
53343
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
611 -- C-g should work on secondary terminals. |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
612 |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
613 (Done, but the binding is not configurable.) |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
614 |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
615 -- Deal with SIGHUP in Emacs and in emacsclient. (After this, the |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
616 server-frames may be removed from server.el.) |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
617 |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
618 (Done, nothing to do. It seems that Emacs does not receive SIGHUP |
82990
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
619 from secondary ttys, which is actually a good thing.) (Update: I |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
620 think it would be a bad idea to remove server-frames.) |
53343
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
621 |
82990
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
622 -- Change emacsclient/server.el to support the -t argument better, |
53343
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
623 i.e. automatically close the socket when the frame is closed. |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
624 |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
625 (Seems to be working OK.) |
56e4b7166995
Make sure secondary frames are deleted when emacsclient quits.
Karoly Lorentey <lorentey@elte.hu>
parents:
53341
diff
changeset
|
626 |
82987
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
627 -- Fix mysterious memory corruption error with tty deletion. To |
53233
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
628 trigger it, try the following shell command: |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
629 |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
630 while true; do TERM=no-such-terminal-definition emacsclient -h; done |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
631 |
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
632 Emacs usually dumps core after a few dozen iterations. (The bug |
83008
040dd41ed7d0
Hookified termcap devices, added bootstrap display device, plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83004
diff
changeset
|
633 seems to be related to the xfreeing or bzeroing of |
82986
02a346f99eaf
Undo patch-23. I need a coffee.
Karoly Lorentey <lorentey@elte.hu>
parents:
82985
diff
changeset
|
634 tty_output.Wcm. Maybe there are outside references to struct Wcm? |
02a346f99eaf
Undo patch-23. I need a coffee.
Karoly Lorentey <lorentey@elte.hu>
parents:
82985
diff
changeset
|
635 Why were these vars collected into a struct before multi-tty |
02a346f99eaf
Undo patch-23. I need a coffee.
Karoly Lorentey <lorentey@elte.hu>
parents:
82985
diff
changeset
|
636 support?) |
53233
fe9b37bee5f7
Fully eliminated global tty state variables.
Karoly Lorentey <lorentey@elte.hu>
parents:
53232
diff
changeset
|
637 |
82987
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
638 (Done. Whew. It turned out that the problem had nothing to do |
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
639 with hypothetical external references to Wcm, or any other |
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
640 tty_output component; it was simply that delete_tty closed the |
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
641 filehandles of secondary ttys twice, resulting in fclose doubly |
83008
040dd41ed7d0
Hookified termcap devices, added bootstrap display device, plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83004
diff
changeset
|
642 freeing memory. Utterly trivial matter. I love the C's memory |
82987
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
643 management, it puts hair on your chest.) |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
644 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
645 -- Support raw secondary terminals. (Note that SIGIO works only on |
83008
040dd41ed7d0
Hookified termcap devices, added bootstrap display device, plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83004
diff
changeset
|
646 the controlling terminal.) Hint: extend read_input_waiting for |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
647 multiple ttys and hopefully this will be fixed. |
82987
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
648 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
649 (Done, it seems to have been working already for some time. It |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
650 seems F_SETOWN does work, after all. Not sure what made it fail |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
651 earlier, but it seems to be fixed (there were several changes |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
652 around request_sigio, maybe one of them did it). |
83008
040dd41ed7d0
Hookified termcap devices, added bootstrap display device, plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83004
diff
changeset
|
653 read_input_waiting is only used in sys_select, don't change |
82990
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
654 it.) (Update: After adding X support, it's broken again.) |
83097 | 655 (Update^2: No it isn't.) :-) |
82983
21720c013048
Don't compile sys_select on systems that don't need it.
Karoly Lorentey <lorentey@elte.hu>
parents:
53343
diff
changeset
|
656 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
657 -- Find out why does Emacs abort when it wants to close its |
53341 | 658 controlling tty. Hint: chan_process[] array. Hey, maybe |
82987
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
659 noninterrupt-IO would work, too? Update: no, there is no process |
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
660 for stdin/out. |
53237
4f33c6fc9a1f
README.multi-tty updates.
Karoly Lorentey <lorentey@elte.hu>
parents:
53236
diff
changeset
|
661 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
662 (Done. Added add/delete_keyboard_wait_descriptor to |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
663 term_init/delete_tty. The hint was right, in a way.) |
53232
22aaf1e5fbe6
Full support for multiple terminal I/O (with some rough edges).
Karoly Lorentey <lorentey@elte.hu>
parents:
53229
diff
changeset
|
664 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
665 -- Issue with SIGIO: it needs to be disabled during redisplay. See if |
83008
040dd41ed7d0
Hookified termcap devices, added bootstrap display device, plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83004
diff
changeset
|
666 fcntl kernel behaviour could be emulated by emacsclient. |
53341 | 667 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
668 (Done. Simply disabled the SIGIO emulation hack in emacsclient.) |
83097 | 669 (Update: it was added back.) (Update^2: and removed again.) |
82987
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
670 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
671 -- server.el: There are issues with saving files in buffers of closed |
82987
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
672 clients. Try editing a file with emacsclient -f, and (without |
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
673 saving it) do a delete-frame. The frame is closed without |
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
674 question, and a surprising confirmation prompt appears in another |
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
675 frame. |
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
676 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
677 (Done. delete-frame now asks for confirmation if it still has |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
678 pending buffers, and modified buffers don't seem to be deleted.) |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
679 |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
680 -- emacsclient.el, server.el: Handle eval or file open errors when |
82990
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
681 doing -t. |
82987
1682917e56b4
Major bugfixes and slight enhancements.
Karoly Lorentey <lorentey@elte.hu>
parents:
82986
diff
changeset
|
682 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
683 (Done.) |
82985
8d7be2534cbc
Delete server frames on server restart.
Karoly Lorentey <lorentey@elte.hu>
parents:
82983
diff
changeset
|
684 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
685 -- Make parts of struct tty_output accessible from Lisp. The device |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
686 name and the type is sufficient. |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
687 |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
688 (Done, see frame-tty-name and frame-tty-type.) |
82985
8d7be2534cbc
Delete server frames on server restart.
Karoly Lorentey <lorentey@elte.hu>
parents:
82983
diff
changeset
|
689 |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
690 -- Export delete_tty to the Lisp environment, for emacsclient. |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
691 |
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
692 (Done, see delete-tty.) |
82985
8d7be2534cbc
Delete server frames on server restart.
Karoly Lorentey <lorentey@elte.hu>
parents:
82983
diff
changeset
|
693 |
82990
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
694 -- Get rid of the accessor macros in termchar.h, or define macros for |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
695 all members. |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
696 |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
697 (Done.) |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
698 |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
699 -- Move device-specific parameters (like costs) commonly used by |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
700 device backends to a common, device-dependent structure. |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
701 |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
702 (Done. See struct display_method in termhooks.h.) |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
703 |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
704 -- Fix X support. |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
705 |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
706 (Done. Well, it seems to be working.) |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
707 |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
708 -- Allow simultaneous X and tty frames. (Handling input could be |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
709 tricky. Or maybe not.) |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
710 |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
711 (Done. Allowed, that is. It is currently extremely unstable, to |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
712 the point of being unusable. The rif variable causes constant |
2ecd1f669db9
Fixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82989
diff
changeset
|
713 core dumps. Handling input is indeed tricky.) |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
714 |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
715 -- Rewrite multi-tty input in terms of MULTI_KBOARD. |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
716 |
82991
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
717 (Done. In fact, there was no need to rewrite anything, I just |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
718 added a kboard member to tty_display_info, and initialized the |
2b26656ff804
MULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey <lorentey@elte.hu>
parents:
82990
diff
changeset
|
719 frame's kboard from there.) |
82988
f82e3a6f5ccb
A few more bugfixes and new features.
Karoly Lorentey <lorentey@elte.hu>
parents:
82987
diff
changeset
|
720 |
82992
5de4189e659d
Got rid of the rif (window-based redisplay interface) global variable.
Karoly Lorentey <lorentey@elte.hu>
parents:
82991
diff
changeset
|
721 -- Fix rif issue with X-tty combo sessions. IMHO the best thing to do |
5de4189e659d
Got rid of the rif (window-based redisplay interface) global variable.
Karoly Lorentey <lorentey@elte.hu>
parents:
82991
diff
changeset
|
722 is to get rid of that global variable (and use the value value in |
5de4189e659d
Got rid of the rif (window-based redisplay interface) global variable.
Karoly Lorentey <lorentey@elte.hu>
parents:
82991
diff
changeset
|
723 display_method, which is guaranteed to be correct). |
5de4189e659d
Got rid of the rif (window-based redisplay interface) global variable.
Karoly Lorentey <lorentey@elte.hu>
parents:
82991
diff
changeset
|
724 |
5de4189e659d
Got rid of the rif (window-based redisplay interface) global variable.
Karoly Lorentey <lorentey@elte.hu>
parents:
82991
diff
changeset
|
725 (Done, did exactly that. Core dumps during combo sessions became |
5de4189e659d
Got rid of the rif (window-based redisplay interface) global variable.
Karoly Lorentey <lorentey@elte.hu>
parents:
82991
diff
changeset
|
726 much rarer. In fact, I have not yet met a single one.) |
5de4189e659d
Got rid of the rif (window-based redisplay interface) global variable.
Karoly Lorentey <lorentey@elte.hu>
parents:
82991
diff
changeset
|
727 |
82997
af2d6b850383
Added multi-tty support for talk.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
82995
diff
changeset
|
728 -- Add multi-tty support to talk.el. |
af2d6b850383
Added multi-tty support for talk.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
82995
diff
changeset
|
729 |
af2d6b850383
Added multi-tty support for talk.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
82995
diff
changeset
|
730 (Done.) |
af2d6b850383
Added multi-tty support for talk.el.
Karoly Lorentey <lorentey@elte.hu>
parents:
82995
diff
changeset
|
731 |
83004
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
732 -- Clean up the source of emacsclient. It is a mess. |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
733 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
734 (Done, eliminated stupid proxy-pty kludge.) |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
735 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
736 -- Fix faces on tty frames during X-tty combo sessions. There is an |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
737 init_frame_faces call in init_sys_modes, see if there is a problem |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
738 with it. |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
739 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
740 (Done, there was a stupid mistake in |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
741 Ftty_supports_face_attributes_p. Colors are broken, though.) |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
742 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
743 -- C-x 5 2, C-x 5 o, C-x 5 0 on an emacsclient frame unexpectedly |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
744 exits emacsclient. This is a result of trying to be clever with |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
745 delete-frame-functions. |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
746 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
747 (Fixed, added delete-tty-after-functions, and changed server.el to |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
748 use it.) |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
749 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
750 -- Something with (maybe) multi-keyboard support broke function keys |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
751 and arrows on ttys during X+tty combo sessions. Debug this. |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
752 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
753 (I can't reproduce it, maybe the terminal type was wrong.) |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
754 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
755 -- Fix input from raw ttys (again). |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
756 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
757 (Now it seems to work all right.) |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
758 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
759 -- During an X-tty combo session, a (message "Hello") from a tty frame |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
760 goes to the X frame. Fix this. |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
761 |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
762 (Done. There was a safeguard against writing to the initial |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
763 terminal frame during bootstrap which prevented echo_area_display |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
764 from working correctly on a tty frame during a combo session.) |
7900111db01c
Converted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
82997
diff
changeset
|
765 |
83009
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
766 -- If there are no frames on its controlling terminal, Emacs should |
83097 | 767 exit if the user presses C-c there. |
83009
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
768 |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
769 (Done, as far as possible. See the SIGTERM comment in |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
770 interrupt_signal on why this seems to be impossible to solve this |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
771 in general.) |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
772 |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
773 -- During an X session, Emacs seems to read from stdin. Also, Emacs |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
774 fails to start without a controlling tty. |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
775 |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
776 (Fixed by replacing the troublesome termcap display with a dummy |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
777 bootstrap display during bootstrap. |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
778 |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
779 -- Do tty output through struct display, like graphical display |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
780 backends. |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
781 |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
782 (Done.) |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
783 |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
784 -- Define an output_initial value for output_method for the initial |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
785 frame that is dumped with Emacs. Checking for this frame (e.g. in |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
786 cmd_error_internal) is ugly. |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
787 |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
788 (Done, broking interactive temacs.) |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
789 |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
790 -- The command `emacsclient -t -e '(delete-frame)'' fails to exit. |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
791 |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
792 (Fixed.) |
b2b37c85b00a
Numerous bugfixes and small improvements.
Karoly Lorentey <lorentey@elte.hu>
parents:
83008
diff
changeset
|
793 |
83012
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
794 -- frame-creation-function should always create a frame that is on the |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
795 same display as the selected frame. Maybe frame-creation-function |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
796 should simply be removed and make-frame changed to do the right |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
797 thing. |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
798 |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
799 (Done, with a nice hack. frame-creation-function is now frame-local.) |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
800 |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
801 -- Fix C-g on raw ttys. |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
802 |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
803 (Done. I disabled the interrupt/quit keys on all secondary |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
804 terminals, so Emacs sees C-g as normal input. This looks like an |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
805 overkill, because emacsclient has extra code to pass SIGINT to |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
806 Emacs, so C-g should remain the interrupt/quit key on emacsclient |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
807 frames. See the next entry why implementing this distinction would |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
808 be a bad idea.) |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
809 |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
810 -- Make sure C-g goes to the right frame with ttys. This is hard, as |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
811 SIGINT doesn't have a tty parameter. :-( |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
812 |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
813 (Done, the previous change fixes this as a pleasant side effect.) |
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
814 |
83013
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
815 -- I have seen a case when Emacs with multiple ttys fell into a loop |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
816 eating 100% of CPU time. Strace showed this loop: |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
817 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
818 getpid() = 30284 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
819 kill(30284, SIGIO) = 0 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
820 --- SIGIO (I/O possible) @ 0 (0) --- |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
821 ioctl(6, FIONREAD, [0]) = -1 EIO (Input/output error) |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
822 ioctl(5, FIONREAD, [0]) = -1 EIO (Input/output error) |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
823 ioctl(0, FIONREAD, [0]) = 0 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
824 sigreturn() = ? (mask now []) |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
825 gettimeofday({1072842297, 747760}, NULL) = 0 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
826 gettimeofday({1072842297, 747806}, NULL) = 0 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
827 select(9, [0 3 5 6], NULL, NULL, {0, 0}) = 2 (in [5 6], left {0, 0}) |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
828 select(9, [0 3 5 6], NULL, NULL, {0, 0}) = 2 (in [5 6], left {0, 0}) |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
829 gettimeofday({1072842297, 748245}, NULL) = 0 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
830 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
831 I have seen something similar with a single X frame, but have not |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
832 been able to reproduce it for debugging. |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
833 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
834 Update: This may have been caused by checking for nread != 0 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
835 instead of nread > 0 after calling read_socket_hook in |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
836 read_avail_input. |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
837 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
838 (Fixed. This was caused by unconditionally including stdin in |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
839 input_wait_mask in init_process. The select call in |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
840 wait_reading_process_input always returned immediately, indicating |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
841 that there is pending input from stdin, which nobody read. |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
842 |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
843 Note that the above strace output seems to be an unrelated but |
e77d1a63471b
Don't select on stdin unconditionally.
Karoly Lorentey <lorentey@elte.hu>
parents:
83012
diff
changeset
|
844 similar bug. I think that is now fixed.) |
83012
4aa172a45af1
Fix C-g handling with multiple ttys.
Karoly Lorentey <lorentey@elte.hu>
parents:
83009
diff
changeset
|
845 |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
846 -- Exiting Emacs while there are emacsclient frames doesn't restore the |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
847 ttys to their default states. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
848 |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
849 (This seems to be fixed by some previous change.) |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
850 |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
851 -- Allow opening an X session after -nw. |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
852 |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
853 (Done.) |
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
854 |
83021
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
855 -- Fix color handling during tty+X combo sessions. (It seems that tty |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
856 sessions automatically convert the face colors to terminal colors |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
857 when the face is loaded. This conversion must happen instead on |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
858 the fly in write_glyphs, which might be problematic, as color |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
859 approximation is currently done in lisp (term/tty-colors.el).) |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
860 (Update: hm, colors seem to work fine if I start emacs with -nw and |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
861 then create an X frame. Maybe it's just a small buglet somewhere.) |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
862 |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
863 (Seems to be fixed. The problem was in startup.el, it did not |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
864 initialize tty colors when the initial window system was |
32bf8e7cc0c2
Fixed tty faces during combo sessions. Plus other assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83020
diff
changeset
|
865 graphical.) |
83014
f5cadabb36dd
Support for opening X frames from a tty session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83013
diff
changeset
|
866 |
83023
6ce586a7243e
Set the keyboard of the initial frame correctly.
Karoly Lorentey <lorentey@elte.hu>
parents:
83021
diff
changeset
|
867 -- emacs -nw --eval '(y-or-n-p "Foobar")' segfaults. (Reported by |
6ce586a7243e
Set the keyboard of the initial frame correctly.
Karoly Lorentey <lorentey@elte.hu>
parents:
83021
diff
changeset
|
868 Romain Francoise) |
6ce586a7243e
Set the keyboard of the initial frame correctly.
Karoly Lorentey <lorentey@elte.hu>
parents:
83021
diff
changeset
|
869 |
6ce586a7243e
Set the keyboard of the initial frame correctly.
Karoly Lorentey <lorentey@elte.hu>
parents:
83021
diff
changeset
|
870 (Fixed, there was a keyboard initialization problem.) |
6ce586a7243e
Set the keyboard of the initial frame correctly.
Karoly Lorentey <lorentey@elte.hu>
parents:
83021
diff
changeset
|
871 |
83024
e66f69c4f2c5
Fixed interactive temacs.
Karoly Lorentey <lorentey@elte.hu>
parents:
83023
diff
changeset
|
872 -- Fix interactive use of temacs. There are face-related SEGVs, most |
e66f69c4f2c5
Fixed interactive temacs.
Karoly Lorentey <lorentey@elte.hu>
parents:
83023
diff
changeset
|
873 likely because of changes in realize_default_face, realize_face. |
e66f69c4f2c5
Fixed interactive temacs.
Karoly Lorentey <lorentey@elte.hu>
parents:
83023
diff
changeset
|
874 |
e66f69c4f2c5
Fixed interactive temacs.
Karoly Lorentey <lorentey@elte.hu>
parents:
83023
diff
changeset
|
875 (Fixed.) |
e66f69c4f2c5
Fixed interactive temacs.
Karoly Lorentey <lorentey@elte.hu>
parents:
83023
diff
changeset
|
876 |
83028
bf5b5fb49420
Don't exit Emacs when the X display is closed during a tty-X combo session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83024
diff
changeset
|
877 -- Don't exit Emacs when the last X connection fails during a |
bf5b5fb49420
Don't exit Emacs when the X display is closed during a tty-X combo session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83024
diff
changeset
|
878 multi-display session. |
bf5b5fb49420
Don't exit Emacs when the X display is closed during a tty-X combo session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83024
diff
changeset
|
879 |
bf5b5fb49420
Don't exit Emacs when the X display is closed during a tty-X combo session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83024
diff
changeset
|
880 (Fixed.) |
bf5b5fb49420
Don't exit Emacs when the X display is closed during a tty-X combo session.
Karoly Lorentey <lorentey@elte.hu>
parents:
83024
diff
changeset
|
881 |
83032
b8237c556f0e
Fix the case when emacsclient is run on Emacs's controlling tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83028
diff
changeset
|
882 -- Dan Nicolaescu noticed that starting emacsclient on the same |
b8237c556f0e
Fix the case when emacsclient is run on Emacs's controlling tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83028
diff
changeset
|
883 terminal device that is the controlling tty of the Emacs process |
b8237c556f0e
Fix the case when emacsclient is run on Emacs's controlling tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83028
diff
changeset
|
884 gives unexpected results. |
b8237c556f0e
Fix the case when emacsclient is run on Emacs's controlling tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83028
diff
changeset
|
885 |
b8237c556f0e
Fix the case when emacsclient is run on Emacs's controlling tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83028
diff
changeset
|
886 (Fixed.) |
b8237c556f0e
Fix the case when emacsclient is run on Emacs's controlling tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83028
diff
changeset
|
887 |
83035
fcf6fc349e0d
Don't hang on the tty if called from a shell script.
Karoly Lorentey <lorentey@elte.hu>
parents:
83032
diff
changeset
|
888 -- Istvan Marko reported that Emacs hang on ttys if it was started |
fcf6fc349e0d
Don't hang on the tty if called from a shell script.
Karoly Lorentey <lorentey@elte.hu>
parents:
83032
diff
changeset
|
889 from a shell script. |
fcf6fc349e0d
Don't hang on the tty if called from a shell script.
Karoly Lorentey <lorentey@elte.hu>
parents:
83032
diff
changeset
|
890 |
fcf6fc349e0d
Don't hang on the tty if called from a shell script.
Karoly Lorentey <lorentey@elte.hu>
parents:
83032
diff
changeset
|
891 (Fixed. There was a bug in the multi-tty version of |
fcf6fc349e0d
Don't hang on the tty if called from a shell script.
Karoly Lorentey <lorentey@elte.hu>
parents:
83032
diff
changeset
|
892 narrow_foreground_group. tcsetpgrp blocks if it is called from a |
fcf6fc349e0d
Don't hang on the tty if called from a shell script.
Karoly Lorentey <lorentey@elte.hu>
parents:
83032
diff
changeset
|
893 process that is not in the same process group as the tty.) |
fcf6fc349e0d
Don't hang on the tty if called from a shell script.
Karoly Lorentey <lorentey@elte.hu>
parents:
83032
diff
changeset
|
894 |
83064
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
895 -- emacsclient -t from an Emacs term buffer does not work, complains |
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
896 about face problems. This can even lock up Emacs (if the recursive |
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
897 frame sets single_kboard). Update: the face problems are caused by |
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
898 bugs in term.el, not in multi-tty. The lockup is caused by |
83097 | 899 single_kboard mode, and is not easily resolvable. The best thing to |
83064
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
900 do is to simply refuse to create a tty frame of type `eterm'. |
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
901 |
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
902 (Fixed, changed emacsclient to check for TERM=eterm. The face |
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
903 complaints seem to be caused by bugs in term.el; they are not |
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
904 related to multi-tty.) |
e7e9448cb3a0
Make emacsclient refuse to create a frame inside an Emacs term buffer.
Karoly Lorentey <lorentey@elte.hu>
parents:
83063
diff
changeset
|
905 |
83065
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
906 -- Find out the best way to support suspending Emacs with multiple |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
907 ttys. My guess: disable it on the controlling tty, but from other |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
908 ttys pass it on to emacsclient somehow. (It is (I hope) trivial to |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
909 extend emacsclient to handle suspend/resume. A `kill -STOP' almost |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
910 works right now.) |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
911 |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
912 (Done. I needed to play with signal handling and the server |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
913 protocol a bit to make emacsclient behave as a normal UNIX program |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
914 wrt foreground/background process groups.) |
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
915 |
83069 | 916 -- There is a flicker during the startup of `emacs -nw'; it's as if |
917 the terminal is initialized, reset and then initialialized again. | |
918 Debug this. (Hint: narrow_foreground_group is called twice during | |
919 startup.) | |
920 | |
921 (This is gone.) | |
922 | |
83084
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
923 -- Robert Chassell has found serious copy-paste bugs with the |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
924 multi-tty branch. There seem to be redisplay bugs while copying |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
925 from X to a terminal frame. Copying accented characters do not |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
926 work for me. |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
927 |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
928 (Patch-124 should fix this, by changing the interprogram-*-function |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
929 variables to be frame-local, as suggested by Mark Plaksin |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
930 (thanks!). I think that the redisplay bugs are in fact not bugs, |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
931 but delays caused by single_kboard --> perhaps MULTI_KBOARD should |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
932 be removed.) |
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
933 |
83118
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
934 -- frame-creation-function was removed, which might be a bad idea. |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
935 Think up a compatible solution. |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
936 |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
937 (It was an internal interface that may be changed when necessary.) |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
938 |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
939 -- Change Lisp code not to (getenv "TERM"); use the `tty-type' frame |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
940 parameter or the frame-tty-type function instead. (M-x tags-search |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
941 "TERM" helps with this.) Update: Actually, all getenv invocations |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
942 should be checked for multi-tty compatibility, and an interface |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
943 must be implemented to get the remote client's environment. |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
944 |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
945 (Done. Only getenv calls in lisp/term/*.el were changed; other |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
946 calls should be mostly left as they are.) |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
947 |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
948 -- Add an elaborate mechanism for display-local variables. (There are |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
949 already a few of these; search for `terminal-local' in the Elisp |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
950 manual.) |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
951 |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
952 (Not needed. Display-local variables could be emulated by |
7652900ea029
Fixed environment variable handling during terminal initialization.
Karoly Lorentey <lorentey@elte.hu>
parents:
83111
diff
changeset
|
953 frame-local variables.) |
83084
0d3eea319893
Fix cut'n'paste during a multi-display session (Mark Plaksin, Robert Chassell).
Karoly Lorentey <lorentey@elte.hu>
parents:
83076
diff
changeset
|
954 |
83132
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
955 -- Emacs assumes that all terminal frames have the same locale |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
956 settings as Emacs itself. This may lead to bogus results in a |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
957 multi-locale setup. (E.g., while logging in from a remote client |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
958 with a different locale.) |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
959 (Update after new bugreport by Friedrich Delgado Friedrichs: |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
960 (at least) the structs terminal_coding and keyboard_coding in |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
961 coding.c must be moved to struct display, and the Lisp interface |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
962 [set-]keyboard-coding-system must be adapted for the change.) |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
963 |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
964 (Fixed. Emacs now uses the locale settings as seen by the |
f982df4459a4
Update README.multi-tty.
Karoly Lorentey <lorentey@elte.hu>
parents:
83125
diff
changeset
|
965 emacsclient process for server tty frames.) |
83065
a871be7b26a5
Implemented suspending of emacsclient frames.
Karoly Lorentey <lorentey@elte.hu>
parents:
83064
diff
changeset
|
966 |
83167
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
967 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
968 -- Make `struct display' accessible to Lisp programs. Accessor functions: |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
969 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
970 (displayp OBJECT): Returns t if OBJECT is a display. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
971 => Implemented as display-live-p. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
972 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
973 (display-list): Returns list of currently active displays. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
974 => Implemented. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
975 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
976 (selected-display): Returns the display object of the selected frame. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
977 => Not strictly necessary, but implemented anyway. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
978 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
979 (frame-display FRAME): Returns the display object of FRAME. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
980 => Implemented. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
981 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
982 (display-frames DISPLAY): Returns a list of frames on DISPLAY. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
983 => Already implemented, see frames-on-display-list. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
984 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
985 (display-type DISPLAY): Returns the type of DISPLAY, as a |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
986 symbol. (See `framep'.) |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
987 => Implemented as display-live-p. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
988 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
989 (display-device DISPLAY): Returns the name of the device that |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
990 DISPLAY uses, as a string. (E.g: "/dev/pts/16", or |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
991 ":0.0") |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
992 => Implemented as display-name. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
993 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
994 etc. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
995 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
996 See next issue why this is necessary. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
997 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
998 (Update: The consensus on emacs-devel seems to be to do this via |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
999 integer identifiers. That's fine by me.) |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1000 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1001 (Done.) |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1002 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1003 -- The following needs to be supported: |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1004 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1005 $ emacsclient -t |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1006 C-z |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1007 $ emacsclient -t |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1008 (This fails now.) |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1009 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1010 The cleanest way to solve this is to allow multiple displays on the |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1011 same terminal device; each new emacsclient process should create |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1012 its own display. As displays are currently identified by their |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1013 device names, this is not possible until struct display becomes |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1014 accessible as a Lisp-level object. |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1015 |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1016 (Done.) |
69ebc75cb461
Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
Karoly Lorentey <lorentey@elte.hu>
parents:
83161
diff
changeset
|
1017 |
83230
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
1018 -- Miles Bader suggests that C-x C-c on an emacsclient frame should |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
1019 only close the frame, not exit the entire Emacs session. Update: |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
1020 see above for a function that does this. Maybe this should be the |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
1021 new default? |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
1022 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
1023 (Done. This is the new default. No complaints so far.) |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
1024 |
d8738586aaec
Remove remaining references to updating_frame.
Karoly Lorentey <lorentey@elte.hu>
parents:
83220
diff
changeset
|
1025 |
53226
dd3018b4785b
Implemented multiple tty support.
Karoly Lorentey <lorentey@elte.hu>
parents:
diff
changeset
|
1026 ;;; arch-tag: 8da1619e-2e79-41a8-9ac9-a0485daad17d |