comparison src/frame.c @ 3025:facf3239ba30

[xemacs-hg @ 2005-10-25 11:16:19 by ben] rename new->new_, convert 'foo to `foo' EmacsFrame.c, ExternalClient.c, ExternalShell.c, chartab.c, cmdloop.c, compiler.h, console.c, database.c, device-msw.c, device-x.c, device.c, doc.c, dragdrop.c, eval.c, event-msw.c, event-stream.c, events.c, extents.c, file-coding.c, fns.c, frame-tty.c, frame.c, gpmevent.c, gutter.c, hash.c, imgproc.c, indent.c, keymap.c, lisp-union.h, macros.c, malloc.c, marker.c, menubar-x.c, menubar.c, mule-charset.c, number.c, process.c, profile.h, ralloc.c, redisplay.c, select-common.h, select.c, syntax.c, sysfile.h, sysproc.h, systime.h, syswindows.h, toolbar.c, tooltalk.c, tparam.c, unexaix.c, unexalpha.c, unexconvex.c, unexec.c, unexhp9k800.c, unexmips.c, unicode.c, window.c: new -> new_. 'foo -> `foo'. lwlib-internal.h: redo assert macros to follow lisp.h and not trigger warnings. lwlib.c, xlwtabs.c: new -> new_.
author ben
date Tue, 25 Oct 2005 11:16:49 +0000
parents 1e7cc382eb16
children 141c2920ea48 3742ea8250b5
comparison
equal deleted inserted replaced
3024:b7f26b2f78bd 3025:facf3239ba30
1 /* Generic frame functions. 1 /* Generic frame functions.
2 Copyright (C) 1989, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. 2 Copyright (C) 1989, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
3 Copyright (C) 1995, 1996, 2002, 2003 Ben Wing. 3 Copyright (C) 1995, 1996, 2002, 2003, 2005 Ben Wing.
4 Copyright (C) 1995 Sun Microsystems, Inc. 4 Copyright (C) 1995 Sun Microsystems, Inc.
5 5
6 This file is part of XEmacs. 6 This file is part of XEmacs.
7 7
8 XEmacs is free software; you can redistribute it and/or modify it 8 XEmacs is free software; you can redistribute it and/or modify it
1292 the same frame, and if there is no eligible frame, then FRAME is 1292 the same frame, and if there is no eligible frame, then FRAME is
1293 returned. 1293 returned.
1294 1294
1295 Possible values for WHICH-FRAMES are 1295 Possible values for WHICH-FRAMES are
1296 1296
1297 'visible Consider only frames that are visible. 1297 `visible' Consider only frames that are visible.
1298 'iconic Consider only frames that are iconic. 1298 `iconic' Consider only frames that are iconic.
1299 'invisible Consider only frames that are invisible 1299 `invisible' Consider only frames that are invisible
1300 (this is different from iconic). 1300 (this is different from iconic).
1301 'visible-iconic Consider frames that are visible or iconic. 1301 `visible-iconic' Consider frames that are visible or iconic.
1302 'invisible-iconic Consider frames that are invisible or iconic. 1302 `invisible-iconic' Consider frames that are invisible or iconic.
1303 'nomini Consider all frames except minibuffer-only ones. 1303 `nomini' Consider all frames except minibuffer-only ones.
1304 'visible-nomini Like `visible' but omits minibuffer-only frames. 1304 `visible-nomini' Like `visible' but omits minibuffer-only frames.
1305 'iconic-nomini Like `iconic' but omits minibuffer-only frames. 1305 `iconic-nomini' Like `iconic' but omits minibuffer-only frames.
1306 'invisible-nomini Like `invisible' but omits minibuffer-only frames. 1306 `invisible-nomini' Like `invisible' but omits minibuffer-only frames.
1307 'visible-iconic-nomini Like `visible-iconic' but omits minibuffer-only 1307 `visible-iconic-nomini' Like `visible-iconic' but omits minibuffer-only
1308 frames. 1308 frames.
1309 'invisible-iconic-nomini Like `invisible-iconic' but omits minibuffer-only 1309 `invisible-iconic-nomini' Like `invisible-iconic' but omits minibuffer-only
1310 frames. 1310 frames.
1311 any other value Consider all frames. 1311 any other value Consider all frames.
1312 1312
1313 If WHICH-FRAMES is omitted, 'nomini is used. A value for WHICH-FRAMES 1313 If WHICH-FRAMES is omitted, `nomini' is used. A value for WHICH-FRAMES
1314 of 0 (a number) is treated like 'iconic, for backwards compatibility. 1314 of 0 (a number) is treated like `iconic', for backwards compatibility.
1315 1315
1316 If WHICH-FRAMES is a window, include only its own frame and any frame 1316 If WHICH-FRAMES is a window, include only its own frame and any frame
1317 now using that window as the minibuffer. 1317 now using that window as the minibuffer.
1318 1318
1319 The optional third argument WHICH-DEVICES further clarifies on which 1319 The optional third argument WHICH-DEVICES further clarifies on which
2093 (frame)) 2093 (frame))
2094 { 2094 {
2095 return Fmake_frame_visible (frame); 2095 return Fmake_frame_visible (frame);
2096 } 2096 }
2097 2097
2098 /* FSF returns 'icon for iconized frames. What a crock! */ 2098 /* FSF returns `icon' for iconized frames. What a crock! */
2099 2099
2100 DEFUN ("frame-visible-p", Fframe_visible_p, 0, 1, 0, /* 2100 DEFUN ("frame-visible-p", Fframe_visible_p, 0, 1, 0, /*
2101 Return non NIL if FRAME is now "visible" (actually in use for display). 2101 Return non NIL if FRAME is now "visible" (actually in use for display).
2102 A frame that is not visible is not updated, and, if it works through a 2102 A frame that is not visible is not updated, and, if it works through a
2103 window system, may not show at all. 2103 window system, may not show at all.
2104 N.B. Under X "visible" means Mapped. It the window is mapped but not 2104 N.B. Under X "visible" means Mapped. It the window is mapped but not
2105 actually visible on screen then `frame-visible-p' returns 'hidden. 2105 actually visible on screen then `frame-visible-p' returns `hidden'.
2106 */ 2106 */
2107 (frame)) 2107 (frame))
2108 { 2108 {
2109 struct frame *f = decode_frame (frame); 2109 struct frame *f = decode_frame (frame);
2110 int visible = FRAMEMETH_OR_GIVEN (f, frame_visible_p, (f), f->visible); 2110 int visible = FRAMEMETH_OR_GIVEN (f, frame_visible_p, (f), f->visible);