comparison src/dispnew.c @ 16039:855c8d8ba0f0

Change all references from point to PT.
author Karl Heuer <kwzh@gnu.org>
date Sun, 01 Sep 1996 19:15:05 +0000
parents 3a3c30116313
children ccf489f8596e
comparison
equal deleted inserted replaced
16038:8cd162ceb1dc 16039:855c8d8ba0f0
1102 /* Give up if character is invisible. */ 1102 /* Give up if character is invisible. */
1103 /* Give up if character has a face property. 1103 /* Give up if character has a face property.
1104 At the moment we only lose at end of line or end of buffer 1104 At the moment we only lose at end of line or end of buffer
1105 and only with faces that have some background */ 1105 and only with faces that have some background */
1106 /* Instead of wasting time, give up if character has any text properties */ 1106 /* Instead of wasting time, give up if character has any text properties */
1107 || ! NILP (Ftext_properties_at (make_number (point - 1), Qnil)) 1107 || ! NILP (Ftext_properties_at (make_number (PT - 1), Qnil))
1108 #endif 1108 #endif
1109 1109
1110 /* Give up if w is minibuffer and a message is being displayed there */ 1110 /* Give up if w is minibuffer and a message is being displayed there */
1111 || (MINI_WINDOW_P (w) && echo_area_glyphs)) 1111 || (MINI_WINDOW_P (w) && echo_area_glyphs))
1112 return 0; 1112 return 0;
1115 int face = 0; 1115 int face = 0;
1116 #ifdef HAVE_FACES 1116 #ifdef HAVE_FACES
1117 int dummy; 1117 int dummy;
1118 1118
1119 if (FRAME_WINDOW_P (frame) || FRAME_MSDOS_P (frame)) 1119 if (FRAME_WINDOW_P (frame) || FRAME_MSDOS_P (frame))
1120 face = compute_char_face (frame, w, point - 1, -1, -1, &dummy, point, 0); 1120 face = compute_char_face (frame, w, PT - 1, -1, -1, &dummy, PT, 0);
1121 #endif 1121 #endif
1122 current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face); 1122 current_frame->glyphs[vpos][hpos] = MAKE_GLYPH (frame, g, face);
1123 current_frame->charstarts[vpos][hpos] = point - 1; 1123 current_frame->charstarts[vpos][hpos] = PT - 1;
1124 /* Record the entry for after the newly inserted character. */ 1124 /* Record the entry for after the newly inserted character. */
1125 current_frame->charstarts[vpos][hpos + 1] = point; 1125 current_frame->charstarts[vpos][hpos + 1] = PT;
1126 adjust_window_charstarts (w, vpos, 1); 1126 adjust_window_charstarts (w, vpos, 1);
1127 } 1127 }
1128 unchanged_modified = MODIFF; 1128 unchanged_modified = MODIFF;
1129 beg_unchanged = GPT - BEG; 1129 beg_unchanged = GPT - BEG;
1130 XSETFASTINT (w->last_point, point); 1130 XSETFASTINT (w->last_point, PT);
1131 XSETFASTINT (w->last_point_x, hpos); 1131 XSETFASTINT (w->last_point_x, hpos);
1132 XSETFASTINT (w->last_modified, MODIFF); 1132 XSETFASTINT (w->last_modified, MODIFF);
1133 1133
1134 reassert_line_highlight (0, vpos); 1134 reassert_line_highlight (0, vpos);
1135 write_glyphs (&current_frame->glyphs[vpos][hpos], 1); 1135 write_glyphs (&current_frame->glyphs[vpos][hpos], 1);
1177 1177
1178 #ifdef USE_TEXT_PROPERTIES 1178 #ifdef USE_TEXT_PROPERTIES
1179 /* Don't use direct output next to an invisible character 1179 /* Don't use direct output next to an invisible character
1180 since we might need to do something special. */ 1180 since we might need to do something special. */
1181 1181
1182 XSETFASTINT (position, point); 1182 XSETFASTINT (position, PT);
1183 if (XFASTINT (position) < ZV 1183 if (XFASTINT (position) < ZV
1184 && ! NILP (Fget_char_property (position, 1184 && ! NILP (Fget_char_property (position,
1185 Qinvisible, 1185 Qinvisible,
1186 selected_window))) 1186 selected_window)))
1187 return 0; 1187 return 0;
1188 1188
1189 XSETFASTINT (position, point - 1); 1189 XSETFASTINT (position, PT - 1);
1190 if (XFASTINT (position) >= BEGV 1190 if (XFASTINT (position) >= BEGV
1191 && ! NILP (Fget_char_property (position, 1191 && ! NILP (Fget_char_property (position,
1192 Qinvisible, 1192 Qinvisible,
1193 selected_window))) 1193 selected_window)))
1194 return 0; 1194 return 0;
1195 #endif 1195 #endif
1196 1196
1197 FRAME_CURSOR_X (frame) += n; 1197 FRAME_CURSOR_X (frame) += n;
1198 XSETFASTINT (w->last_point_x, FRAME_CURSOR_X (frame)); 1198 XSETFASTINT (w->last_point_x, FRAME_CURSOR_X (frame));
1199 XSETFASTINT (w->last_point, point); 1199 XSETFASTINT (w->last_point, PT);
1200 cursor_to (FRAME_CURSOR_Y (frame), FRAME_CURSOR_X (frame)); 1200 cursor_to (FRAME_CURSOR_Y (frame), FRAME_CURSOR_X (frame));
1201 fflush (stdout); 1201 fflush (stdout);
1202 1202
1203 return 1; 1203 return 1;
1204 } 1204 }