]> code.delx.au - gnu-emacs/blob - lisp/frame.el
(special-display-frame-alist): New variable.
[gnu-emacs] / lisp / frame.el
1 ;;; frame.el --- multi-frame management independent of window systems.
2
3 ;;;; Copyright (C) 1993 Free Software Foundation, Inc.
4
5 ;; Maintainer: FSF
6 ;; Keywords: internal
7
8 ;;; This file is part of GNU Emacs.
9 ;;;
10 ;;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;;; it under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 2, or (at your option)
13 ;;; any later version.
14 ;;;
15 ;;; GNU Emacs is distributed in the hope that it will be useful,
16 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
19 ;;;
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Emacs; see the file COPYING. If not, write to
22 ;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23
24 ;;; Code:
25
26 (defvar frame-creation-function nil
27 "Window-system dependent function to call to create a new frame.
28 The window system startup file should set this to its frame creation
29 function, which should take an alist of parameters as its argument.")
30
31 ;;; The initial value given here for this must ask for a minibuffer.
32 ;;; There must always exist a frame with a minibuffer, and after we
33 ;;; delete the terminal frame, this will be the only frame.
34 (defvar initial-frame-alist '((minibuffer . t))
35 "Alist of frame parameters for creating the initial X window frame.
36 You can set this in your `.emacs' file; for example,
37 (setq initial-frame-alist '((top . 1) (left . 1) (width . 80) (height . 55)))
38 If the value calls for a frame without a minibuffer, and you do not create a
39 minibuffer frame on your own, one is created according to
40 `minibuffer-frame-alist'.
41 Parameters specified here supersede the values given in
42 `default-frame-alist'.")
43
44 (defvar minibuffer-frame-alist '((width . 80) (height . 2))
45 "Alist of frame parameters for initially creating a minibuffer frame.
46 You can set this in your `.emacs' file; for example,
47 (setq minibuffer-frame-alist
48 '((top . 1) (left . 1) (width . 80) (height . 2)))
49 Parameters specified here supersede the values given in
50 `default-frame-alist'.")
51
52 (defvar pop-up-frame-alist nil
53 "Alist of frame parameters used when creating pop-up frames.
54 Pop-up frames are used for completions, help, and the like.
55 This variable can be set in your init file, like this:
56 (setq pop-up-frame-alist '((width . 80) (height . 20)))
57 These supersede the values given in `default-frame-alist'.")
58
59 (setq pop-up-frame-function
60 (function (lambda ()
61 (new-frame pop-up-frame-alist))))
62
63 (defvar special-display-frame-alist
64 '((height . 14) (width . 80) (unsplittable . t))
65 "*Alist of frame parameters used when creating special frames.
66 Special frames are used for buffers whose names are in
67 `special-display-buffer-names' and for buffers whose names match
68 one of the regular expressions in `special-display-regexps'.
69 This variable can be set in your init file, like this:
70 (setq special-display-frame-alist '((width . 80) (height . 20)))
71 These supersede the values given in `default-frame-alist'.")
72
73 ;; Display BUFFER in its own frame, reusing an existing window if any.
74 ;; Return the window chosen.
75 ;; Currently we do not insist on selecting the window within its frame.
76 (defun special-display-popup-frame (buffer)
77 (let ((window (get-buffer-window buffer t)))
78 (if window
79 ;; If we have a window already, make it visible.
80 (let ((frame (window-frame window)))
81 (make-frame-visible frame)
82 (raise-frame frame)
83 window)
84 ;; If no window yet, make one in a new frame.
85 (let ((frame (new-frame special-display-frame-alist)))
86 (set-window-buffer (frame-selected-window frame) buffer)
87 (set-window-dedicated-p (frame-selected-window frame) t)
88 (frame-selected-window frame)))))
89
90 (setq special-display-function 'special-display-popup-frame)
91 \f
92 ;;;; Arrangement of frames at startup
93
94 ;;; 1) Load the window system startup file from the lisp library and read the
95 ;;; high-priority arguments (-q and the like). The window system startup
96 ;;; file should create any frames specified in the window system defaults.
97 ;;;
98 ;;; 2) If no frames have been opened, we open an initial text frame.
99 ;;;
100 ;;; 3) Once the init file is done, we apply any newly set parameters
101 ;;; in initial-frame-alist to the frame.
102
103 ;; These are now called explicitly at the proper times,
104 ;; since that is easier to understand.
105 ;; Actually using hooks within Emacs is bad for future maintenance. --rms.
106 ;; (add-hook 'before-init-hook 'frame-initialize)
107 ;; (add-hook 'window-setup-hook 'frame-notice-user-settings)
108
109 ;;; If we create the initial frame, this is it.
110 (defvar frame-initial-frame nil)
111
112 ;; Record the parameters used in frame-initialize to make the initial frame.
113 (defvar frame-initial-frame-alist)
114
115 ;;; startup.el calls this function before loading the user's init
116 ;;; file - if there is no frame with a minibuffer open now, create
117 ;;; one to display messages while loading the init file.
118 (defun frame-initialize ()
119
120 ;; Are we actually running under a window system at all?
121 (if (and window-system (not noninteractive))
122 (progn
123 ;; If there is no frame with a minibuffer besides the terminal
124 ;; frame, then we need to create the opening frame. Make sure
125 ;; it has a minibuffer, but let initial-frame-alist omit the
126 ;; minibuffer spec.
127 (or (delq terminal-frame (minibuffer-frame-list))
128 (progn
129 (setq frame-initial-frame-alist
130 (append initial-frame-alist default-frame-alist))
131 (setq default-minibuffer-frame
132 (setq frame-initial-frame
133 (new-frame initial-frame-alist)))
134 ;; Delete any specifications for window geometry parameters
135 ;; so that we won't reapply them in frame-notice-user-settings.
136 ;; It would be wrong to reapply them then,
137 ;; because that would override explicit user resizing.
138 (setq initial-frame-alist
139 (frame-remove-geometry-params initial-frame-alist))
140 ;; Handle `reverse' as a parameter.
141 (if (cdr (or (assq 'reverse initial-frame-alist)
142 (assq 'reverse default-frame-alist)
143 (cons nil
144 (member (x-get-resource "reverseVideo" "ReverseVideo")
145 '("on" "true")))))
146 (let ((params (frame-parameters frame-initial-frame)))
147 (modify-frame-parameters
148 frame-initial-frame
149 ;; Must set cursor-color after background color.
150 ;; So put it first.
151 (list (cons 'cursor-color
152 (cdr (assq 'background-color params)))
153 (cons 'foreground-color
154 (cdr (assq 'background-color params)))
155 (cons 'background-color
156 (cdr (assq 'foreground-color params)))
157 (cons 'mouse-color
158 (cdr (assq 'background-color params)))
159 (cons 'border-color
160 (cdr (assq 'background-color params)))))))))
161
162 ;; At this point, we know that we have a frame open, so we
163 ;; can delete the terminal frame.
164 (delete-frame terminal-frame)
165 (setq terminal-frame nil))
166
167 ;; No, we're not running a window system. Arrange to cause errors.
168 (setq frame-creation-function
169 (function
170 (lambda (parameters)
171 (error
172 "Can't create multiple frames without a window system"))))))
173
174 ;;; startup.el calls this function after loading the user's init
175 ;;; file. Now default-frame-alist and initial-frame-alist contain
176 ;;; information to which we must react; do what needs to be done.
177 (defun frame-notice-user-settings ()
178
179 ;; Creating and deleting frames may shift the selected frame around,
180 ;; and thus the current buffer. Protect against that. We don't
181 ;; want to use save-excursion here, because that may also try to set
182 ;; the buffer of the selected window, which fails when the selected
183 ;; window is the minibuffer.
184 (let ((old-buffer (current-buffer)))
185
186 ;; If the initial frame is still around, apply initial-frame-alist
187 ;; and default-frame-alist to it.
188 (if (frame-live-p frame-initial-frame)
189
190 ;; The initial frame we create above always has a minibuffer.
191 ;; If the user wants to remove it, or make it a minibuffer-only
192 ;; frame, then we'll have to delete the current frame and make a
193 ;; new one; you can't remove or add a root window to/from an
194 ;; existing frame.
195 ;;
196 ;; NOTE: default-frame-alist was nil when we created the
197 ;; existing frame. We need to explicitly include
198 ;; default-frame-alist in the parameters of the screen we
199 ;; create here, so that its new value, gleaned from the user's
200 ;; .emacs file, will be applied to the existing screen.
201 (if (not (eq (cdr (or (assq 'minibuffer initial-frame-alist)
202 (assq 'minibuffer default-frame-alist)
203 '(minibuffer . t)))
204 t))
205 ;; Create the new frame.
206 (let ((new
207 (new-frame
208 (append initial-frame-alist
209 default-frame-alist
210 (frame-parameters frame-initial-frame)))))
211
212 ;; The initial frame, which we are about to delete, may be
213 ;; the only frame with a minibuffer. If it is, create a
214 ;; new one.
215 (or (delq frame-initial-frame (minibuffer-frame-list))
216 (new-frame (append minibuffer-frame-alist
217 '((minibuffer . only)))))
218
219 ;; If the initial frame is serving as a surrogate
220 ;; minibuffer frame for any frames, we need to wean them
221 ;; onto a new frame. The default-minibuffer-frame
222 ;; variable must be handled similarly.
223 (let ((users-of-initial
224 (filtered-frame-list
225 (function (lambda (frame)
226 (and (not (eq frame frame-initial-frame))
227 (eq (window-frame
228 (minibuffer-window frame))
229 frame-initial-frame)))))))
230 (if (or users-of-initial
231 (eq default-minibuffer-frame frame-initial-frame))
232
233 ;; Choose an appropriate frame. Prefer frames which
234 ;; are only minibuffers.
235 (let* ((new-surrogate
236 (car
237 (or (filtered-frame-list
238 (function
239 (lambda (frame)
240 (eq (cdr (assq 'minibuffer
241 (frame-parameters frame)))
242 'only))))
243 (minibuffer-frame-list))))
244 (new-minibuffer (minibuffer-window new-surrogate)))
245
246 (if (eq default-minibuffer-frame frame-initial-frame)
247 (setq default-minibuffer-frame new-surrogate))
248
249 ;; Wean the frames using frame-initial-frame as
250 ;; their minibuffer frame.
251 (mapcar
252 (function
253 (lambda (frame)
254 (modify-frame-parameters
255 frame (list (cons 'minibuffer new-minibuffer)))))
256 users-of-initial))))
257
258 ;; Redirect events enqueued at this frame to the new frame.
259 ;; Is this a good idea?
260 (redirect-frame-focus frame-initial-frame new)
261
262 ;; Finally, get rid of the old frame.
263 (delete-frame frame-initial-frame t))
264
265 ;; Otherwise, we don't need all that rigamarole; just apply
266 ;; the new parameters.
267 (let (newparms allparms tail)
268 (setq allparms (append initial-frame-alist
269 default-frame-alist))
270 (setq tail allparms)
271 ;; Find just the parms that have changed since we first
272 ;; made this frame. Those are the ones actually set by
273 ;; the init file. For those parms whose values we already knew
274 ;; (such as those spec'd by command line options)
275 ;; it is undesirable to specify the parm again
276 ;; once the user has seen the frame and been able to alter it
277 ;; manually.
278 (while tail
279 (let (newval oldval)
280 (setq oldval (cdr (assq (car (car tail))
281 frame-initial-frame-alist)))
282 (setq newval (cdr (assq (car (car tail)) allparms)))
283 (or (eq oldval newval)
284 (setq newparms
285 (cons (cons (car (car tail)) newval) newparms))))
286 (setq tail (cdr tail)))
287 (modify-frame-parameters frame-initial-frame
288 (nreverse newparms)))))
289
290 ;; Restore the original buffer.
291 (set-buffer old-buffer)
292
293 ;; Make sure the initial frame can be GC'd if it is ever deleted.
294 ;; Make sure frame-notice-user-settings does nothing if called twice.
295 (setq frame-initial-frame nil)))
296
297 \f
298 ;;;; Creation of additional frames, and other frame miscellanea
299
300 ;;; Return some frame other than the current frame, creating one if
301 ;;; necessary. Note that the minibuffer frame, if separate, is not
302 ;;; considered (see next-frame).
303 (defun get-other-frame ()
304 (let ((s (if (equal (next-frame (selected-frame)) (selected-frame))
305 (new-frame)
306 (next-frame (selected-frame)))))
307 s))
308
309 (defun next-multiframe-window ()
310 "Select the next window, regardless of which frame it is on."
311 (interactive)
312 (select-window (next-window (selected-window)
313 (> (minibuffer-depth) 0)
314 t)))
315
316 (defun previous-multiframe-window ()
317 "Select the previous window, regardless of which frame it is on."
318 (interactive)
319 (select-window (previous-window (selected-window)
320 (> (minibuffer-depth) 0)
321 t)))
322
323 ;; Alias, kept temporarily.
324 (defalias 'new-frame 'make-frame)
325 (defun make-frame (&optional parameters)
326 "Create a new frame, displaying the current buffer.
327
328 Optional argument PARAMETERS is an alist of parameters for the new
329 frame. Specifically, PARAMETERS is a list of pairs, each having one
330 of the following forms:
331
332 \(name . STRING) - The frame should be named STRING.
333
334 \(height . NUMBER) - The frame should be NUMBER text lines high. If
335 this parameter is present, the width parameter must also be
336 given.
337
338 \(width . NUMBER) - The frame should be NUMBER characters in width.
339 If this parameter is present, the height parameter must also
340 be given.
341
342 \(minibuffer . t) - the frame should have a minibuffer
343 \(minibuffer . nil) - the frame should have no minibuffer
344 \(minibuffer . only) - the frame should contain only a minibuffer
345 \(minibuffer . WINDOW) - the frame should use WINDOW as its minibuffer window.
346
347 The documentation for the function `x-create-frame' describes
348 additional frame parameters that Emacs recognizes for X window frames."
349 (interactive)
350 (let ((nframe))
351 (run-hooks 'before-make-frame-hook)
352 (setq nframe (funcall frame-creation-function parameters))
353 (run-hooks 'after-make-frame-hook)
354 nframe))
355
356 (defun filtered-frame-list (predicate)
357 "Return a list of all live frames which satisfy PREDICATE."
358 (let ((frames (frame-list))
359 good-frames)
360 (while (consp frames)
361 (if (funcall predicate (car frames))
362 (setq good-frames (cons (car frames) good-frames)))
363 (setq frames (cdr frames)))
364 good-frames))
365
366 (defun minibuffer-frame-list ()
367 "Return a list of all frames with their own minibuffers."
368 (filtered-frame-list
369 (function (lambda (frame)
370 (eq frame (window-frame (minibuffer-window frame)))))))
371
372 (defun frame-remove-geometry-params (param-list)
373 "Return the parameter list PARAM-LIST, but with geometry specs removed.
374 This deletes all bindings in PARAM-LIST for `top', `left', `width',
375 and `height' parameters.
376 Emacs uses this to avoid overriding explicit moves and resizings from
377 the user during startup."
378 (setq param-list (cons nil param-list))
379 (let ((tail param-list))
380 (while (consp (cdr tail))
381 (if (and (consp (car (cdr tail)))
382 (memq (car (car (cdr tail))) '(height width top left)))
383 (setcdr tail (cdr (cdr tail)))
384 (setq tail (cdr tail)))))
385 (cdr param-list))
386
387
388 (defun other-frame (arg)
389 "Select the ARG'th different visible frame, and raise it.
390 All frames are arranged in a cyclic order.
391 This command selects the frame ARG steps away in that order.
392 A negative ARG moves in the opposite order."
393 (interactive "p")
394 (let ((frame (selected-frame)))
395 (while (> arg 0)
396 (setq frame (next-frame frame))
397 (while (not (eq (frame-visible-p frame) t))
398 (setq frame (next-frame frame)))
399 (setq arg (1- arg)))
400 (while (< arg 0)
401 (setq frame (previous-frame frame))
402 (while (not (eq (frame-visible-p frame) t))
403 (setq frame (previous-frame frame)))
404 (setq arg (1+ arg)))
405 (raise-frame frame)
406 (select-frame frame)
407 (set-mouse-position (selected-frame) (1- (frame-width)) 0)
408 (unfocus-frame)))
409 \f
410 ;;;; Frame configurations
411
412 (defun current-frame-configuration ()
413 "Return a list describing the positions and states of all frames.
414 Its car is `frame-configuration'.
415 Each element of the cdr is a list of the form (FRAME ALIST WINDOW-CONFIG),
416 where
417 FRAME is a frame object,
418 ALIST is an association list specifying some of FRAME's parameters, and
419 WINDOW-CONFIG is a window configuration object for FRAME."
420 (cons 'frame-configuration
421 (mapcar (function
422 (lambda (frame)
423 (list frame
424 (frame-parameters frame)
425 (current-window-configuration frame))))
426 (frame-list))))
427
428 (defun set-frame-configuration (configuration &optional nodelete)
429 "Restore the frames to the state described by CONFIGURATION.
430 Each frame listed in CONFIGURATION has its position, size, window
431 configuration, and other parameters set as specified in CONFIGURATION.
432 Ordinarily, this function deletes all existing frames not
433 listed in CONFIGURATION. But if optional second argument NODELETE
434 is given and non-nil, the unwanted frames are iconified instead."
435 (or (frame-configuration-p configuration)
436 (signal 'wrong-type-argument
437 (list 'frame-configuration-p configuration)))
438 (let ((config-alist (cdr configuration))
439 frames-to-delete)
440 (mapcar (function
441 (lambda (frame)
442 (let ((parameters (assq frame config-alist)))
443 (if parameters
444 (progn
445 (modify-frame-parameters
446 frame
447 ;; Since we can't set a frame's minibuffer status,
448 ;; we might as well omit the parameter altogether.
449 (let* ((parms (nth 1 parameters))
450 (mini (assq 'minibuffer parms)))
451 (if mini (setq parms (delq mini parms)))
452 parms))
453 (set-window-configuration (nth 2 parameters)))
454 (setq frames-to-delete (cons frame frames-to-delete))))))
455 (frame-list))
456 (if nodelete
457 ;; Note: making frames invisible here was tried
458 ;; but led to some strange behavior--each time the frame
459 ;; was made visible again, the window manager asked afresh
460 ;; for where to put it.
461 (mapcar 'iconify-frame frames-to-delete)
462 (mapcar 'delete-frame frames-to-delete))))
463
464 (defun frame-configuration-p (object)
465 "Return non-nil if OBJECT seems to be a frame configuration.
466 Any list whose car is `frame-configuration' is assumed to be a frame
467 configuration."
468 (and (consp object)
469 (eq (car object) 'frame-configuration)))
470
471 \f
472 ;;;; Convenience functions for accessing and interactively changing
473 ;;;; frame parameters.
474
475 (defun frame-height (&optional frame)
476 "Return number of lines available for display on FRAME.
477 If FRAME is omitted, describe the currently selected frame."
478 (cdr (assq 'height (frame-parameters frame))))
479
480 (defun frame-width (&optional frame)
481 "Return number of columns available for display on FRAME.
482 If FRAME is omitted, describe the currently selected frame."
483 (cdr (assq 'width (frame-parameters frame))))
484
485 (defun set-default-font (font-name)
486 "Set the font of the selected frame to FONT.
487 When called interactively, prompt for the name of the font to use."
488 (interactive "sFont name: ")
489 (modify-frame-parameters (selected-frame)
490 (list (cons 'font font-name)))
491 ;; Update faces that want a bold or italic version of the default font.
492 (frame-update-faces (selected-frame)))
493
494 (defun set-background-color (color-name)
495 "Set the background color of the selected frame to COLOR.
496 When called interactively, prompt for the name of the color to use."
497 (interactive "sColor: ")
498 (modify-frame-parameters (selected-frame)
499 (list (cons 'background-color color-name))))
500
501 (defun set-foreground-color (color-name)
502 "Set the foreground color of the selected frame to COLOR.
503 When called interactively, prompt for the name of the color to use."
504 (interactive "sColor: ")
505 (modify-frame-parameters (selected-frame)
506 (list (cons 'foreground-color color-name))))
507
508 (defun set-cursor-color (color-name)
509 "Set the text cursor color of the selected frame to COLOR.
510 When called interactively, prompt for the name of the color to use."
511 (interactive "sColor: ")
512 (modify-frame-parameters (selected-frame)
513 (list (cons 'cursor-color color-name))))
514
515 (defun set-mouse-color (color-name)
516 "Set the color of the mouse pointer of the selected frame to COLOR.
517 When called interactively, prompt for the name of the color to use."
518 (interactive "sColor: ")
519 (modify-frame-parameters (selected-frame)
520 (list (cons 'mouse-color color-name))))
521
522 (defun set-border-color (color-name)
523 "Set the color of the border of the selected frame to COLOR.
524 When called interactively, prompt for the name of the color to use."
525 (interactive "sColor: ")
526 (modify-frame-parameters (selected-frame)
527 (list (cons 'border-color color-name))))
528
529 (defun auto-raise-mode (arg)
530 "Toggle whether or not the selected frame should auto-raise.
531 With arg, turn auto-raise mode on if and only if arg is positive."
532 (interactive "P")
533 (if (null arg)
534 (setq arg
535 (if (cdr (assq 'auto-raise (frame-parameters (selected-frame))))
536 -1 1)))
537 (modify-frame-parameters (selected-frame)
538 (list (cons 'auto-raise (> arg 0)))))
539
540 (defun auto-lower-mode (arg)
541 "Toggle whether or not the selected frame should auto-lower.
542 With arg, turn auto-lower mode on if and only if arg is positive."
543 (interactive "P")
544 (if (null arg)
545 (setq arg
546 (if (cdr (assq 'auto-lower (frame-parameters (selected-frame))))
547 -1 1)))
548 (modify-frame-parameters (selected-frame)
549 (list (cons 'auto-lower (> arg 0)))))
550
551 (defun toggle-scroll-bar (arg)
552 "Toggle whether or not the selected frame has vertical scroll bars.
553 With arg, turn vertical scroll bars on if and only if arg is positive."
554 (interactive "P")
555 (if (null arg)
556 (setq arg
557 (if (cdr (assq 'vertical-scroll-bars
558 (frame-parameters (selected-frame))))
559 -1 1)))
560 (modify-frame-parameters (selected-frame)
561 (list (cons 'vertical-scroll-bars (> arg 0)))))
562
563 (defun toggle-horizontal-scroll-bar (arg)
564 "Toggle whether or not the selected frame has horizontal scroll bars.
565 With arg, turn horizontal scroll bars on if and only if arg is positive.
566 Horizontal scroll bars aren't implemented yet."
567 (interactive "P")
568 (error "Horizontal scroll bars aren't implemented yet"))
569
570 \f
571 ;;;; Aliases for backward compatibility with Emacs 18.
572 (defalias 'screen-height 'frame-height)
573 (defalias 'screen-width 'frame-width)
574
575 (defun set-screen-width (cols &optional pretend)
576 "Obsolete function to change the size of the screen to COLS columns.\n\
577 Optional second arg non-nil means that redisplay should use COLS columns\n\
578 but that the idea of the actual width of the frame should not be changed.\n\
579 This function is provided only for compatibility with Emacs 18; new code\n\
580 should use `set-frame-width instead'."
581 (set-frame-width (selected-frame) cols pretend))
582
583 (defun set-screen-height (lines &optional pretend)
584 "Obsolete function to change the height of the screen to LINES lines.\n\
585 Optional second arg non-nil means that redisplay should use LINES lines\n\
586 but that the idea of the actual height of the screen should not be changed.\n\
587 This function is provided only for compatibility with Emacs 18; new code\n\
588 should use `set-frame-width' instead."
589 (set-frame-height (selected-frame) lines pretend))
590
591 (make-obsolete 'screen-height 'frame-height)
592 (make-obsolete 'screen-width 'frame-width)
593 (make-obsolete 'set-screen-width 'set-frame-width)
594 (make-obsolete 'set-screen-height 'set-frame-height)
595
596 \f
597 ;;;; Key bindings
598 (defvar ctl-x-5-map (make-sparse-keymap)
599 "Keymap for frame commands.")
600 (defalias 'ctl-x-5-prefix ctl-x-5-map)
601 (define-key ctl-x-map "5" 'ctl-x-5-prefix)
602
603 (define-key ctl-x-5-map "2" 'new-frame)
604 (define-key ctl-x-5-map "0" 'delete-frame)
605 (define-key ctl-x-5-map "o" 'other-frame)
606
607 (provide 'frame)
608
609 ;;; frame.el ends here