diff options
| author | Richard M. Stallman | 1996-06-10 20:50:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-10 20:50:01 +0000 |
| commit | ab6ce60e0156342a243997a8278376bd837b9217 (patch) | |
| tree | f44e5f5ec5c322b71876daebe06f3d35604ee696 /src | |
| parent | 771c47d5121b539f4ea1e3e116a5bf37cb4f76be (diff) | |
| download | emacs-ab6ce60e0156342a243997a8278376bd837b9217.tar.gz emacs-ab6ce60e0156342a243997a8278376bd837b9217.zip | |
(redisplay_internal): Use `Vterminal_frame' and other
termcap frame code on MSDOS as well.
(display_text_line) [HAVE_FACES]: Support faces on MSDOS.
(decode_mode_spec): Return frame name on MSDOS like for termcap frames.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index ed7de057d98..c68a1148da4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -838,7 +838,7 @@ redisplay_internal (preserve_echo_area) | |||
| 838 | #endif | 838 | #endif |
| 839 | 839 | ||
| 840 | #ifdef MULTI_FRAME | 840 | #ifdef MULTI_FRAME |
| 841 | if (FRAME_TERMCAP_P (selected_frame) | 841 | if ((FRAME_TERMCAP_P (selected_frame) || FRAME_MSDOS_P (selected_frame)) |
| 842 | && previous_terminal_frame != selected_frame) | 842 | && previous_terminal_frame != selected_frame) |
| 843 | { | 843 | { |
| 844 | /* Since frames on an ASCII terminal share the same display area, | 844 | /* Since frames on an ASCII terminal share the same display area, |
| @@ -1073,7 +1073,8 @@ redisplay_internal (preserve_echo_area) | |||
| 1073 | FOR_EACH_FRAME (tail, frame) | 1073 | FOR_EACH_FRAME (tail, frame) |
| 1074 | { | 1074 | { |
| 1075 | FRAME_PTR f = XFRAME (frame); | 1075 | FRAME_PTR f = XFRAME (frame); |
| 1076 | if (! FRAME_TERMCAP_P (f) || f == selected_frame) | 1076 | if (! FRAME_TERMCAP_P (f) && ! FRAME_MSDOS_P (f) |
| 1077 | || f == selected_frame) | ||
| 1077 | { | 1078 | { |
| 1078 | 1079 | ||
| 1079 | /* Mark all the scroll bars to be removed; we'll redeem the ones | 1080 | /* Mark all the scroll bars to be removed; we'll redeem the ones |
| @@ -1122,7 +1123,8 @@ update: | |||
| 1122 | 1123 | ||
| 1123 | f = XFRAME (XCONS (tail)->car); | 1124 | f = XFRAME (XCONS (tail)->car); |
| 1124 | 1125 | ||
| 1125 | if ((! FRAME_TERMCAP_P (f) || f == selected_frame) | 1126 | if (((! FRAME_TERMCAP_P (f) && ! FRAME_MSDOS_P (f)) |
| 1127 | || f == selected_frame) | ||
| 1126 | && FRAME_VISIBLE_P (f)) | 1128 | && FRAME_VISIBLE_P (f)) |
| 1127 | { | 1129 | { |
| 1128 | pause |= update_frame (f, 0, 0); | 1130 | pause |= update_frame (f, 0, 0); |
| @@ -1156,7 +1158,7 @@ update: | |||
| 1156 | mini_frame = XFRAME (WINDOW_FRAME (XWINDOW (mini_window))); | 1158 | mini_frame = XFRAME (WINDOW_FRAME (XWINDOW (mini_window))); |
| 1157 | 1159 | ||
| 1158 | if (mini_frame != selected_frame | 1160 | if (mini_frame != selected_frame |
| 1159 | && ! FRAME_TERMCAP_P (mini_frame)) | 1161 | && ! FRAME_TERMCAP_P (mini_frame) && ! FRAME_MSDOS_P (mini_frame)) |
| 1160 | pause |= update_frame (mini_frame, 0, 0); | 1162 | pause |= update_frame (mini_frame, 0, 0); |
| 1161 | } | 1163 | } |
| 1162 | } | 1164 | } |
| @@ -2814,7 +2816,8 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 2814 | /* Did we hit a face change? Figure out what face we should | 2816 | /* Did we hit a face change? Figure out what face we should |
| 2815 | use now. We also hit this the first time through the | 2817 | use now. We also hit this the first time through the |
| 2816 | loop, to see what face we should start with. */ | 2818 | loop, to see what face we should start with. */ |
| 2817 | if (pos >= next_face_change && (FRAME_WINDOW_P (f))) | 2819 | if (pos >= next_face_change |
| 2820 | && (FRAME_WINDOW_P (f) || FRAME_MSDOS_P (f))) | ||
| 2818 | current_face = compute_char_face (f, w, pos, | 2821 | current_face = compute_char_face (f, w, pos, |
| 2819 | region_beg, region_end, | 2822 | region_beg, region_end, |
| 2820 | &next_face_change, pos + 50, 0); | 2823 | &next_face_change, pos + 50, 0); |
| @@ -3726,7 +3729,7 @@ decode_mode_spec (w, c, spec_width, maxwidth) | |||
| 3726 | #ifdef MULTI_FRAME | 3729 | #ifdef MULTI_FRAME |
| 3727 | if (!NILP (f->title)) | 3730 | if (!NILP (f->title)) |
| 3728 | return (char *) XSTRING (f->title)->data; | 3731 | return (char *) XSTRING (f->title)->data; |
| 3729 | if (f->explicit_name || FRAME_TERMCAP_P (f)) | 3732 | if (f->explicit_name || FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) |
| 3730 | return (char *) XSTRING (f->name)->data; | 3733 | return (char *) XSTRING (f->name)->data; |
| 3731 | #endif | 3734 | #endif |
| 3732 | return "Emacs"; | 3735 | return "Emacs"; |