changeset 49835:09b19af84a81

(in_display_vector_p): New function.
author Andreas Schwab <schwab@suse.de>
date Tue, 18 Feb 2003 00:17:17 +0000
parents c3d892afbca5
children 33592610b3e0
files src/xdisp.c
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Feb 18 00:16:03 2003 +0000
+++ b/src/xdisp.c	Tue Feb 18 00:17:17 2003 +0000
@@ -1,5 +1,5 @@
 /* Display generation from window structure and buffer text.
-   Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 97, 98, 99, 2000, 2001, 2002
+   Copyright (C) 1985,86,87,88,93,94,95,97,98,99, 2000, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
@@ -5649,6 +5649,16 @@
     }
 }
 
+/* Return 1 if IT points into the middle of a display vector.  */
+
+int
+in_display_vector_p (it)
+     struct it *it;
+{
+  return (it->method == next_element_from_display_vector
+	  && it->current.dpvec_index > 0
+	  && it->dpvec + it->current.dpvec_index != it->dpend);
+}
 
 
 /***********************************************************************