changeset 4243:23fe7f6c9ae4

(set_point): Test Vinhibit_point_motion_hooks.
author Richard M. Stallman <rms@gnu.org>
date Fri, 23 Jul 1993 07:59:08 +0000
parents 49007dbbec4c
children bc70363458c3
files src/intervals.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/intervals.c	Fri Jul 23 07:58:22 1993 +0000
+++ b/src/intervals.c	Fri Jul 23 07:59:08 1993 +0000
@@ -1311,8 +1311,9 @@
   /* We run point-left and point-entered hooks here, iff the
      two intervals are not equivalent.  These hooks take
      (old_point, new_point) as arguments.  */
-  if (! intervals_equal (from, to)
-      || ! intervals_equal (fromprev, toprev))
+  if (NILP (Vinhibit_point_motion_hooks)
+      && (! intervals_equal (from, to)
+	  || ! intervals_equal (fromprev, toprev)))
     {
       Lisp_Object leave_after, leave_before, enter_after, enter_before;