diff options
author | Martin Rudalics <rudalics@gmx.at> | 2013-09-02 19:23:26 +0200 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2013-09-02 19:23:26 +0200 |
commit | 9718b207e97dcef952fee38b1269130d68744013 (patch) | |
tree | c3c5425d68b9661e3630e24a3dcc7f529c7f1183 /src/frame.c | |
parent | b594a96c8729c73619c1cccdcb092653910fc70a (diff) |
Move Flast_nonminibuf_frame from dispnew.c to frame.c.
* dispnew.c (Flast_nonminibuf_frame): Move from here ...
* frame.c (Flast_nonminibuf_frame): ... to here.
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index e33426c2a4..d11a6b8fee 100644 --- a/src/frame.c +++ b/src/frame.c @@ -1078,6 +1078,19 @@ Otherwise, include all frames. */) CHECK_LIVE_FRAME (frame); return prev_frame (frame, miniframe); } + +DEFUN ("last-nonminibuffer-frame", Flast_nonminibuf_frame, + Slast_nonminibuf_frame, 0, 0, 0, + doc: /* Return last non-minibuffer frame selected. */) + (void) +{ + Lisp_Object frame = Qnil; + + if (last_nonminibuf_frame) + XSETFRAME (frame, last_nonminibuf_frame); + + return frame; +} /* Return 1 if it is ok to delete frame F; 0 if all frames aside from F are invisible. @@ -4492,6 +4505,7 @@ automatically. See also `mouse-autoselect-window'. */); defsubr (&Sframe_list); defsubr (&Snext_frame); defsubr (&Sprevious_frame); + defsubr (&Slast_nonminibuf_frame); defsubr (&Sdelete_frame); defsubr (&Smouse_position); defsubr (&Smouse_pixel_position); |