aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index b74fd2a41c2..85ce94c8f8a 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -823,6 +823,8 @@ This function does not move point. */)
823 Lisp_Object n; 823 Lisp_Object n;
824{ 824{
825 int orig, orig_byte, end; 825 int orig, orig_byte, end;
826 int count = SPECPDL_INDEX ();
827 specbind (Qinhibit_point_motion_hooks, Qt);
826 828
827 if (NILP (n)) 829 if (NILP (n))
828 XSETFASTINT (n, 1); 830 XSETFASTINT (n, 1);
@@ -836,6 +838,8 @@ This function does not move point. */)
836 838
837 SET_PT_BOTH (orig, orig_byte); 839 SET_PT_BOTH (orig, orig_byte);
838 840
841 unbind_to (count, Qnil);
842
839 /* Return END constrained to the current input field. */ 843 /* Return END constrained to the current input field. */
840 return Fconstrain_to_field (make_number (end), make_number (orig), 844 return Fconstrain_to_field (make_number (end), make_number (orig),
841 XINT (n) != 1 ? Qt : Qnil, 845 XINT (n) != 1 ? Qt : Qnil,