diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-01-18 14:10:06 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-01-18 14:10:06 +0000 |
commit | 91523be9250b96b4ebe360630fb4aa6f2263b73a (patch) | |
tree | 3ba11ba88f0396272d1bac43d3ebf5d30c2e677a /src/window.h | |
parent | 9e571f494c4dc89dca613aff9d7518f3a4ad5fef (diff) | |
download | emacs-91523be9250b96b4ebe360630fb4aa6f2263b73a.tar.gz |
(WINDOW_LIVE_P): New macro.
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/window.h b/src/window.h index c5737ef7238..36ca6811d5e 100644 --- a/src/window.h +++ b/src/window.h @@ -1,5 +1,6 @@ /* Window definitions for GNU Emacs. - Copyright (C) 1985, 1986, 1993, 1995 Free Software Foundation, Inc. + Copyright (C) 1985, 1986, 1993, 1995, 1997, 1998, 1999, 2000, 2001 + Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -446,4 +447,9 @@ extern void check_frame_size P_ ((struct frame *frame, int *rows, int *cols)); struct glyph *get_phys_cursor_glyph P_ ((struct window *w)); +/* Value is non-zero if WINDOW is a live window. */ + +#define WINDOW_LIVE_P(WINDOW) \ + (WINDOWP ((WINDOW)) && !NILP (XWINDOW ((WINDOW))->buffer)) + #endif /* not WINDOW_H_INCLUDED */ |