aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-18 14:10:06 +0000
committerGerd Moellmann2001-01-18 14:10:06 +0000
commit91523be9250b96b4ebe360630fb4aa6f2263b73a (patch)
tree3ba11ba88f0396272d1bac43d3ebf5d30c2e677a
parent9e571f494c4dc89dca613aff9d7518f3a4ad5fef (diff)
downloademacs-91523be9250b96b4ebe360630fb4aa6f2263b73a.tar.gz
emacs-91523be9250b96b4ebe360630fb4aa6f2263b73a.zip
(WINDOW_LIVE_P): New macro.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/window.h8
2 files changed, 11 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f3f088a9b28..3dc8252bd3c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12001-01-18 Gerd Moellmann <gerd@gnu.org> 12001-01-18 Gerd Moellmann <gerd@gnu.org>
2 2
3 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
4
5 * window.h (WINDOW_LIVE_P): New macro.
6
3 * window.c (window_size_fixed): New variable. 7 * window.c (window_size_fixed): New variable.
4 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for 8 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5 the doc string. 9 the doc string.
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 @@
1/* Window definitions for GNU Emacs. 1/* Window definitions for GNU Emacs.
2 Copyright (C) 1985, 1986, 1993, 1995 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986, 1993, 1995, 1997, 1998, 1999, 2000, 2001
3 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -446,4 +447,9 @@ extern void check_frame_size P_ ((struct frame *frame, int *rows, int *cols));
446 447
447struct glyph *get_phys_cursor_glyph P_ ((struct window *w)); 448struct glyph *get_phys_cursor_glyph P_ ((struct window *w));
448 449
450/* Value is non-zero if WINDOW is a live window. */
451
452#define WINDOW_LIVE_P(WINDOW) \
453 (WINDOWP ((WINDOW)) && !NILP (XWINDOW ((WINDOW))->buffer))
454
449#endif /* not WINDOW_H_INCLUDED */ 455#endif /* not WINDOW_H_INCLUDED */