aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1996-09-01 19:15:05 +0000
committerKarl Heuer1996-09-01 19:15:05 +0000
commit6ec8bbd20d14dadb850f993d828b42bb97deba32 (patch)
tree19f01d5251cd6d478933a5f562ba985bf5c3b117 /src
parent7003b258300d0e575da8009e6f017b6c19aabacb (diff)
downloademacs-6ec8bbd20d14dadb850f993d828b42bb97deba32.tar.gz
emacs-6ec8bbd20d14dadb850f993d828b42bb97deba32.zip
Change all references from point to PT.
Diffstat (limited to 'src')
-rw-r--r--src/abbrev.c22
-rw-r--r--src/bytecode.c2
-rw-r--r--src/callint.c4
-rw-r--r--src/casefiddle.c10
-rw-r--r--src/cmds.c34
-rw-r--r--src/dispnew.c16
-rw-r--r--src/editfns.c28
-rw-r--r--src/indent.c28
-rw-r--r--src/lread.c2
-rw-r--r--src/print.c8
-rw-r--r--src/process.c18
-rw-r--r--src/search.c38
-rw-r--r--src/syntax.c4
-rw-r--r--src/undo.c2
-rw-r--r--src/window.c2
15 files changed, 109 insertions, 109 deletions
diff --git a/src/abbrev.c b/src/abbrev.c
index 6d88dad7716..d6acfe289ba 100644
--- a/src/abbrev.c
+++ b/src/abbrev.c
@@ -246,7 +246,7 @@ Returns t if expansion took place.")
246 del_range (wordstart, wordstart + 1); 246 del_range (wordstart, wordstart + 1);
247 } 247 }
248 if (!wordstart) 248 if (!wordstart)
249 wordstart = scan_words (point, -1); 249 wordstart = scan_words (PT, -1);
250 250
251 if (!wordstart) 251 if (!wordstart)
252 return value; 252 return value;
@@ -255,9 +255,9 @@ Returns t if expansion took place.")
255 if (!wordend) 255 if (!wordend)
256 return value; 256 return value;
257 257
258 if (wordend > point) 258 if (wordend > PT)
259 wordend = point; 259 wordend = PT;
260 whitecnt = point - wordend; 260 whitecnt = PT - wordend;
261 if (wordend <= wordstart) 261 if (wordend <= wordstart)
262 return value; 262 return value;
263 263
@@ -304,7 +304,7 @@ Returns t if expansion took place.")
304 304
305 expansion = XSYMBOL (sym)->value; 305 expansion = XSYMBOL (sym)->value;
306 insert_from_string (expansion, 0, XSTRING (expansion)->size, 1); 306 insert_from_string (expansion, 0, XSTRING (expansion)->size, 1);
307 SET_PT (point + whitecnt); 307 SET_PT (PT + whitecnt);
308 308
309 if (uccount && !lccount) 309 if (uccount && !lccount)
310 { 310 {
@@ -313,14 +313,14 @@ Returns t if expansion took place.")
313 /* This used to be if (!... && ... >= ...) Fcapitalize; else Fupcase 313 /* This used to be if (!... && ... >= ...) Fcapitalize; else Fupcase
314 but Megatest 68000 compiler can't handle that */ 314 but Megatest 68000 compiler can't handle that */
315 if (!abbrev_all_caps) 315 if (!abbrev_all_caps)
316 if (scan_words (point, -1) > scan_words (wordstart, 1)) 316 if (scan_words (PT, -1) > scan_words (wordstart, 1))
317 { 317 {
318 Fupcase_initials_region (make_number (wordstart), 318 Fupcase_initials_region (make_number (wordstart),
319 make_number (point)); 319 make_number (PT));
320 goto caped; 320 goto caped;
321 } 321 }
322 /* If expansion is one word, or if user says so, upcase it all. */ 322 /* If expansion is one word, or if user says so, upcase it all. */
323 Fupcase_region (make_number (wordstart), make_number (point)); 323 Fupcase_region (make_number (wordstart), make_number (PT));
324 caped: ; 324 caped: ;
325 } 325 }
326 else if (uccount) 326 else if (uccount)
@@ -329,7 +329,7 @@ Returns t if expansion took place.")
329 int pos = wordstart; 329 int pos = wordstart;
330 330
331 /* Find the initial. */ 331 /* Find the initial. */
332 while (pos < point 332 while (pos < PT
333 && SYNTAX (*BUF_CHAR_ADDRESS (current_buffer, pos)) != Sword) 333 && SYNTAX (*BUF_CHAR_ADDRESS (current_buffer, pos)) != Sword)
334 pos++; 334 pos++;
335 335
@@ -350,7 +350,7 @@ This differs from ordinary undo in that other editing done since then\n\
350is not undone.") 350is not undone.")
351 () 351 ()
352{ 352{
353 int opoint = point; 353 int opoint = PT;
354 int adjust = 0; 354 int adjust = 0;
355 if (last_abbrev_point < BEGV 355 if (last_abbrev_point < BEGV
356 || last_abbrev_point > ZV) 356 || last_abbrev_point > ZV)
@@ -365,7 +365,7 @@ is not undone.")
365 if (!STRINGP (val)) 365 if (!STRINGP (val))
366 error ("value of abbrev-symbol must be a string"); 366 error ("value of abbrev-symbol must be a string");
367 adjust = XSTRING (val)->size; 367 adjust = XSTRING (val)->size;
368 del_range (point, point + adjust); 368 del_range (PT, PT + adjust);
369 /* Don't inherit properties here; just copy from old contents. */ 369 /* Don't inherit properties here; just copy from old contents. */
370 insert_from_string (Vlast_abbrev_text, 0, 370 insert_from_string (Vlast_abbrev_text, 0,
371 XSTRING (Vlast_abbrev_text)->size, 0); 371 XSTRING (Vlast_abbrev_text)->size, 0);
diff --git a/src/bytecode.c b/src/bytecode.c
index 4fb6d86bb69..646ada96aa1 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -841,7 +841,7 @@ If the third argument is incorrect, Emacs may crash.")
841 break; 841 break;
842 842
843 case Bpoint: 843 case Bpoint:
844 XSETFASTINT (v1, point); 844 XSETFASTINT (v1, PT);
845 PUSH (v1); 845 PUSH (v1);
846 break; 846 break;
847 847
diff --git a/src/callint.c b/src/callint.c
index 14f34f3b5f6..3741a0930d1 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -606,9 +606,9 @@ Otherwise, this is done only if an arg is read using the minibuffer.")
606 /* visargs[i+1] = Qnil; */ 606 /* visargs[i+1] = Qnil; */
607 foo = marker_position (current_buffer->mark); 607 foo = marker_position (current_buffer->mark);
608 /* visargs[i] = Qnil; */ 608 /* visargs[i] = Qnil; */
609 args[i] = point < foo ? point_marker : current_buffer->mark; 609 args[i] = PT < foo ? point_marker : current_buffer->mark;
610 varies[i] = 3; 610 varies[i] = 3;
611 args[++i] = point > foo ? point_marker : current_buffer->mark; 611 args[++i] = PT > foo ? point_marker : current_buffer->mark;
612 varies[i] = 4; 612 varies[i] = 4;
613 break; 613 break;
614 614
diff --git a/src/casefiddle.c b/src/casefiddle.c
index 1e3856100a0..f4400814778 100644
--- a/src/casefiddle.c
+++ b/src/casefiddle.c
@@ -227,11 +227,11 @@ operate_on_word (arg, newpoint)
227 227
228 CHECK_NUMBER (arg, 0); 228 CHECK_NUMBER (arg, 0);
229 iarg = XINT (arg); 229 iarg = XINT (arg);
230 farend = scan_words (point, iarg); 230 farend = scan_words (PT, iarg);
231 if (!farend) 231 if (!farend)
232 farend = iarg > 0 ? ZV : BEGV; 232 farend = iarg > 0 ? ZV : BEGV;
233 233
234 *newpoint = point > farend ? point : farend; 234 *newpoint = PT > farend ? PT : farend;
235 XSETFASTINT (val, farend); 235 XSETFASTINT (val, farend);
236 236
237 return val; 237 return val;
@@ -246,7 +246,7 @@ See also `capitalize-word'.")
246{ 246{
247 Lisp_Object beg, end; 247 Lisp_Object beg, end;
248 int newpoint; 248 int newpoint;
249 XSETFASTINT (beg, point); 249 XSETFASTINT (beg, PT);
250 end = operate_on_word (arg, &newpoint); 250 end = operate_on_word (arg, &newpoint);
251 casify_region (CASE_UP, beg, end); 251 casify_region (CASE_UP, beg, end);
252 SET_PT (newpoint); 252 SET_PT (newpoint);
@@ -261,7 +261,7 @@ With negative argument, convert previous words but do not move.")
261{ 261{
262 Lisp_Object beg, end; 262 Lisp_Object beg, end;
263 int newpoint; 263 int newpoint;
264 XSETFASTINT (beg, point); 264 XSETFASTINT (beg, PT);
265 end = operate_on_word (arg, &newpoint); 265 end = operate_on_word (arg, &newpoint);
266 casify_region (CASE_DOWN, beg, end); 266 casify_region (CASE_DOWN, beg, end);
267 SET_PT (newpoint); 267 SET_PT (newpoint);
@@ -278,7 +278,7 @@ With negative argument, capitalize previous words but do not move.")
278{ 278{
279 Lisp_Object beg, end; 279 Lisp_Object beg, end;
280 int newpoint; 280 int newpoint;
281 XSETFASTINT (beg, point); 281 XSETFASTINT (beg, PT);
282 end = operate_on_word (arg, &newpoint); 282 end = operate_on_word (arg, &newpoint);
283 casify_region (CASE_CAPITALIZE, beg, end); 283 casify_region (CASE_CAPITALIZE, beg, end);
284 SET_PT (newpoint); 284 SET_PT (newpoint);
diff --git a/src/cmds.c b/src/cmds.c
index 9c29982cc80..1d835d8554f 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -57,7 +57,7 @@ On reaching end of buffer, stop and signal error.")
57 hooks, etcetera), that's not a good approach. So we validate the 57 hooks, etcetera), that's not a good approach. So we validate the
58 proposed position, then set point. */ 58 proposed position, then set point. */
59 { 59 {
60 int new_point = point + XINT (n); 60 int new_point = PT + XINT (n);
61 61
62 if (new_point < BEGV) 62 if (new_point < BEGV)
63 { 63 {
@@ -102,7 +102,7 @@ With positive N, a non-empty line at the end counts as one line\n\
102 (n) 102 (n)
103 Lisp_Object n; 103 Lisp_Object n;
104{ 104{
105 int pos2 = point; 105 int pos2 = PT;
106 int pos; 106 int pos;
107 int count, shortage, negp; 107 int count, shortage, negp;
108 108
@@ -178,17 +178,17 @@ N was explicitly specified.")
178 { 178 {
179 if (XINT (n) < 0) 179 if (XINT (n) < 0)
180 { 180 {
181 if (point + XINT (n) < BEGV) 181 if (PT + XINT (n) < BEGV)
182 Fsignal (Qbeginning_of_buffer, Qnil); 182 Fsignal (Qbeginning_of_buffer, Qnil);
183 else 183 else
184 del_range (point + XINT (n), point); 184 del_range (PT + XINT (n), PT);
185 } 185 }
186 else 186 else
187 { 187 {
188 if (point + XINT (n) > ZV) 188 if (PT + XINT (n) > ZV)
189 Fsignal (Qend_of_buffer, Qnil); 189 Fsignal (Qend_of_buffer, Qnil);
190 else 190 else
191 del_range (point, point + XINT (n)); 191 del_range (PT, PT + XINT (n));
192 } 192 }
193 } 193 }
194 else 194 else
@@ -216,9 +216,9 @@ N was explicitly specified.")
216 /* See if we are about to delete a tab or newline backwards. */ 216 /* See if we are about to delete a tab or newline backwards. */
217 for (i = 1; i <= XINT (n); i++) 217 for (i = 1; i <= XINT (n); i++)
218 { 218 {
219 if (point - i < BEGV) 219 if (PT - i < BEGV)
220 break; 220 break;
221 if (FETCH_CHAR (point - i) == '\t' || FETCH_CHAR (point - i) == '\n') 221 if (FETCH_CHAR (PT - i) == '\t' || FETCH_CHAR (PT - i) == '\n')
222 { 222 {
223 deleted_special = 1; 223 deleted_special = 1;
224 break; 224 break;
@@ -232,10 +232,10 @@ N was explicitly specified.")
232 if (XINT (n) > 0 232 if (XINT (n) > 0
233 && ! NILP (current_buffer->overwrite_mode) 233 && ! NILP (current_buffer->overwrite_mode)
234 && ! deleted_special 234 && ! deleted_special
235 && ! (point == ZV || FETCH_CHAR (point) == '\n')) 235 && ! (PT == ZV || FETCH_CHAR (PT) == '\n'))
236 { 236 {
237 Finsert_char (make_number (' '), XINT (n)); 237 Finsert_char (make_number (' '), XINT (n));
238 SET_PT (point - XINT (n)); 238 SET_PT (PT - XINT (n));
239 } 239 }
240 240
241 return value; 241 return value;
@@ -302,22 +302,22 @@ internal_self_insert (c1, noautofill)
302 hairy = 1; 302 hairy = 1;
303 303
304 if (!NILP (overwrite) 304 if (!NILP (overwrite)
305 && point < ZV 305 && PT < ZV
306 && (EQ (overwrite, Qoverwrite_mode_binary) 306 && (EQ (overwrite, Qoverwrite_mode_binary)
307 || (c != '\n' && FETCH_CHAR (point) != '\n')) 307 || (c != '\n' && FETCH_CHAR (PT) != '\n'))
308 && (EQ (overwrite, Qoverwrite_mode_binary) 308 && (EQ (overwrite, Qoverwrite_mode_binary)
309 || FETCH_CHAR (point) != '\t' 309 || FETCH_CHAR (PT) != '\t'
310 || XINT (current_buffer->tab_width) <= 0 310 || XINT (current_buffer->tab_width) <= 0
311 || XFASTINT (current_buffer->tab_width) > 20 311 || XFASTINT (current_buffer->tab_width) > 20
312 || !((current_column () + 1) % XFASTINT (current_buffer->tab_width)))) 312 || !((current_column () + 1) % XFASTINT (current_buffer->tab_width))))
313 { 313 {
314 del_range (point, point + 1); 314 del_range (PT, PT + 1);
315 hairy = 2; 315 hairy = 2;
316 } 316 }
317 if (!NILP (current_buffer->abbrev_mode) 317 if (!NILP (current_buffer->abbrev_mode)
318 && SYNTAX (c) != Sword 318 && SYNTAX (c) != Sword
319 && NILP (current_buffer->read_only) 319 && NILP (current_buffer->read_only)
320 && point > BEGV && SYNTAX (FETCH_CHAR (point - 1)) == Sword) 320 && PT > BEGV && SYNTAX (FETCH_CHAR (PT - 1)) == Sword)
321 { 321 {
322 int modiff = MODIFF; 322 int modiff = MODIFF;
323 Fexpand_abbrev (); 323 Fexpand_abbrev ();
@@ -338,10 +338,10 @@ internal_self_insert (c1, noautofill)
338 /* After inserting a newline, move to previous line and fill */ 338 /* After inserting a newline, move to previous line and fill */
339 /* that. Must have the newline in place already so filling and */ 339 /* that. Must have the newline in place already so filling and */
340 /* justification, if any, know where the end is going to be. */ 340 /* justification, if any, know where the end is going to be. */
341 SET_PT (point - 1); 341 SET_PT (PT - 1);
342 tem = call0 (current_buffer->auto_fill_function); 342 tem = call0 (current_buffer->auto_fill_function);
343 if (c1 == '\n') 343 if (c1 == '\n')
344 SET_PT (point + 1); 344 SET_PT (PT + 1);
345 if (!NILP (tem)) 345 if (!NILP (tem))
346 hairy = 2; 346 hairy = 2;
347 } 347 }
diff --git a/src/dispnew.c b/src/dispnew.c
index 96d513b8e59..4c14f0a972b 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1104,7 +1104,7 @@ direct_output_for_insert (g)
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 */
@@ -1117,17 +1117,17 @@ direct_output_for_insert (g)
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
@@ -1179,14 +1179,14 @@ direct_output_forward_char (n)
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,
@@ -1196,7 +1196,7 @@ direct_output_forward_char (n)
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
diff --git a/src/editfns.c b/src/editfns.c
index 88d8841a06d..6870ae11b4a 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -178,7 +178,7 @@ Beginning of buffer is position (point-min)")
178 () 178 ()
179{ 179{
180 Lisp_Object temp; 180 Lisp_Object temp;
181 XSETFASTINT (temp, point); 181 XSETFASTINT (temp, PT);
182 return temp; 182 return temp;
183} 183}
184 184
@@ -186,7 +186,7 @@ DEFUN ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0,
186 "Return value of point, as a marker object.") 186 "Return value of point, as a marker object.")
187 () 187 ()
188{ 188{
189 return buildmark (point); 189 return buildmark (PT);
190} 190}
191 191
192int 192int
@@ -224,8 +224,8 @@ region_limit (beginningp)
224 Fsignal (Qmark_inactive, Qnil); 224 Fsignal (Qmark_inactive, Qnil);
225 m = Fmarker_position (current_buffer->mark); 225 m = Fmarker_position (current_buffer->mark);
226 if (NILP (m)) error ("There is no region now"); 226 if (NILP (m)) error ("There is no region now");
227 if ((point < XFASTINT (m)) == beginningp) 227 if ((PT < XFASTINT (m)) == beginningp)
228 return (make_number (point)); 228 return (make_number (PT));
229 else 229 else
230 return (m); 230 return (m);
231} 231}
@@ -393,10 +393,10 @@ At the end of the buffer or accessible region, return 0.")
393 () 393 ()
394{ 394{
395 Lisp_Object temp; 395 Lisp_Object temp;
396 if (point >= ZV) 396 if (PT >= ZV)
397 XSETFASTINT (temp, 0); 397 XSETFASTINT (temp, 0);
398 else 398 else
399 XSETFASTINT (temp, FETCH_CHAR (point)); 399 XSETFASTINT (temp, FETCH_CHAR (PT));
400 return temp; 400 return temp;
401} 401}
402 402
@@ -406,10 +406,10 @@ At the beginning of the buffer or accessible region, return 0.")
406 () 406 ()
407{ 407{
408 Lisp_Object temp; 408 Lisp_Object temp;
409 if (point <= BEGV) 409 if (PT <= BEGV)
410 XSETFASTINT (temp, 0); 410 XSETFASTINT (temp, 0);
411 else 411 else
412 XSETFASTINT (temp, FETCH_CHAR (point - 1)); 412 XSETFASTINT (temp, FETCH_CHAR (PT - 1));
413 return temp; 413 return temp;
414} 414}
415 415
@@ -418,7 +418,7 @@ DEFUN ("bobp", Fbobp, Sbobp, 0, 0, 0,
418If the buffer is narrowed, this means the beginning of the narrowed part.") 418If the buffer is narrowed, this means the beginning of the narrowed part.")
419 () 419 ()
420{ 420{
421 if (point == BEGV) 421 if (PT == BEGV)
422 return Qt; 422 return Qt;
423 return Qnil; 423 return Qnil;
424} 424}
@@ -428,7 +428,7 @@ DEFUN ("eobp", Feobp, Seobp, 0, 0, 0,
428If the buffer is narrowed, this means the end of the narrowed part.") 428If the buffer is narrowed, this means the end of the narrowed part.")
429 () 429 ()
430{ 430{
431 if (point == ZV) 431 if (PT == ZV)
432 return Qt; 432 return Qt;
433 return Qnil; 433 return Qnil;
434} 434}
@@ -437,7 +437,7 @@ DEFUN ("bolp", Fbolp, Sbolp, 0, 0, 0,
437 "Return T if point is at the beginning of a line.") 437 "Return T if point is at the beginning of a line.")
438 () 438 ()
439{ 439{
440 if (point == BEGV || FETCH_CHAR (point - 1) == '\n') 440 if (PT == BEGV || FETCH_CHAR (PT - 1) == '\n')
441 return Qt; 441 return Qt;
442 return Qnil; 442 return Qnil;
443} 443}
@@ -447,7 +447,7 @@ DEFUN ("eolp", Feolp, Seolp, 0, 0, 0,
447`End of a line' includes point being at the end of the buffer.") 447`End of a line' includes point being at the end of the buffer.")
448 () 448 ()
449{ 449{
450 if (point == ZV || FETCH_CHAR (point) == '\n') 450 if (PT == ZV || FETCH_CHAR (PT) == '\n')
451 return Qt; 451 return Qt;
452 return Qnil; 452 return Qnil;
453} 453}
@@ -1703,9 +1703,9 @@ or markers) bounding the text that should remain visible.")
1703 1703
1704 BEGV = XFASTINT (start); 1704 BEGV = XFASTINT (start);
1705 SET_BUF_ZV (current_buffer, XFASTINT (end)); 1705 SET_BUF_ZV (current_buffer, XFASTINT (end));
1706 if (point < XFASTINT (start)) 1706 if (PT < XFASTINT (start))
1707 SET_PT (XFASTINT (start)); 1707 SET_PT (XFASTINT (start));
1708 if (point > XFASTINT (end)) 1708 if (PT > XFASTINT (end))
1709 SET_PT (XFASTINT (end)); 1709 SET_PT (XFASTINT (end));
1710 current_buffer->clip_changed = 1; 1710 current_buffer->clip_changed = 1;
1711 /* Changing the buffer bounds invalidates any recorded current column. */ 1711 /* Changing the buffer bounds invalidates any recorded current column. */
diff --git a/src/indent.c b/src/indent.c
index 503038b5401..2a05a3d4a65 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -283,7 +283,7 @@ current_column ()
283 register struct Lisp_Char_Table *dp = buffer_display_table (); 283 register struct Lisp_Char_Table *dp = buffer_display_table ();
284 int stopchar; 284 int stopchar;
285 285
286 if (point == last_known_column_point 286 if (PT == last_known_column_point
287 && MODIFF == last_known_column_modified) 287 && MODIFF == last_known_column_modified)
288 return last_known_column; 288 return last_known_column;
289 289
@@ -292,18 +292,18 @@ current_column ()
292 if (BUF_INTERVALS (current_buffer) 292 if (BUF_INTERVALS (current_buffer)
293 || !NILP (current_buffer->overlays_before) 293 || !NILP (current_buffer->overlays_before)
294 || !NILP (current_buffer->overlays_after)) 294 || !NILP (current_buffer->overlays_after))
295 return current_column_1 (point); 295 return current_column_1 (PT);
296 296
297 /* Scan backwards from point to the previous newline, 297 /* Scan backwards from point to the previous newline,
298 counting width. Tab characters are the only complicated case. */ 298 counting width. Tab characters are the only complicated case. */
299 299
300 /* Make a pointer for decrementing through the chars before point. */ 300 /* Make a pointer for decrementing through the chars before point. */
301 ptr = &FETCH_CHAR (point - 1) + 1; 301 ptr = &FETCH_CHAR (PT - 1) + 1;
302 /* Make a pointer to where consecutive chars leave off, 302 /* Make a pointer to where consecutive chars leave off,
303 going backwards from point. */ 303 going backwards from point. */
304 if (point == BEGV) 304 if (PT == BEGV)
305 stop = ptr; 305 stop = ptr;
306 else if (point <= GPT || BEGV > GPT) 306 else if (PT <= GPT || BEGV > GPT)
307 stop = BEGV_ADDR; 307 stop = BEGV_ADDR;
308 else 308 else
309 stop = GAP_END_ADDR; 309 stop = GAP_END_ADDR;
@@ -356,7 +356,7 @@ current_column ()
356 } 356 }
357 357
358 last_known_column = col; 358 last_known_column = col;
359 last_known_column_point = point; 359 last_known_column_point = PT;
360 last_known_column_modified = MODIFF; 360 last_known_column_modified = MODIFF;
361 361
362 return col; 362 return col;
@@ -425,7 +425,7 @@ current_column_1 (pos)
425 endloop: 425 endloop:
426 426
427 last_known_column = col; 427 last_known_column = col;
428 last_known_column_point = point; 428 last_known_column_point = PT;
429 last_known_column_modified = MODIFF; 429 last_known_column_modified = MODIFF;
430 430
431 return col; 431 return col;
@@ -550,7 +550,7 @@ even if that goes past COLUMN; by default, MININUM is zero.")
550 Finsert_char (make_number (' '), column, Qt); 550 Finsert_char (make_number (' '), column, Qt);
551 551
552 last_known_column = mincol; 552 last_known_column = mincol;
553 last_known_column_point = point; 553 last_known_column_point = PT;
554 last_known_column_modified = MODIFF; 554 last_known_column_modified = MODIFF;
555 555
556 XSETINT (column, mincol); 556 XSETINT (column, mincol);
@@ -567,7 +567,7 @@ following any initial whitespace.")
567{ 567{
568 Lisp_Object val; 568 Lisp_Object val;
569 569
570 XSETFASTINT (val, position_indentation (find_next_newline (point, -1))); 570 XSETFASTINT (val, position_indentation (find_next_newline (PT, -1)));
571 return val; 571 return val;
572} 572}
573 573
@@ -680,7 +680,7 @@ The return value is the current column.")
680 CHECK_NATNUM (column, 0); 680 CHECK_NATNUM (column, 0);
681 goal = XINT (column); 681 goal = XINT (column);
682 682
683 pos = point; 683 pos = PT;
684 end = ZV; 684 end = ZV;
685 next_boundary = pos; 685 next_boundary = pos;
686 686
@@ -743,9 +743,9 @@ The return value is the current column.")
743 { 743 {
744 int old_point; 744 int old_point;
745 745
746 del_range (point - 1, point); 746 del_range (PT - 1, PT);
747 Findent_to (make_number (goal), Qnil); 747 Findent_to (make_number (goal), Qnil);
748 old_point = point; 748 old_point = PT;
749 Findent_to (make_number (col), Qnil); 749 Findent_to (make_number (col), Qnil);
750 SET_PT (old_point); 750 SET_PT (old_point);
751 /* Set the last_known... vars consistently. */ 751 /* Set the last_known... vars consistently. */
@@ -757,7 +757,7 @@ The return value is the current column.")
757 Findent_to (make_number (col = goal), Qnil); 757 Findent_to (make_number (col = goal), Qnil);
758 758
759 last_known_column = col; 759 last_known_column = col;
760 last_known_column_point = point; 760 last_known_column_point = PT;
761 last_known_column_modified = MODIFF; 761 last_known_column_modified = MODIFF;
762 762
763 XSETFASTINT (val, col); 763 XSETFASTINT (val, col);
@@ -1409,7 +1409,7 @@ whether or not it is currently displayed in some window.")
1409 else 1409 else
1410 window = selected_window; 1410 window = selected_window;
1411 1411
1412 pos = *vmotion (point, (int) XINT (lines), XWINDOW (window)); 1412 pos = *vmotion (PT, (int) XINT (lines), XWINDOW (window));
1413 1413
1414 SET_PT (pos.bufpos); 1414 SET_PT (pos.bufpos);
1415 return make_number (pos.vpos); 1415 return make_number (pos.vpos);
diff --git a/src/lread.c b/src/lread.c
index f9b95acc170..21f32863f98 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -219,7 +219,7 @@ unreadchar (readcharfun, c)
219 else if (BUFFERP (readcharfun)) 219 else if (BUFFERP (readcharfun))
220 { 220 {
221 if (XBUFFER (readcharfun) == current_buffer) 221 if (XBUFFER (readcharfun) == current_buffer)
222 SET_PT (point - 1); 222 SET_PT (PT - 1);
223 else 223 else
224 SET_BUF_PT (XBUFFER (readcharfun), BUF_PT (XBUFFER (readcharfun)) - 1); 224 SET_BUF_PT (XBUFFER (readcharfun), BUF_PT (XBUFFER (readcharfun)) - 1);
225 } 225 }
diff --git a/src/print.c b/src/print.c
index b6a12e7228d..b34adbf9814 100644
--- a/src/print.c
+++ b/src/print.c
@@ -173,9 +173,9 @@ glyph_to_str_cpy (glyphs, str)
173 error ("Marker does not point anywhere"); \ 173 error ("Marker does not point anywhere"); \
174 if (XMARKER (original)->buffer != current_buffer) \ 174 if (XMARKER (original)->buffer != current_buffer) \
175 set_buffer_internal (XMARKER (original)->buffer); \ 175 set_buffer_internal (XMARKER (original)->buffer); \
176 old_point = point; \ 176 old_point = PT; \
177 SET_PT (marker_position (printcharfun)); \ 177 SET_PT (marker_position (printcharfun)); \
178 start_point = point; \ 178 start_point = PT; \
179 printcharfun = Qnil;} \ 179 printcharfun = Qnil;} \
180 if (NILP (printcharfun)) \ 180 if (NILP (printcharfun)) \
181 { \ 181 { \
@@ -191,10 +191,10 @@ glyph_to_str_cpy (glyphs, str)
191 insert (print_buffer, print_buffer_pos); \ 191 insert (print_buffer, print_buffer_pos); \
192 if (print_buffer) free (print_buffer); \ 192 if (print_buffer) free (print_buffer); \
193 if (MARKERP (original)) \ 193 if (MARKERP (original)) \
194 Fset_marker (original, make_number (point), Qnil); \ 194 Fset_marker (original, make_number (PT), Qnil); \
195 if (old_point >= 0) \ 195 if (old_point >= 0) \
196 SET_PT (old_point + (old_point >= start_point \ 196 SET_PT (old_point + (old_point >= start_point \
197 ? point - start_point : 0)); \ 197 ? PT - start_point : 0)); \
198 if (old != current_buffer) \ 198 if (old != current_buffer) \
199 set_buffer_internal (old) 199 set_buffer_internal (old)
200 200
diff --git a/src/process.c b/src/process.c
index af82f560860..eac1f839f99 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2554,7 +2554,7 @@ read_process_output (proc, channel)
2554 odeactivate = Vdeactivate_mark; 2554 odeactivate = Vdeactivate_mark;
2555 2555
2556 Fset_buffer (p->buffer); 2556 Fset_buffer (p->buffer);
2557 opoint = point; 2557 opoint = PT;
2558 old_read_only = current_buffer->read_only; 2558 old_read_only = current_buffer->read_only;
2559 XSETFASTINT (old_begv, BEGV); 2559 XSETFASTINT (old_begv, BEGV);
2560 XSETFASTINT (old_zv, ZV); 2560 XSETFASTINT (old_zv, ZV);
@@ -2571,24 +2571,24 @@ read_process_output (proc, channel)
2571 2571
2572 /* If the output marker is outside of the visible region, save 2572 /* If the output marker is outside of the visible region, save
2573 the restriction and widen. */ 2573 the restriction and widen. */
2574 if (! (BEGV <= point && point <= ZV)) 2574 if (! (BEGV <= PT && PT <= ZV))
2575 Fwiden (); 2575 Fwiden ();
2576 2576
2577 /* Make sure opoint floats ahead of any new text, just as point 2577 /* Make sure opoint floats ahead of any new text, just as point
2578 would. */ 2578 would. */
2579 if (point <= opoint) 2579 if (PT <= opoint)
2580 opoint += nchars; 2580 opoint += nchars;
2581 2581
2582 /* Insert after old_begv, but before old_zv. */ 2582 /* Insert after old_begv, but before old_zv. */
2583 if (point < XFASTINT (old_begv)) 2583 if (PT < XFASTINT (old_begv))
2584 XSETFASTINT (old_begv, XFASTINT (old_begv) + nchars); 2584 XSETFASTINT (old_begv, XFASTINT (old_begv) + nchars);
2585 if (point <= XFASTINT (old_zv)) 2585 if (PT <= XFASTINT (old_zv))
2586 XSETFASTINT (old_zv, XFASTINT (old_zv) + nchars); 2586 XSETFASTINT (old_zv, XFASTINT (old_zv) + nchars);
2587 2587
2588 /* Insert before markers in case we are inserting where 2588 /* Insert before markers in case we are inserting where
2589 the buffer's mark is, and the user's next command is Meta-y. */ 2589 the buffer's mark is, and the user's next command is Meta-y. */
2590 insert_before_markers (chars, nchars); 2590 insert_before_markers (chars, nchars);
2591 Fset_marker (p->mark, make_number (point), p->buffer); 2591 Fset_marker (p->mark, make_number (PT), p->buffer);
2592 2592
2593 update_mode_lines++; 2593 update_mode_lines++;
2594 2594
@@ -3620,7 +3620,7 @@ status_notify ()
3620 if (NILP (XBUFFER (buffer)->name)) 3620 if (NILP (XBUFFER (buffer)->name))
3621 continue; 3621 continue;
3622 Fset_buffer (buffer); 3622 Fset_buffer (buffer);
3623 opoint = point; 3623 opoint = PT;
3624 /* Insert new output into buffer 3624 /* Insert new output into buffer
3625 at the current end-of-output marker, 3625 at the current end-of-output marker,
3626 thus preserving logical ordering of input and output. */ 3626 thus preserving logical ordering of input and output. */
@@ -3628,7 +3628,7 @@ status_notify ()
3628 SET_PT (marker_position (p->mark)); 3628 SET_PT (marker_position (p->mark));
3629 else 3629 else
3630 SET_PT (ZV); 3630 SET_PT (ZV);
3631 if (point <= opoint) 3631 if (PT <= opoint)
3632 opoint += XSTRING (msg)->size + XSTRING (p->name)->size + 10; 3632 opoint += XSTRING (msg)->size + XSTRING (p->name)->size + 10;
3633 3633
3634 tem = current_buffer->read_only; 3634 tem = current_buffer->read_only;
@@ -3638,7 +3638,7 @@ status_notify ()
3638 insert_string (" "); 3638 insert_string (" ");
3639 Finsert (1, &msg); 3639 Finsert (1, &msg);
3640 current_buffer->read_only = tem; 3640 current_buffer->read_only = tem;
3641 Fset_marker (p->mark, make_number (point), p->buffer); 3641 Fset_marker (p->mark, make_number (PT), p->buffer);
3642 3642
3643 SET_PT (opoint); 3643 SET_PT (opoint);
3644 set_buffer_internal (old); 3644 set_buffer_internal (old);
diff --git a/src/search.c b/src/search.c
index 53187c2c485..bfc5add20d7 100644
--- a/src/search.c
+++ b/src/search.c
@@ -238,7 +238,7 @@ looking_at_1 (string, posix)
238 } 238 }
239 239
240 i = re_match_2 (bufp, (char *) p1, s1, (char *) p2, s2, 240 i = re_match_2 (bufp, (char *) p1, s1, (char *) p2, s2,
241 point - BEGV, &search_regs, 241 PT - BEGV, &search_regs,
242 ZV - BEGV); 242 ZV - BEGV);
243 if (i == -2) 243 if (i == -2)
244 matcher_overflow (); 244 matcher_overflow ();
@@ -762,7 +762,7 @@ skip_chars (forwardp, syntaxp, string, lim)
762 fastmap[i] ^= 1; 762 fastmap[i] ^= 1;
763 763
764 { 764 {
765 int start_point = point; 765 int start_point = PT;
766 766
767 immediate_quit = 1; 767 immediate_quit = 1;
768 if (syntaxp) 768 if (syntaxp)
@@ -770,33 +770,33 @@ skip_chars (forwardp, syntaxp, string, lim)
770 770
771 if (forwardp) 771 if (forwardp)
772 { 772 {
773 while (point < XINT (lim) 773 while (PT < XINT (lim)
774 && fastmap[(unsigned char) syntax_code_spec[(int) SYNTAX (FETCH_CHAR (point))]]) 774 && fastmap[(unsigned char) syntax_code_spec[(int) SYNTAX (FETCH_CHAR (PT))]])
775 SET_PT (point + 1); 775 SET_PT (PT + 1);
776 } 776 }
777 else 777 else
778 { 778 {
779 while (point > XINT (lim) 779 while (PT > XINT (lim)
780 && fastmap[(unsigned char) syntax_code_spec[(int) SYNTAX (FETCH_CHAR (point - 1))]]) 780 && fastmap[(unsigned char) syntax_code_spec[(int) SYNTAX (FETCH_CHAR (PT - 1))]])
781 SET_PT (point - 1); 781 SET_PT (PT - 1);
782 } 782 }
783 } 783 }
784 else 784 else
785 { 785 {
786 if (forwardp) 786 if (forwardp)
787 { 787 {
788 while (point < XINT (lim) && fastmap[FETCH_CHAR (point)]) 788 while (PT < XINT (lim) && fastmap[FETCH_CHAR (PT)])
789 SET_PT (point + 1); 789 SET_PT (PT + 1);
790 } 790 }
791 else 791 else
792 { 792 {
793 while (point > XINT (lim) && fastmap[FETCH_CHAR (point - 1)]) 793 while (PT > XINT (lim) && fastmap[FETCH_CHAR (PT - 1)])
794 SET_PT (point - 1); 794 SET_PT (PT - 1);
795 } 795 }
796 } 796 }
797 immediate_quit = 0; 797 immediate_quit = 0;
798 798
799 return make_number (point - start_point); 799 return make_number (PT - start_point);
800 } 800 }
801} 801}
802 802
@@ -826,7 +826,7 @@ search_command (string, bound, noerror, count, direction, RE, posix)
826 { 826 {
827 CHECK_NUMBER_COERCE_MARKER (bound, 1); 827 CHECK_NUMBER_COERCE_MARKER (bound, 1);
828 lim = XINT (bound); 828 lim = XINT (bound);
829 if (n > 0 ? lim < point : lim > point) 829 if (n > 0 ? lim < PT : lim > PT)
830 error ("Invalid search bound (wrong side of point)"); 830 error ("Invalid search bound (wrong side of point)");
831 if (lim > ZV) 831 if (lim > ZV)
832 lim = ZV; 832 lim = ZV;
@@ -834,7 +834,7 @@ search_command (string, bound, noerror, count, direction, RE, posix)
834 lim = BEGV; 834 lim = BEGV;
835 } 835 }
836 836
837 np = search_buffer (string, point, lim, n, RE, 837 np = search_buffer (string, PT, lim, n, RE,
838 (!NILP (current_buffer->case_fold_search) 838 (!NILP (current_buffer->case_fold_search)
839 ? XCHAR_TABLE (current_buffer->case_canon_table)->contents 839 ? XCHAR_TABLE (current_buffer->case_canon_table)->contents
840 : 0), 840 : 0),
@@ -1745,7 +1745,7 @@ since only regular expressions have distinguished subexpressions.")
1745 1745
1746 for (pos = 0; pos < XSTRING (newtext)->size; pos++) 1746 for (pos = 0; pos < XSTRING (newtext)->size; pos++)
1747 { 1747 {
1748 int offset = point - search_regs.start[sub]; 1748 int offset = PT - search_regs.start[sub];
1749 1749
1750 c = XSTRING (newtext)->data[pos]; 1750 c = XSTRING (newtext)->data[pos];
1751 if (c == '\\') 1751 if (c == '\\')
@@ -1773,13 +1773,13 @@ since only regular expressions have distinguished subexpressions.")
1773 UNGCPRO; 1773 UNGCPRO;
1774 } 1774 }
1775 1775
1776 inslen = point - (search_regs.start[sub]); 1776 inslen = PT - (search_regs.start[sub]);
1777 del_range (search_regs.start[sub] + inslen, search_regs.end[sub] + inslen); 1777 del_range (search_regs.start[sub] + inslen, search_regs.end[sub] + inslen);
1778 1778
1779 if (case_action == all_caps) 1779 if (case_action == all_caps)
1780 Fupcase_region (make_number (point - inslen), make_number (point)); 1780 Fupcase_region (make_number (PT - inslen), make_number (PT));
1781 else if (case_action == cap_initial) 1781 else if (case_action == cap_initial)
1782 Fupcase_initials_region (make_number (point - inslen), make_number (point)); 1782 Fupcase_initials_region (make_number (PT - inslen), make_number (PT));
1783 return Qnil; 1783 return Qnil;
1784} 1784}
1785 1785
diff --git a/src/syntax.c b/src/syntax.c
index 8c08aa56a10..22339930b2b 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -639,7 +639,7 @@ and nil is returned.")
639 int val; 639 int val;
640 CHECK_NUMBER (count, 0); 640 CHECK_NUMBER (count, 0);
641 641
642 if (!(val = scan_words (point, XINT (count)))) 642 if (!(val = scan_words (PT, XINT (count))))
643 { 643 {
644 SET_PT (XINT (count) > 0 ? ZV : BEGV); 644 SET_PT (XINT (count) > 0 ? ZV : BEGV);
645 return Qnil; 645 return Qnil;
@@ -1401,7 +1401,7 @@ This includes chars with \"quote\" or \"prefix\" syntax (' or p).")
1401 () 1401 ()
1402{ 1402{
1403 int beg = BEGV; 1403 int beg = BEGV;
1404 int pos = point; 1404 int pos = PT;
1405 1405
1406 while (pos > beg && !char_quoted (pos - 1) 1406 while (pos > beg && !char_quoted (pos - 1)
1407 && (SYNTAX (FETCH_CHAR (pos - 1)) == Squote 1407 && (SYNTAX (FETCH_CHAR (pos - 1)) == Squote
diff --git a/src/undo.c b/src/undo.c
index d2cc1d2dcd4..9a139456927 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -108,7 +108,7 @@ record_delete (beg, length)
108 if (MODIFF <= SAVE_MODIFF) 108 if (MODIFF <= SAVE_MODIFF)
109 record_first_change (); 109 record_first_change ();
110 110
111 if (point == beg + length) 111 if (PT == beg + length)
112 XSETINT (sbeg, -beg); 112 XSETINT (sbeg, -beg);
113 else 113 else
114 XSETFASTINT (sbeg, beg); 114 XSETFASTINT (sbeg, beg);
diff --git a/src/window.c b/src/window.c
index c27991154ba..19fd3802e82 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2935,7 +2935,7 @@ redraws with point in the center of the current window.")
2935 if (XINT (arg) < 0) 2935 if (XINT (arg) < 0)
2936 XSETINT (arg, XINT (arg) + ht); 2936 XSETINT (arg, XINT (arg) + ht);
2937 2937
2938 pos = *vmotion (point, - XINT (arg), w); 2938 pos = *vmotion (PT, - XINT (arg), w);
2939 2939
2940 Fset_marker (w->start, make_number (pos.bufpos), w->buffer); 2940 Fset_marker (w->start, make_number (pos.bufpos), w->buffer);
2941 w->start_at_line_beg = ((pos.bufpos == BEGV 2941 w->start_at_line_beg = ((pos.bufpos == BEGV