Fix bug #16453.
authorBastien Guerry <bzg@gnu.org>
Wed, 5 Feb 2014 10:31:09 +0000 (11:31 +0100)
committerBastien Guerry <bzg@gnu.org>
Wed, 5 Feb 2014 10:31:09 +0000 (11:31 +0100)
* syntax.c (Fforward_word): Call Fconstrain_to_field with
ESCAPE-FROM-EDGE set to `nil' (Bug#16453).

src/ChangeLog
src/syntax.c

index 50c08f8..be4907b 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-05  Bastien Guerry  <bzg@gnu.org>
+
+       * syntax.c (Fforward_word): Call Fconstrain_to_field with
+       ESCAPE-FROM-EDGE set to `nil' (Bug#16453).
+
 2014-02-05  Martin Rudalics  <rudalics@gmx.at>
 
        * xdisp.c (note_mouse_highlight): When entering a margin area show
index 65d6fe9..12575bf 100644 (file)
@@ -1485,7 +1485,7 @@ and the function returns nil.  Field boundaries are not noticed if
 
   /* Avoid jumping out of an input field.  */
   tmp = Fconstrain_to_field (make_number (val), make_number (PT),
-                            Qt, Qnil, Qnil);
+                            Qnil, Qnil, Qnil);
   val = XFASTINT (tmp);
 
   SET_PT (val);