]> git.eshelyaron.com Git - emacs.git/commitdiff
(command_loop_1): Use PT_BYTE when calling FETCH_BYTE.
authorRichard M. Stallman <rms@gnu.org>
Thu, 1 Jan 1998 02:39:04 +0000 (02:39 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 1 Jan 1998 02:39:04 +0000 (02:39 +0000)
Instead of Fforward_point, just add.

src/keyboard.c

index b060ce6a6485f015e2936fe5fd692052cd1990ea..248b85e97e2a2c5300c48e6ecd756acf3d336a91 100644 (file)
@@ -1283,8 +1283,8 @@ command_loop_1 ()
                {
                   struct Lisp_Char_Table *dp
                    = window_display_table (XWINDOW (selected_window));
-                 lose = FETCH_BYTE (PT);
-                 SET_PT (forward_point (1));
+                 lose = FETCH_BYTE (PT_BYTE);
+                 SET_PT (PT + 1);
                  if ((dp
                       ? (VECTORP (DISP_CHAR_VECTOR (dp, lose))
                          ? XVECTOR (DISP_CHAR_VECTOR (dp, lose))->size == 1
@@ -1293,7 +1293,7 @@ command_loop_1 ()
                       : (lose >= 0x20 && lose < 0x7f))
                      /* To extract the case of continuation on
                          wide-column characters.  */
-                     && (WIDTH_BY_CHAR_HEAD (FETCH_BYTE (PT)) == 1)
+                     && (WIDTH_BY_CHAR_HEAD (FETCH_BYTE (PT_BYTE)) == 1)
                      && (XFASTINT (XWINDOW (selected_window)->last_modified)
                          >= MODIFF)
                      && (XFASTINT (XWINDOW (selected_window)->last_overlay_modified)
@@ -1312,8 +1312,8 @@ command_loop_1 ()
                {
                   struct Lisp_Char_Table *dp
                    = window_display_table (XWINDOW (selected_window));
-                 SET_PT (forward_point (-1));
-                 lose = FETCH_BYTE (PT);
+                 SET_PT (PT - 1);
+                 lose = FETCH_BYTE (PT_BYTE);
                  if ((dp
                       ? (VECTORP (DISP_CHAR_VECTOR (dp, lose))
                          ? XVECTOR (DISP_CHAR_VECTOR (dp, lose))->size == 1
@@ -1370,7 +1370,7 @@ command_loop_1 ()
                    nonundocount = 0;
 
                  if (!lose
-                     && (PT == ZV || FETCH_BYTE (PT) == '\n'))
+                     && (PT == ZV || FETCH_BYTE (PT_BYTE) == '\n'))
                    {
                      struct Lisp_Char_Table *dp
                        = window_display_table (XWINDOW (selected_window));