]> git.eshelyaron.com Git - emacs.git/commitdiff
(pos_tab_offset): Don't trigger point-motion hooks.
authorKarl Heuer <kwzh@gnu.org>
Tue, 23 Aug 1994 23:00:56 +0000 (23:00 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 23 Aug 1994 23:00:56 +0000 (23:00 +0000)
src/indent.c

index 5e09526e6c8934644486607aece4992c37afaed4..e90bc4032880f5302c4f8d04e4b13a7bde107d84 100644 (file)
@@ -721,15 +721,15 @@ pos_tab_offset (w, pos)
      struct window *w;
      register int pos;
 {
-  int opoint = point;
+  int opoint = PT;
   int col;
   int width = window_internal_width (w) - 1;
 
   if (pos == BEGV || FETCH_CHAR (pos - 1) == '\n')
     return 0;
-  SET_PT (pos);
+  TEMP_SET_PT (pos);
   col = current_column ();
-  SET_PT (opoint);
+  TEMP_SET_PT (opoint);
   return col - (col % width);
 }