Mercurial > hg > xemacs-beta
diff src/window.c @ 355:182f72e8cd0d r21-1-7
Import from CVS: tag r21-1-7
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:56:21 +0200 |
parents | 7c94d56991e1 |
children | 30d2cfa1092a |
line wrap: on
line diff
--- a/src/window.c Mon Aug 13 10:55:35 2007 +0200 +++ b/src/window.c Mon Aug 13 10:56:21 2007 +0200 @@ -701,6 +701,11 @@ int window_truncation_on (struct window *w) { + /* Minibuffer windows are never truncated. + ### is this the right way ? */ + if (EQ (w->mini_p, Qt)) + return 0; + /* Horizontally scrolled windows are truncated. */ if (w->hscroll) return 1; @@ -719,6 +724,17 @@ return 0; } +DEFUN ("window-truncated-p", Fwindow_truncated_p, 0, 1, 0, /* +Returns Non-Nil iff the window is truncated. +*/ + (window)) +{ + struct window *w = decode_window (window); + + return window_truncation_on (w) ? Qt : Qnil; +} + + static int have_undivided_common_edge (struct window *w_right, void *closure) { @@ -5570,6 +5586,7 @@ DEFSUBR (Fwindow_previous_child); DEFSUBR (Fwindow_parent); DEFSUBR (Fwindow_lowest_p); + DEFSUBR (Fwindow_truncated_p); DEFSUBR (Fwindow_highest_p); DEFSUBR (Fwindow_leftmost_p); DEFSUBR (Fwindow_rightmost_p);