changeset 8601:c67a4530319e

(pos_tab_offset): Don't trigger point-motion hooks.
author Karl Heuer <kwzh@gnu.org>
date Tue, 23 Aug 1994 23:00:56 +0000
parents 0c56de09028d
children 99f6ae4160f5
files src/indent.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Tue Aug 23 22:58:08 1994 +0000
+++ b/src/indent.c	Tue Aug 23 23:00:56 1994 +0000
@@ -721,15 +721,15 @@
      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);
 }