diff options
| author | Jim Blandy | 1992-10-19 18:41:37 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-10-19 18:41:37 +0000 |
| commit | 03273ec57b1bc79fa61b3c59c03d8088c980f55b (patch) | |
| tree | 112407f18c759d9e9a737d191f89855a6742e291 /src | |
| parent | 0188441d06a72d40eb62d88e0fffa33e973d1de2 (diff) | |
| download | emacs-03273ec57b1bc79fa61b3c59c03d8088c980f55b.tar.gz emacs-03273ec57b1bc79fa61b3c59c03d8088c980f55b.zip | |
* lisp.h (CHECK_LIVE_WINDOW): New predicate.
(Qlive_window_p): Extern declaration for this.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h index 27344f4ca67..c7d84c73206 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -601,6 +601,20 @@ typedef unsigned char UCHAR; | |||
| 601 | #define CHECK_WINDOW(x, i) \ | 601 | #define CHECK_WINDOW(x, i) \ |
| 602 | { if (XTYPE ((x)) != Lisp_Window) x = wrong_type_argument (Qwindowp, (x)); } | 602 | { if (XTYPE ((x)) != Lisp_Window) x = wrong_type_argument (Qwindowp, (x)); } |
| 603 | 603 | ||
| 604 | /* This macro rejects windows on the interior of the window tree as | ||
| 605 | "dead", which is what we want; this is an argument-checking macro, and | ||
| 606 | the user should never get access to interior windows. | ||
| 607 | |||
| 608 | A window of any sort, leaf or interior, is dead iff the buffer, | ||
| 609 | vchild, and hchild members are all nil. */ | ||
| 610 | |||
| 611 | #define CHECK_LIVE_WINDOW(x, i) \ | ||
| 612 | { \ | ||
| 613 | if (XTYPE ((x)) != Lisp_Window \ | ||
| 614 | || NILP (XWINDOW ((x))->buffer)) \ | ||
| 615 | x = wrong_type_argument (Qlive_window_p, (x)); \ | ||
| 616 | } | ||
| 617 | |||
| 604 | #define CHECK_PROCESS(x, i) \ | 618 | #define CHECK_PROCESS(x, i) \ |
| 605 | { if (XTYPE ((x)) != Lisp_Process) x = wrong_type_argument (Qprocessp, (x)); } | 619 | { if (XTYPE ((x)) != Lisp_Process) x = wrong_type_argument (Qprocessp, (x)); } |
| 606 | 620 | ||
| @@ -1108,7 +1122,7 @@ extern Lisp_Object get_keyelt (), get_keymap(); | |||
| 1108 | extern Lisp_Object Fvertical_motion (), Findent_to (), Fcurrent_column (); | 1122 | extern Lisp_Object Fvertical_motion (), Findent_to (), Fcurrent_column (); |
| 1109 | 1123 | ||
| 1110 | /* defined in window.c */ | 1124 | /* defined in window.c */ |
| 1111 | extern Lisp_Object Qwindowp; | 1125 | extern Lisp_Object Qwindowp, Qlive_window_p; |
| 1112 | extern Lisp_Object Fget_buffer_window (); | 1126 | extern Lisp_Object Fget_buffer_window (); |
| 1113 | extern Lisp_Object Fsave_window_excursion (); | 1127 | extern Lisp_Object Fsave_window_excursion (); |
| 1114 | extern Lisp_Object Fset_window_configuration (), Fcurrent_window_configuration (); | 1128 | extern Lisp_Object Fset_window_configuration (), Fcurrent_window_configuration (); |