changeset 7427:2ea6fdd2dacf

Use PT, not point.
author Karl Heuer <kwzh@gnu.org>
date Tue, 10 May 1994 05:45:24 +0000
parents 58372be37e3a
children e14086d8ba6f
files src/keyboard.c
diffstat 1 files changed, 10 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Tue May 10 05:13:14 1994 +0000
+++ b/src/keyboard.c	Tue May 10 05:45:24 1994 +0000
@@ -1083,12 +1083,12 @@
 	    {
 	      /* Recognize some common commands in common situations and
 		 do them directly.  */
-	      if (EQ (this_command, Qforward_char) && point < ZV)
+	      if (EQ (this_command, Qforward_char) && PT < ZV)
 		{
                   struct Lisp_Vector *dp
 		    = window_display_table (XWINDOW (selected_window));
-		  lose = FETCH_CHAR (point);
-		  SET_PT (point + 1);
+		  lose = FETCH_CHAR (PT);
+		  SET_PT (PT + 1);
 		  if ((dp
 		       ? (VECTORP (DISP_CHAR_VECTOR (dp, lose))
 			  && XVECTOR (DISP_CHAR_VECTOR (dp, lose))->size == 1)
@@ -1096,7 +1096,7 @@
 		      && (XFASTINT (XWINDOW (selected_window)->last_modified)
 			  >= MODIFF)
 		      && (XFASTINT (XWINDOW (selected_window)->last_point)
-			  == point - 1)
+			  == PT - 1)
 		      && !windows_or_buffers_changed
 		      && EQ (current_buffer->selective_display, Qnil)
 		      && !detect_input_pending ()
@@ -1104,12 +1104,12 @@
 		    no_redisplay = direct_output_forward_char (1);
 		  goto directly_done;
 		}
-	      else if (EQ (this_command, Qbackward_char) && point > BEGV)
+	      else if (EQ (this_command, Qbackward_char) && PT > BEGV)
 		{
                   struct Lisp_Vector *dp
 		    = window_display_table (XWINDOW (selected_window));
-		  SET_PT (point - 1);
-		  lose = FETCH_CHAR (point);
+		  SET_PT (PT - 1);
+		  lose = FETCH_CHAR (PT);
 		  if ((dp
 		       ? (XTYPE (DISP_CHAR_VECTOR (dp, lose)) != Lisp_Vector
 			  && XVECTOR (DISP_CHAR_VECTOR (dp, lose))->size == 1)
@@ -1117,7 +1117,7 @@
 		      && (XFASTINT (XWINDOW (selected_window)->last_modified)
 			  >= MODIFF)
 		      && (XFASTINT (XWINDOW (selected_window)->last_point)
-			  == point + 1)
+			  == PT + 1)
 		      && !windows_or_buffers_changed
 		      && EQ (current_buffer->selective_display, Qnil)
 		      && !detect_input_pending ()
@@ -1143,8 +1143,7 @@
 		    }
 		  lose = (XFASTINT (XWINDOW (selected_window)->last_modified)
 			  < MODIFF)
-		    || (XFASTINT (XWINDOW (selected_window)->last_point)
-			  != point)
+		    || (XFASTINT (XWINDOW (selected_window)->last_point) != PT)
 		    || MODIFF <= current_buffer->save_modified
 		    || windows_or_buffers_changed
 		    || !EQ (current_buffer->selective_display, Qnil)
@@ -1156,7 +1155,7 @@
 		      nonundocount = 0;
 		    }
 		  if (!lose &&
-		      (point == ZV || FETCH_CHAR (point) == '\n'))
+		      (PT == ZV || FETCH_CHAR (PT) == '\n'))
 		    {
 		      struct Lisp_Vector *dp
 			= window_display_table (XWINDOW (selected_window));