diff options
| author | Andreas Schwab | 2003-02-18 00:17:17 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2003-02-18 00:17:17 +0000 |
| commit | 3824b1a682ced02fe6d634e763308b1614cbb987 (patch) | |
| tree | 283f8d00a69b0ef1fedf26f619cf1acb41c0e82b /src | |
| parent | c4f2431a243b4f42950de79747619b2bfd420b8f (diff) | |
| download | emacs-3824b1a682ced02fe6d634e763308b1614cbb987.tar.gz emacs-3824b1a682ced02fe6d634e763308b1614cbb987.zip | |
(in_display_vector_p): New function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 5d3602366da..5da63f2f407 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Display generation from window structure and buffer text. | 1 | /* Display generation from window structure and buffer text. |
| 2 | Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 97, 98, 99, 2000, 2001, 2002 | 2 | Copyright (C) 1985,86,87,88,93,94,95,97,98,99, 2000, 2001, 2002, 2003 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| @@ -5649,6 +5649,16 @@ move_it_by_lines (it, dvpos, need_y_p) | |||
| 5649 | } | 5649 | } |
| 5650 | } | 5650 | } |
| 5651 | 5651 | ||
| 5652 | /* Return 1 if IT points into the middle of a display vector. */ | ||
| 5653 | |||
| 5654 | int | ||
| 5655 | in_display_vector_p (it) | ||
| 5656 | struct it *it; | ||
| 5657 | { | ||
| 5658 | return (it->method == next_element_from_display_vector | ||
| 5659 | && it->current.dpvec_index > 0 | ||
| 5660 | && it->dpvec + it->current.dpvec_index != it->dpend); | ||
| 5661 | } | ||
| 5652 | 5662 | ||
| 5653 | 5663 | ||
| 5654 | /*********************************************************************** | 5664 | /*********************************************************************** |