diff options
| author | Gerd Moellmann | 1999-09-13 11:13:35 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-09-13 11:13:35 +0000 |
| commit | 650afd94631dab4c2b157b8e638b06053c89702c (patch) | |
| tree | e711793d48e9ade8c998734a02eaafb199271bdb /src | |
| parent | 8d2666feec2a111be195f325f967e4344d0da885 (diff) | |
| download | emacs-650afd94631dab4c2b157b8e638b06053c89702c.tar.gz emacs-650afd94631dab4c2b157b8e638b06053c89702c.zip | |
(SELECTED_FRAME): New.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/frame.h b/src/frame.h index cd17a35d664..442a0e32ac5 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -615,7 +615,6 @@ typedef struct frame *FRAME_PTR; | |||
| 615 | 615 | ||
| 616 | extern Lisp_Object Qframep, Qframe_live_p, Qicon; | 616 | extern Lisp_Object Qframep, Qframe_live_p, Qicon; |
| 617 | 617 | ||
| 618 | extern struct frame *selected_frame; | ||
| 619 | extern struct frame *last_nonminibuf_frame; | 618 | extern struct frame *last_nonminibuf_frame; |
| 620 | 619 | ||
| 621 | extern struct frame *make_terminal_frame P_ ((void)); | 620 | extern struct frame *make_terminal_frame P_ ((void)); |
| @@ -655,6 +654,18 @@ extern Lisp_Object Vterminal_frame; | |||
| 655 | 654 | ||
| 656 | #define WINDOW_VERTICAL_SCROLL_BAR_HEIGHT(w) (window_internal_height (w)) | 655 | #define WINDOW_VERTICAL_SCROLL_BAR_HEIGHT(w) (window_internal_height (w)) |
| 657 | 656 | ||
| 657 | /* The currently selected frame. */ | ||
| 658 | |||
| 659 | extern Lisp_Object selected_frame; | ||
| 660 | |||
| 661 | /* Value is a pointer to the selected frame. If the selected frame | ||
| 662 | isn't life, abort. */ | ||
| 663 | |||
| 664 | #define SELECTED_FRAME() \ | ||
| 665 | ((FRAMEP (selected_frame) \ | ||
| 666 | && FRAME_LIVE_P (XFRAME (selected_frame))) \ | ||
| 667 | ? XFRAME (selected_frame) \ | ||
| 668 | : (struct frame *) (abort (), 0)) | ||
| 658 | 669 | ||
| 659 | 670 | ||
| 660 | /*********************************************************************** | 671 | /*********************************************************************** |