aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
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/editfns.c
parent7003b258300d0e575da8009e6f017b6c19aabacb (diff)
downloademacs-6ec8bbd20d14dadb850f993d828b42bb97deba32.tar.gz
emacs-6ec8bbd20d14dadb850f993d828b42bb97deba32.zip
Change all references from point to PT.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c28
1 files changed, 14 insertions, 14 deletions
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. */