]> code.delx.au - gnu-emacs/commitdiff
(WINDOW_LIVE_P): New macro.
authorGerd Moellmann <gerd@gnu.org>
Thu, 18 Jan 2001 14:10:06 +0000 (14:10 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 18 Jan 2001 14:10:06 +0000 (14:10 +0000)
src/ChangeLog
src/window.h

index f3f088a9b28cb2ad701d39b4aa8e926641a97c6b..3dc8252bd3c1757f4e1df222026cb5ed20f78f1c 100644 (file)
@@ -1,5 +1,9 @@
 2001-01-18  Gerd Moellmann  <gerd@gnu.org>
 
+       * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
+
+       * window.h (WINDOW_LIVE_P): New macro.
+
        * window.c (window_size_fixed): New variable.
        (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
        the doc string.
index c5737ef723896f3fa060d22bc670829f22558b0f..36ca6811d5e5e8326976d8db038e97a6e5474bf0 100644 (file)
@@ -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 */