diff options
| author | Chong Yidong | 2009-06-21 14:28:27 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-06-21 14:28:27 +0000 |
| commit | 4d4c02d80293f8c78ecfa392d74c81a485d53216 (patch) | |
| tree | 1a3357465e843d0df1e271cb5f174ba43824962e /src | |
| parent | 46534e1efb5818f4cadd94128022509b5d916ded (diff) | |
| download | emacs-4d4c02d80293f8c78ecfa392d74c81a485d53216.tar.gz emacs-4d4c02d80293f8c78ecfa392d74c81a485d53216.zip | |
* xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
!HAVE_WINDOW_SYSTEM.
(move_it_in_display_line_to, move_it_in_display_line_to)
(display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xdisp.c | 44 |
2 files changed, 22 insertions, 29 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 840a0b7b1f6..4b856f194a6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-06-21 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for | ||
| 4 | !HAVE_WINDOW_SYSTEM. | ||
| 5 | (move_it_in_display_line_to, move_it_in_display_line_to) | ||
| 6 | (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM. | ||
| 7 | |||
| 1 | 2009-06-21 Jason Rumney <jasonr@gnu.org> | 8 | 2009-06-21 Jason Rumney <jasonr@gnu.org> |
| 2 | 9 | ||
| 3 | * w32term.c (keyboard_codepage): New static variable. | 10 | * w32term.c (keyboard_codepage): New static variable. |
diff --git a/src/xdisp.c b/src/xdisp.c index 8094b8f8e13..f1572600566 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -354,6 +354,8 @@ extern Lisp_Object Voverflow_newline_into_fringe; | |||
| 354 | && it->current_x == it->last_visible_x \ | 354 | && it->current_x == it->last_visible_x \ |
| 355 | && it->line_wrap != WORD_WRAP) | 355 | && it->line_wrap != WORD_WRAP) |
| 356 | 356 | ||
| 357 | #else /* !HAVE_WINDOW_SYSTEM */ | ||
| 358 | #define IT_OVERFLOW_NEWLINE_INTO_FRINGE(it) 0 | ||
| 357 | #endif /* HAVE_WINDOW_SYSTEM */ | 359 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 358 | 360 | ||
| 359 | /* Test if the display element loaded in IT is a space or tab | 361 | /* Test if the display element loaded in IT is a space or tab |
| @@ -6918,7 +6920,6 @@ move_it_in_display_line_to (struct it *it, | |||
| 6918 | } | 6920 | } |
| 6919 | 6921 | ||
| 6920 | set_iterator_to_next (it, 1); | 6922 | set_iterator_to_next (it, 1); |
| 6921 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 6922 | /* One graphical terminals, newlines may | 6923 | /* One graphical terminals, newlines may |
| 6923 | "overflow" into the fringe if | 6924 | "overflow" into the fringe if |
| 6924 | overflow-newline-into-fringe is non-nil. | 6925 | overflow-newline-into-fringe is non-nil. |
| @@ -6947,7 +6948,6 @@ move_it_in_display_line_to (struct it *it, | |||
| 6947 | break; | 6948 | break; |
| 6948 | } | 6949 | } |
| 6949 | } | 6950 | } |
| 6950 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 6951 | } | 6951 | } |
| 6952 | } | 6952 | } |
| 6953 | else | 6953 | else |
| @@ -7022,7 +7022,6 @@ move_it_in_display_line_to (struct it *it, | |||
| 7022 | if (it->line_wrap == TRUNCATE | 7022 | if (it->line_wrap == TRUNCATE |
| 7023 | && it->current_x >= it->last_visible_x) | 7023 | && it->current_x >= it->last_visible_x) |
| 7024 | { | 7024 | { |
| 7025 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 7026 | if (!FRAME_WINDOW_P (it->f) | 7025 | if (!FRAME_WINDOW_P (it->f) |
| 7027 | || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 7026 | || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) |
| 7028 | { | 7027 | { |
| @@ -7038,7 +7037,6 @@ move_it_in_display_line_to (struct it *it, | |||
| 7038 | break; | 7037 | break; |
| 7039 | } | 7038 | } |
| 7040 | } | 7039 | } |
| 7041 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 7042 | result = MOVE_LINE_TRUNCATED; | 7040 | result = MOVE_LINE_TRUNCATED; |
| 7043 | break; | 7041 | break; |
| 7044 | } | 7042 | } |
| @@ -16622,13 +16620,10 @@ display_line (it) | |||
| 16622 | display the cursor there under X. Set the charpos of the | 16620 | display the cursor there under X. Set the charpos of the |
| 16623 | first glyph of blank lines not corresponding to any text | 16621 | first glyph of blank lines not corresponding to any text |
| 16624 | to -1. */ | 16622 | to -1. */ |
| 16625 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 16626 | if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 16623 | if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) |
| 16627 | row->exact_window_width_line_p = 1; | 16624 | row->exact_window_width_line_p = 1; |
| 16628 | else | 16625 | else if ((append_space_for_newline (it, 1) && row->used[TEXT_AREA] == 1) |
| 16629 | #endif /* HAVE_WINDOW_SYSTEM */ | 16626 | || row->used[TEXT_AREA] == 0) |
| 16630 | if ((append_space_for_newline (it, 1) && row->used[TEXT_AREA] == 1) | ||
| 16631 | || row->used[TEXT_AREA] == 0) | ||
| 16632 | { | 16627 | { |
| 16633 | row->glyphs[TEXT_AREA]->charpos = -1; | 16628 | row->glyphs[TEXT_AREA]->charpos = -1; |
| 16634 | row->displays_text_p = 0; | 16629 | row->displays_text_p = 0; |
| @@ -16770,7 +16765,6 @@ display_line (it) | |||
| 16770 | goto back_to_wrap; | 16765 | goto back_to_wrap; |
| 16771 | 16766 | ||
| 16772 | set_iterator_to_next (it, 1); | 16767 | set_iterator_to_next (it, 1); |
| 16773 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 16774 | if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 16768 | if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) |
| 16775 | { | 16769 | { |
| 16776 | if (!get_next_display_element (it)) | 16770 | if (!get_next_display_element (it)) |
| @@ -16786,7 +16780,6 @@ display_line (it) | |||
| 16786 | row->exact_window_width_line_p = 1; | 16780 | row->exact_window_width_line_p = 1; |
| 16787 | } | 16781 | } |
| 16788 | } | 16782 | } |
| 16789 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 16790 | } | 16783 | } |
| 16791 | } | 16784 | } |
| 16792 | else if (CHAR_GLYPH_PADDING_P (*glyph) | 16785 | else if (CHAR_GLYPH_PADDING_P (*glyph) |
| @@ -16923,12 +16916,10 @@ display_line (it) | |||
| 16923 | 16916 | ||
| 16924 | row->ends_in_newline_from_string_p = STRINGP (it->object); | 16917 | row->ends_in_newline_from_string_p = STRINGP (it->object); |
| 16925 | 16918 | ||
| 16926 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 16927 | /* Add a space at the end of the line that is used to | 16919 | /* Add a space at the end of the line that is used to |
| 16928 | display the cursor there. */ | 16920 | display the cursor there. */ |
| 16929 | if (!IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 16921 | if (!IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) |
| 16930 | append_space_for_newline (it, 0); | 16922 | append_space_for_newline (it, 0); |
| 16931 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 16932 | 16923 | ||
| 16933 | /* Extend the face to the end of the line. */ | 16924 | /* Extend the face to the end of the line. */ |
| 16934 | extend_face_to_end_of_line (it); | 16925 | extend_face_to_end_of_line (it); |
| @@ -16969,27 +16960,22 @@ display_line (it) | |||
| 16969 | produce_special_glyphs (it, IT_TRUNCATION); | 16960 | produce_special_glyphs (it, IT_TRUNCATION); |
| 16970 | } | 16961 | } |
| 16971 | } | 16962 | } |
| 16972 | #ifdef HAVE_WINDOW_SYSTEM | 16963 | else if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) |
| 16973 | else | ||
| 16974 | { | 16964 | { |
| 16975 | /* Don't truncate if we can overflow newline into fringe. */ | 16965 | /* Don't truncate if we can overflow newline into fringe. */ |
| 16976 | if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 16966 | if (!get_next_display_element (it)) |
| 16977 | { | 16967 | { |
| 16978 | if (!get_next_display_element (it)) | 16968 | it->continuation_lines_width = 0; |
| 16979 | { | 16969 | row->ends_at_zv_p = 1; |
| 16980 | it->continuation_lines_width = 0; | 16970 | row->exact_window_width_line_p = 1; |
| 16981 | row->ends_at_zv_p = 1; | 16971 | break; |
| 16982 | row->exact_window_width_line_p = 1; | 16972 | } |
| 16983 | break; | 16973 | if (ITERATOR_AT_END_OF_LINE_P (it)) |
| 16984 | } | 16974 | { |
| 16985 | if (ITERATOR_AT_END_OF_LINE_P (it)) | 16975 | row->exact_window_width_line_p = 1; |
| 16986 | { | 16976 | goto at_end_of_line; |
| 16987 | row->exact_window_width_line_p = 1; | ||
| 16988 | goto at_end_of_line; | ||
| 16989 | } | ||
| 16990 | } | 16977 | } |
| 16991 | } | 16978 | } |
| 16992 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 16993 | 16979 | ||
| 16994 | row->truncated_on_right_p = 1; | 16980 | row->truncated_on_right_p = 1; |
| 16995 | it->continuation_lines_width = 0; | 16981 | it->continuation_lines_width = 0; |