diff src/editfns.c @ 70619:f5917c21d187

* intervals.c (set_point_both): Fix mixup before before and after in variable names. * editfns.c (Fline_beginning_position): Inhibit point-motion hooks while setting point temporarily.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 12 May 2006 17:39:39 +0000
parents e9ea7c53ddc7
children 36c0b042a602 a5812696f7bf
line wrap: on
line diff
--- a/src/editfns.c	Fri May 12 16:18:37 2006 +0000
+++ b/src/editfns.c	Fri May 12 17:39:39 2006 +0000
@@ -823,6 +823,8 @@
      Lisp_Object n;
 {
   int orig, orig_byte, end;
+  int count = SPECPDL_INDEX ();
+  specbind (Qinhibit_point_motion_hooks, Qt);
 
   if (NILP (n))
     XSETFASTINT (n, 1);
@@ -836,6 +838,8 @@
 
   SET_PT_BOTH (orig, orig_byte);
 
+  unbind_to (count, Qnil);
+
   /* Return END constrained to the current input field.  */
   return Fconstrain_to_field (make_number (end), make_number (orig),
 			      XINT (n) != 1 ? Qt : Qnil,