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