comparison lisp/ChangeLog @ 83716:a73440d2f146 merge-multi-tty-to-trunk

Merge multi-tty branch Revision: emacs@sv.gnu.org/emacs--devo--0--patch-866
author Miles Bader <miles@gnu.org>
date Wed, 29 Aug 2007 05:28:10 +0000
parents ed8435ec5652 c3228e91eb9e
children 9b13b76c57fb
comparison
equal deleted inserted replaced
82950:ed8435ec5652 83716:a73440d2f146
1 2007-08-29 Juri Linkov <juri@jurta.org>
2
3 * loadup.el: Add "button" loading after "faces" and move "startup"
4 to load after "button".
5
6 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
7
8 * loadup.el: Load term/mac-win on a Mac using Carbon.
9
10 * term/mac-win.el: Provide mac-win.
11 (mac-initialized): New variable.
12 (mac-initialize-window-system): New function. Move global setup
13 here.
14 (handle-args-function-alist, frame-creation-function-alist):
15 (window-system-initialization-alist): Add mac entries.
16 (x-setup-function-keys): New function containing all the
17 top level function key definitions.
18
19 * term/x-win.el (x-menu-bar-open): Use accelerate-menu.
20
21 * env.el (read-envvar-name): Don't consider the environment frame
22 param.
23
24 * env.el (setenv):
25 * frame.el (frame-initialize, make-frame):
26 * faces.el (tty-set-up-initial-frame-faces):
27 * server.el (server-process-filter): Set
28 display-environment-variable and term-environment-variable.
29
30 * server.el (server-process-filter): Set COLORFGBG and COLORTERM.
31
32 2007-08-29 Jason Rumney <jasonr@gnu.org>
33
34 * loadup.el: Only load term/x-win when X is compiled in.
35 Load term/w32-win and dependencies on windows-nt.
36
37 * term/w32-win.el: Reorder to match x-win.el more closely.
38 Provide w32-win. Don't throw error when global window-system not
39 w32.
40 (internal-face-interactive): Remove obsolete function.
41 (x-setup-function-keys): Use local-function-key-map.
42 (w32-initialized): New variable.
43 (w32-initialize-window-system): Set it.
44 Move more global setup here.
45 (x-setup-function-keys): New function.
46 (w32-initialize-window-system): Move non function key global setup
47 here.
48 (x-cut-buffer-max): Remove.
49 (w32-initialize-window-system): New function.
50 (handle-args-function-alist, frame-creation-function-alist):
51 (window-system-initialization-alist): Add w32 entries.
52
53 2007-08-29 David Kastrup <dak@gnu.org>
54
55 * env.el (getenv): Pass frame to getenv-internal.
56
57 2007-08-29 Karoly Lorentey <lorentey@elte.hu>
58
59 * loadup.el: Delay loading env; mule-conf gets confused by cl
60 during bootstrap. Also load termdev and term/x-win.
61
62 * bindings.el (mode-line-client): New variable.
63 (help-echo): Add it to the default mode-line format.
64
65 * cus-start.el: Remove bogus window-system reference from GTK test.
66
67 * ebrowse.el (ebrowse-electric-list-mode-map)
68 (ebrowse-electric-position-mode-map):
69 * ebuff-menu.el (electric-buffer-menu-mode-map):
70 * echistory.el (electric-history-map): Bind C-z to `suspend-frame',
71 not `suspend-emacs'.
72
73 * ediff-wind.el (ediff-setup-windows-automatic): New function.
74 (ediff-window-setup-function): Use it as default.
75
76 * files.el (save-buffers-kill-terminal): New function.
77 (ctl-x-map): Change binding of C-x C-c to save-buffers-kill-terminal.
78
79 * font-lock.el (lisp-font-lock-keywords-2): Add `let-environment'
80 and `with-selected-frame'.
81
82 * help-fns.el (describe-variable): Describe frame-local variables
83 correctly.
84
85 * simple.el (normal-erase-is-backspace-mode): Rewrite for multiple
86 display support.
87 (normal-erase-is-backspace-setup-frame): New function.
88
89 * subr.el (with-selected-frame): New function.
90 (read-quoted-char): Use terminal-local binding of
91 local-function-key-map instead of function-key-map.
92
93 * talk.el (talk): New function.
94 (talk-handle-delete-frame): New function.
95 (talk-add-display): Open a new frame only if FRAME was not a frame.
96
97 * termdev.el: New file.
98
99 * menu-bar.el (menu-bar-open): New function. Bind it to f10.
100 * term/x-win.el: Don't bind f10.
101 * tmm.el: Remove autoload binding for f10.
102
103 * international/encoded-kb.el (encoded-kbd-setup-display): Use
104 `set-input-meta-mode'. Fix broken condition before set-input-mode.
105 Store the saved input method as a terminal parameter. Add keymap
106 parameter. Use it instead of changing key-translation-map directly.
107 (saved-key-translation-map, encoded-kbd-mode, saved-input-mode):
108 Remove.
109 (encoded-kbd-setup-display): New function.
110
111 * international/mule-cmds.el (set-locale-environment): Fix getenv
112 call. Use save-buffers-kill-terminal. Ignore window-system; always
113 set the keyboard coding system. Add DISPLAY parameter.
114 (set-display-table-and-terminal-coding-system): Add DISPLAY
115 parameter. Pass it to set-terminal-coding-system.
116
117 * international/mule.el (keyboard-coding-system): Test for
118 encoded-kbd-setup-display, not encoded-kbd-mode.
119 (set-terminal-coding-system, set-keyboard-coding-system): Add
120 DISPLAY parameter.
121 (set-keyboard-coding-system): Use encoded-kbd-setup-display.
122
123 * term/README: Update.
124
125 * term/linux.el (terminal-init-linux): Use `set-input-meta-mode'.
126
127 * term/x-win.el (x-setup-function-keys): New function. Move
128 function-key-map tweaks here. Protect against multiple calls on
129 the same terminal. Use terminal-local binding of
130 local-function-key-map instead of function-key-map.
131 (x-initialize-window-system): Make a copy of pure list. Pass a
132 frame getenv.
133
134 * term/vt200.el, term/vt201.el, term/vt220.el, term/vt240.el:
135 * term/vt300.el, term/vt320.el, term/vt400.el, term/vt420.el:
136 * term/AT386.el, term/internal.el, term/iris-ansi.el, term/lk201.el:
137 * term/mac-win.el, term/news.el, term/rxvt.el, term/sun.el:
138 * term/tvi970.el, term/wyse50.el: Use terminal-local binding of
139 local-function-key-map instead of function-key-map.
140
141 * term/rxvt.el, term/xterm.el: Speed up load time by protecting
142 `substitute-key-definition' and `define-key' calls against
143 multiple execution. Use terminal-local binding of
144 local-function-key-map instead of function-key-map. Pass a frame
145 to getenv.
146
147 * edmacro.el (edmacro-format-keys):
148 * emulation/cua-base.el (cua--pre-command-handler):
149 * isearch.el (isearch-other-meta-char):
150 * xt-mouse.el: Use terminal-local binding of
151 local-function-key-map instead of function-key-map.
152
153 * fringe.el (set-fringe-mode): Simplify and fix using
154 `modify-all-frames-parameters'.
155 * scroll-bar.el (set-scroll-bar-mode): Ditto.
156 * tool-bar.el (tool-bar-mode): Ditto. Remove 'tool-bar-map length
157 check before calling `tool-bar-setup'.
158 (tool-bar-setup): New variable.
159 (tool-bar-setup): Use it to guard against multiple calls. Add
160 optional frame parameter, and select that frame before adding items.
161 (toggle-tool-bar-mode-from-frame): New function.
162
163 * menu-bar.el (toggle-menu-bar-mode-from-frame): New function.
164 (menu-bar-showhide-menu): Use toggle-menu-bar-mode-from-frame and
165 toggle-tool-bar-mode-from-frame to change "Menu-bar" and
166 "Tool-bar" toggles to reflect the state of the current frame.
167 (menu-bar-mode): Simplify and fix using `modify-all-frames-parameters'.
168
169 * env.el Require cl for byte compilation (for `block' and `return').
170 (environment, setenv-internal): New functions.
171 (let-environment): New macro.
172 (setenv, getenv): Add optional terminal parameter. Update docs.
173 (setenv): Use setenv-internal. Always set process-environment.
174 Handle `local-environment-variables'.
175 (read-envvar-name, setenv, getenv): Use frame parameters
176 to store the local environment, not terminal parameters. Include
177 `process-environment' as well.
178
179 * faces.el (tty-run-terminal-initialization): New function.
180 (tty-create-frame-with-faces): Use it. Set up faces and
181 background mode only after the terminal has been initialized.
182 Call terminal-init-*. Don't load the initialization file more
183 than once. Call set-locale-environment.
184 (frame-set-background-mode): Handle the 'background-mode terminal
185 parameter.
186 (tty-find-type): New function.
187 (x-create-frame-with-faces): Remove bogus check for
188 first frame. Call `tool-bar-setup'. Don't make frame visible
189 until we are done setting up all its parameters. Call
190 x-setup-function-keys.
191
192 * frame.el (make-frame): Always inherit 'environment and 'client
193 parameters. Set up the 'environment frame parameter, when needed.
194 Also inherit 'client parameter. Don't override explicitly
195 specified values with inherited ones. Add 'terminal frame
196 parameter. Append window-system-default-frame-alist to parameters
197 before calling frame-creation-function.
198 (frame-initialize): Copy the environment from the initial frame.
199 (window-system-default-frame-alist): Enhance doc string.
200 (frame-notice-user-settings): Don't put 'tool-bar-lines in
201 `default-frame-alist' when initial frame is on a tty.
202 (modify-all-frames-parameters): Simplify using `assq-delete-all'.
203 Remove specified parameters from `window-system-default-frame-alist'.
204 (make-frame-on-tty, framep-on-display, suspend-frame):
205 Extend doc string, update parameter names.
206 (frames-on-display-list): Use terminal-id to get the display id.
207 (frame-notice-user-settings): Extend to apply
208 settings in `window-system-default-frame-alist' as well.
209 (terminal-id, terminal-parameters, terminal-parameter)
210 (set-terminal-parameter, terminal-handle-delete-frame): New functions.
211 (delete-frame-functions): Add to `delete-frame-functions' hook.
212 (blink-cursor-mode): Adapt blink-cursor-mode default
213 value from startup.el.
214 (make-frame-on-display): Protect condition on x-initialized when
215 x-win.el is not loaded. Update doc.
216 (suspend-frame): Use display-controlling-tty-p to decide between
217 suspend-emacs and suspend-tty.
218 (frames-on-display-list): Update for display ids.
219 (framep-on-display): Ditto.
220 (suspend-frame): Use display-name, not frame-tty-name.
221 (selected-terminal): New function.
222
223 * server.el: Use `device' instead of `display' or `display-id' in
224 variable and client parameter names.
225 (server-select-display): Remove (unused).
226 (server-tty-live-p, server-handle-delete-tty): Remove.
227 (server-unquote-arg, server-quote-arg, server-buffer-clients):
228 Update docs.
229 (server-getenv-from, server-with-environment, server-send-string)
230 (server-save-buffers-kill-terminal): New functions.
231 (server-delete-client): Handle quits in kill-buffer. Don't kill
232 modified buffers. Add extra logging. Delete frames after
233 deleting the tty. Clear 'client parameter before deleting a frame.
234 Use delete-display, not delete-tty.
235 (server-visit-files): Don't set `server-existing-buffer' if the
236 buffer already has other clients. Return list of buffers
237 created. Update doc. Don't set client-record when nowait.
238 (server-handle-delete-frame): Delete the client if this was its
239 last frame. Check that the frame is alive. Remove bogus comment.
240 Add note on possible race condition. Delete tty clients, if needed.
241 (server-handle-suspend-tty): Use server-send-string. Kill the
242 client in case of errors from process-send-string. Use the display
243 parameter.
244 (server-unload-hook): Remove obsolete delete-tty hook.
245 (server-start): Ask before restarting if the old server still has
246 clients. Add feedback messages. Remove obsolete delete-tty hook.
247 (server-process-filter): Use server-send-string. Accept `-dir'
248 command. Switch to *scratch* immediately after creating the frame,
249 before evaluating any -evals. Protect `display-splash-screen'
250 call in a condition-case. Explain why. Call
251 `display-startup-echo-area-message' before
252 `display-splash-screen'. Don't display the splash screen when no
253 frame was created. Show the Emacs splash screen and startup echo
254 area message. Display the *scratch* buffer by default. Store the
255 local environment in a frame (not terminal) parameter. Do not try
256 to decode environment strings. Fix reference to the 'display
257 frame parameter. Change syntax of environment variables. Put
258 environment into terminal parameters, not client parameters. Use
259 a dummy client with --no-wait's X frames. In `-position LINE'
260 handler, don't ruin the request string until the line number is
261 extracted. Log opened files. Handle -current-frame command.
262 Don't create frames when it is given. Don't bind X frames to the
263 client when we are in -no-wait mode. Set locale environment
264 variables from client while creating tty frames. Disable call to
265 configure-display-for-locale. When processing -position command,
266 don't change the request string until the parameters are
267 extracted. Don't try to create an X frame when Emacs does not
268 support it. Improve logging. Temporarily set ncurses-related
269 environment variables to those of the client while creating a new
270 tty frame. Select buffers opened by nowait clients, don't leave
271 them buried under others. Set the display parameter, and use it
272 when appropriate.
273
274 * startup.el (display-startup-echo-area-message): Handle
275 `inhibit-startup-echo-area-message' here.
276 (command-line-1): Moved from here.
277 (fancy-splash-screens): Use `overriding-local-map' instead of
278 `overriding-terminal-local-map' for now; the latter doesn't work
279 right, it looses keypresses to another terminal. Use
280 `overriding-terminal-local-map' to set up keymap. Install a
281 `delete-frame-functions' hook to catch `delete-frame' events.
282 Ignore `select-window' events to cope better with
283 `focus-follows-mouse'. Don't switch back to the original buffer
284 if the splash frame has been killed. Restore previous buffer, even
285 if it's *scratch*.
286 (normal-splash-screen): Don't let-bind `mode-line-format'; it
287 changes the global binding - setq it instead. Use
288 `save-buffers-kill-terminal'.
289 (display-splash-screen): Don't do anything if the splash screen is
290 already displayed elsewhere.
291 (fancy-splash-exit, fancy-splash-delete-frame): New functions.
292 (command-line): Replace duplicated code with a call to
293 tty-run-terminal-initialization. Don't load the terminal
294 initialization file more than once. Remove call to nonexistent
295 function `set-locale-translation-file-name'.
296
297 * xt-mouse.el (xterm-mouse-x, xterm-mouse-y): Convert to terminal
298 parameters.
299 (xterm-mouse-position-function, xterm-mouse-event): Update.
300 (xterm-mouse-mode): Don't depend on current value of window-system.
301 (turn-on-xterm-mouse-tracking, turn-off-xterm-mouse-tracking):
302 Update for multi-tty.
303 (turn-on-xterm-mouse-tracking-on-terminal)
304 (turn-off-xterm-mouse-tracking-on-terminal)
305 (xterm-mouse-handle-delete-frame): New functions.
306 (delete-frame-functions, after-make-frame-functions)
307 (suspend-tty-functions, resume-tty-functions): Install extra hooks
308 for multi-tty.
309
1 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca> 310 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2 311
3 * simple.el (invisible-p): Remove: implemented in C now. 312 * simple.el (invisible-p): Remove: implemented in C now.
4 (line-move-invisible-p): Remove obsolete alias. 313 (line-move-invisible-p): Remove obsolete alias.
5 314