diff options
| author | Karl Heuer | 1994-03-23 20:09:12 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-03-23 20:09:12 +0000 |
| commit | 87498171d3cd0cbdc5058c0890103964d334ebd5 (patch) | |
| tree | 10d8b3e3b6c6c0a5fed8f1a759d3018ddcdc7c5e | |
| parent | 21f69e7e21e73ef59394455bdd79315d5fff4d4d (diff) | |
| download | emacs-87498171d3cd0cbdc5058c0890103964d334ebd5.tar.gz emacs-87498171d3cd0cbdc5058c0890103964d334ebd5.zip | |
(x_get_focus_frame): New function.
| -rw-r--r-- | src/xfns.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index dea6db53db2..fb788dd7f58 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2399,6 +2399,17 @@ be shared by the new frame.") | |||
| 2399 | #endif /* X10 */ | 2399 | #endif /* X10 */ |
| 2400 | } | 2400 | } |
| 2401 | 2401 | ||
| 2402 | Lisp_Object | ||
| 2403 | x_get_focus_frame () | ||
| 2404 | { | ||
| 2405 | Lisp_Object xfocus; | ||
| 2406 | if (! x_focus_frame) | ||
| 2407 | return Qnil; | ||
| 2408 | |||
| 2409 | XSET (xfocus, Lisp_Frame, x_focus_frame); | ||
| 2410 | return xfocus; | ||
| 2411 | } | ||
| 2412 | |||
| 2402 | DEFUN ("focus-frame", Ffocus_frame, Sfocus_frame, 1, 1, 0, | 2413 | DEFUN ("focus-frame", Ffocus_frame, Sfocus_frame, 1, 1, 0, |
| 2403 | "Set the focus on FRAME.") | 2414 | "Set the focus on FRAME.") |
| 2404 | (frame) | 2415 | (frame) |