From 91523be9250b96b4ebe360630fb4aa6f2263b73a Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 18 Jan 2001 14:10:06 +0000 Subject: [PATCH 1/1] (WINDOW_LIVE_P): New macro. --- src/ChangeLog | 4 ++++ src/window.h | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index f3f088a9b2..3dc8252bd3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2001-01-18 Gerd Moellmann + * 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. diff --git a/src/window.h b/src/window.h index c5737ef723..36ca6811d5 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 */ -- 2.39.2