aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorChong Yidong2006-05-12 17:39:39 +0000
committerChong Yidong2006-05-12 17:39:39 +0000
commit4e8f005c08487874cfb812f271e4d7c103eb40e7 (patch)
tree2f7e073506f572391fecd597dcaabf07205f54ef /src/editfns.c
parentd041c8c9610396456c7b2e7b49b0dab05e97f965 (diff)
downloademacs-4e8f005c08487874cfb812f271e4d7c103eb40e7.tar.gz
emacs-4e8f005c08487874cfb812f271e4d7c103eb40e7.zip
* 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.
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,